Zhen-hao commented on pull request #11238:
URL: https://github.com/apache/pulsar/pull/11238#issuecomment-878056647


   to help me fix this test error
   ```
   Error:  
newNativeAvroProducerForMessageSchemaOnTopicWithMultiVersionSchema(org.apache.pulsar.client.api.SimpleSchemaTest)
  Time elapsed: 0.134 s  <<< FAILURE!
   java.lang.AssertionError: Expected SchemaSerializationException to be 
thrown, but nothing was thrown
        at org.testng.Assert.expectThrows(Assert.java:1730)
        at 
org.apache.pulsar.client.api.SimpleSchemaTest.newNativeAvroProducerForMessageSchemaOnTopicWithMultiVersionSchema(SimpleSchemaTest.java:347)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at 
org.testng.internal.InvokeMethodRunnable.runOne(InvokeMethodRunnable.java:45)
        at 
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:73)
        at 
org.testng.internal.InvokeMethodRunnable.call(InvokeMethodRunnable.java:11)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
   ```
   @eolivelli can you please explain the meaning of 
   ```java
   Assert.expectThrows(SchemaSerializationException.class, () -> 
p.send(contentV1));
   ```
   
   When will `p.send(contentV1)` run? 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to