Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error when schema is updated com.twitter.bijection.InversionFailure: Failed to invert: #282

Open
parkersavi opened this issue Jul 11, 2018 · 0 comments

Comments

@parkersavi
Copy link

I am getting an error where the consumer fails to invert when the producer uses old schema and consumer uses new schema
I have a producer still producing using old schema. Our schemas are backwards compatible. Only the consumers have been updated to use the new backwards compatible schema
The consumer fails with exception.

Exception in thread "main" com.twitter.bijection.InversionFailure: Failed to invert: [B@644baf4a
at com.twitter.bijection.InversionFailure$$anonfun$partialFailure$1.applyOrElse(InversionFailure.scala:43)
at com.twitter.bijection.InversionFailure$$anonfun$partialFailure$1.applyOrElse(InversionFailure.scala:42)
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33)
at scala.util.Failure.recoverWith(Try.scala:172)
at com.twitter.bijection.Inversion$.attempt(Inversion.scala:30)
at com.twitter.bijection.avro.BinaryAvroCodec.invert(AvroCodecs.scala:278)
at com.twitter.bijection.avro.BinaryAvroCodec.invert(AvroCodecs.scala:269)
at twitter_bijection.AvroConsumer.main(AvroConsumer.java:57)
Caused by: java.io.EOFException
at org.apache.avro.io.BinaryDecoder.ensureBounds(BinaryDecoder.java:473)
at org.apache.avro.io.BinaryDecoder.readInt(BinaryDecoder.java:128)
at org.apache.avro.io.BinaryDecoder.readIndex(BinaryDecoder.java:423)
at org.apache.avro.io.ResolvingDecoder.doAction(ResolvingDecoder.java:290)
at org.apache.avro.io.parsing.Parser.advance(Parser.java:88)
at org.apache.avro.io.ResolvingDecoder.readIndex(ResolvingDecoder.java:267)
at org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:179)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:153)
at org.apache.avro.generic.GenericDatumReader.readField(GenericDatumReader.java:232)
at org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:222)
at org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:175)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:153)
at org.apache.avro.generic.GenericDatumReader.read(GenericDatumReader.java:145)
at com.twitter.bijection.avro.BinaryAvroCodec$$anonfun$invert$3.apply(AvroCodecs.scala:281)
at com.twitter.bijection.avro.BinaryAvroCodec$$anonfun$invert$3.apply(AvroCodecs.scala:279)
at com.twitter.bijection.Inversion$$anonfun$attempt$1.apply(Inversion.scala:30)
at scala.util.Try$.apply(Try.scala:161)
... 4 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant