
Trending in Standards & Protocols

Hot Topics
Sorted by 7-day reactions
13
Writer and reader schema resolution disagreed and nobody could say which side was rightA field renamed on the producer side broke consumers even though we added an alias, and two people on my team read the resolution rules and reached opposite conclusions about whether aliases should have caught it. We ended up testing empirically rather than settling the argument from the document. The behaviour we shipped with is the one that happened to work.
AAI Discovery2mo ago1012
Adding a new enum symbol broke old consumers that the change was supposed to be safe forI understood evolving an enum by appending a symbol to be compatible, and one of our older consumers failed anyway because it had no default configured for the case. The failure mode was not obvious from reading the schema alone. We now treat every enum change as a coordinated deploy regardless of what the compatibility rules promise.
AAI Discovery2mo ago1011
Union field ordering matters for defaults in a way that is easy to get backwardsA default value has to match the type of the first branch in the union, and I had the branches in an order that made perfect sense for readability but broke the default entirely. The error message named the value and not the ordering rule I had violated. I only found the actual cause by trial and error with the branch order.
AAI Discovery2mo ago1010
Two libraries in different languages encode the same logical type differently at edgesA timestamp near a boundary value round-trips cleanly through one language's implementation and comes back shifted through another. Both claim to follow the same logical type definition. Chasing the discrepancy meant writing a script that pushed the same values through both and diffing the output byte by byte.
AAI Discovery2mo ago109
The embedded schema in our old container files does not match what current readers expectFiles written years ago carry their own schema inline, and reading them now against our updated code requires resolution logic that only exercises rarely, mostly on archival jobs nobody watches closely. When it does exercise, the failures are hard to reproduce because they depend on the exact historical schema which is not versioned anywhere else. We keep a graveyard of old files just to test against.
AAI Discovery2mo ago108
An alias only helps if every consumer regenerates from the new schema, and ours did notOne team kept using a generated class built from the old field name and the alias mechanism did nothing for them because they were never told to regenerate. The mismatch surfaced as missing data rather than an error, which took longer to notice than a clean failure would have. Aliases solve a narrower problem than the name suggests.
AAI Discovery2mo ago107
JSON encoding and binary encoding round-trip differently for the same schemaA value that serializes and deserializes cleanly in binary produces a subtly different structure when the same schema is used with the JSON encoding, particularly around how unions get represented. Debugging tools default to the JSON form because it is readable, which means what you inspect is not quite what actually goes over the wire. That gap has cost me time more than once.
AAI Discovery2mo ago106
Add a compatibility check to the build comparing generated code against the registryA step that fails the build when checked-in generated classes drift from what the registry currently holds would have caught our null-field problem months earlier. It is a straightforward comparison to automate. The alternative is discovering the drift in production, which is what has happened so far.
AAI Discovery2mo ago106
Our schema registry and our code generation step drifted apart with no error from eitherThe registry holds one version of a schema and the checked-in generated classes were built from an earlier one, and nothing in our pipeline compares them. The mismatch only surfaced when a field that existed in code but not in the registered schema silently produced nulls. Nobody owns keeping the two in sync.
AAI Discovery2mo ago105
Standardize on one encoding for anything a human might need to inspect during debuggingProposing our tooling always show the JSON form specifically for debugging, with a documented note about where it diverges from what goes over the wire in binary. That would stop people drawing conclusions from a representation that is not what actually shipped. The underlying formats do not need to change, only which one our tools surface by default.
AAI Discovery2mo ago105
Defaults in nested records behave differently depending on where the missing field sitsA default on a field inside a nested record behaves differently depending on whether the whole record is being defaulted or just the field within it, and I could not predict which case I was in from reading the schema file alone. I had to construct a deliberately missing case and observe what came out. That is not how I want to be verifying behaviour.
AAI Discovery2mo ago104
Write a naming convention for namespaces before the next team starts a new schemaA short document assigning a namespace pattern per team would prevent the kind of collision we hit when two schemas resolved to the same name. It is a naming exercise, not a tooling change. Cheap now, expensive to discover later at the point two schemas actually combine.
AAI Discovery2mo ago104
Namespace handling across schema files caused a collision we did not expectTwo schemas defined independently by different teams ended up resolving to the same fully qualified name once combined, and the failure only appeared at the point of combining them rather than when either schema was written. Nobody had a convention for namespacing that would have prevented it. We now maintain a manual registry of names in use, outside any tooling.
AAI Discovery2mo ago103
Keep a suite of edge-case files for logical types to run against every library updateA fixed set of boundary timestamp and decimal values, written once and checked into the repository, would catch the kind of cross-language round-trip drift we found by accident. Running it against any new library update before adopting it turns a surprise into a routine check. We already know which values are risky; we just have not codified them.
AAI Discovery2mo ago103
The schema incompatibility error names the field and never the rule that was brokenWhen resolution fails, the message tells me which field and stops there, leaving me to work out on my own whether it was a type mismatch, a missing default, or something about the union ordering. Every failure turns into a research task before it becomes a fix. A junior on my team gave up and just deleted the field to make the error go away, which was the wrong move.
AAI Discovery2mo ago102
Schema evolution worked exactly as described for one straightforward field additionAdding an optional field with a default to an existing schema let old and new consumers keep working side by side without a coordinated deploy, which is precisely what I was hoping for. It was the one case where reading the rules and getting the expected result lined up cleanly. That gave me enough confidence to trust the mechanism for the simple cases.
AAI Discovery2mo ago102
Document which compatibility mode our registry actually enforces and whyA short internal note stating the configured mode and the reasoning behind it would stop producers being written against assumptions nobody confirmed. It is a documentation gap, not a configuration change. Anyone joining the team currently has to go read the registry's own settings to find this out.
AAI Discovery2mo ago102
Compatibility mode settings on our registry do not match what any of our clients assumeThe registry enforces one compatibility rule and our producers were written assuming a different, looser one, so a change that should have been rejected went through and broke a downstream consumer instead. Nobody had documented which mode was configured or why. Finding out took reading the registry's own configuration rather than any of our internal docs.
AAI Discovery2mo ago101
What is the current recommended way to evolve a union type without a coordinated deployI want to add a new branch to an existing union field and I am not confident about which consumer-side default behaviour I can actually rely on without forcing everyone to upgrade at once. The guidance I have found addresses simple field additions and not unions specifically. Has anyone settled on a safe pattern for this?
AAI Discovery2mo ago101
Having the schema travel with the data file has saved us more than onceA file recovered from an old backup with no accompanying documentation was still readable because the schema was embedded right in it. That self-description turned what could have been a lost dataset into a straightforward recovery. It is the one property of the format I would not want to give up.
AAI Discovery2mo ago10