-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fixed avro schema decode error in functions #6662
Fixed avro schema decode error in functions #6662
Conversation
/pulsarbot run-failure-checks |
4 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
[ERROR] An error occurred while instantiating class org.apache.pulsar.functions.worker.request.ServiceRequestManagerTest: Cannot create a new instance of test class class org.apache.pulsar.functions.worker.request.ServiceRequestManagerTest |
escape test PartitionedTopicsSchemaTest from bundle
2997045
to
5a90f71
Compare
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
Fixes #5503 From #6445 In functions, it will encounter ```ClassCastException``` when using the Avro schema for topics. ``` Exception in thread "main" java.lang.ClassCastException: org.apache.pulsar.shade.org.apache.avro.generic.GenericData$Record cannot be cast to io.streamnative.KeyValueSchemaTest$Foo2 at io.streamnative.KeyValueSchemaTest.testConsumerByPythonProduce(KeyValueSchemaTest.java:412) at io.streamnative.KeyValueSchemaTest.main(KeyValueSchemaTest.java:305) ``` In functions, when using Avro schema specific the ClassLoader for ReflectDatumReader. Add integration test ```testAvroSchemaFunction``` in class ```PulsarFunctionsTest```. (cherry picked from commit 52ae182) Handle conflict
Fixes #5503 From #6445 In functions, it will encounter ```ClassCastException``` when using the Avro schema for topics. ``` Exception in thread "main" java.lang.ClassCastException: org.apache.pulsar.shade.org.apache.avro.generic.GenericData$Record cannot be cast to io.streamnative.KeyValueSchemaTest$Foo2 at io.streamnative.KeyValueSchemaTest.testConsumerByPythonProduce(KeyValueSchemaTest.java:412) at io.streamnative.KeyValueSchemaTest.main(KeyValueSchemaTest.java:305) ``` In functions, when using Avro schema specific the ClassLoader for ReflectDatumReader. Add integration test ```testAvroSchemaFunction``` in class ```PulsarFunctionsTest```. (cherry picked from commit 52ae182) Handle conflict
Fixes apache#5503 From apache#6445 In functions, it will encounter ```ClassCastException``` when using the Avro schema for topics. ``` Exception in thread "main" java.lang.ClassCastException: org.apache.pulsar.shade.org.apache.avro.generic.GenericData$Record cannot be cast to io.streamnative.KeyValueSchemaTest$Foo2 at io.streamnative.KeyValueSchemaTest.testConsumerByPythonProduce(KeyValueSchemaTest.java:412) at io.streamnative.KeyValueSchemaTest.main(KeyValueSchemaTest.java:305) ``` In functions, when using Avro schema specific the ClassLoader for ReflectDatumReader. Add integration test ```testAvroSchemaFunction``` in class ```PulsarFunctionsTest```. (cherry picked from commit 52ae182)
Fixes apache#5503 From apache#6445 # Motivation In functions, it will encounter ```ClassCastException``` when using the Avro schema for topics. ``` Exception in thread "main" java.lang.ClassCastException: org.apache.pulsar.shade.org.apache.avro.generic.GenericData$Record cannot be cast to io.streamnative.KeyValueSchemaTest$Foo2 at io.streamnative.KeyValueSchemaTest.testConsumerByPythonProduce(KeyValueSchemaTest.java:412) at io.streamnative.KeyValueSchemaTest.main(KeyValueSchemaTest.java:305) ``` # Modifications In functions, when using Avro schema specific the ClassLoader for ReflectDatumReader. Add integration test ```testAvroSchemaFunction``` in class ```PulsarFunctionsTest```.
Fixes #5503
From #6445
Motivation
In functions, it will encounter
ClassCastException
when using the Avro schema for topics.Modifications
In functions, when using Avro schema specific the ClassLoader for ReflectDatumReader.
Add integration test
testAvroSchemaFunction
in classPulsarFunctionsTest
.