You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/04/03 16:01:38 UTC

[GitHub] [pulsar] gaoran10 opened a new pull request #6662: Fixed avro schema decode error in functions

gaoran10 opened a new pull request #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662
 
 
   Fixes #5503 
   From #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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] gaoran10 commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
gaoran10 commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-608595993
 
 
   /pulsarbot run-failure-checks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] codelipenghui commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-608963923
 
 
   /pulsarbot run-failure-checks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] gaoran10 commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
gaoran10 commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-609050876
 
 
   /pulsarbot run-failure-checks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] jiazhai commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-609036360
 
 
   /pulsarbot run-failure-checks
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] yjshen commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
yjshen commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-609000974
 
 
   [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
   [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
   [ERROR] 
   [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
   [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:657)
   [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:283)
   [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246)
   [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1161)
   [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1002)
   [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:848)
   [ERROR] 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] codelipenghui merged pull request #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
codelipenghui merged pull request #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] gaoran10 commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
gaoran10 commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-608567683
 
 
   /pulsarbot run-failure-checks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] jiazhai commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
jiazhai commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-608951112
 
 
   /pulsarbot run-failure-checks
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [pulsar] gaoran10 commented on issue #6662: Fixed avro schema decode error in functions

Posted by GitBox <gi...@apache.org>.
gaoran10 commented on issue #6662: Fixed avro schema decode error in functions
URL: https://github.com/apache/pulsar/pull/6662#issuecomment-608961927
 
 
   /pulsarbot run-failure-checks

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services