You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: