graysonzeng opened a new issue, #21803:
URL: https://github.com/apache/pulsar/issues/21803

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   Pulsar & Function 3.1.1
   
   ### Minimal reproduce step
   
   running with effectively once
   
   ### What did you expect to see?
   
   function can handle InterruptedException
   
   ### What did you see instead?
   
   When function is running, the following exception will occasionally occur, 
and function reading and writing are stuck.
   
   ```java
   023-12-19T23:55:03,134+0800 [pulsar-external-listener-6-1] ERROR 
org.apache.pulsar.client.impl.ConsumerBase - 
[persistent://pulsar/log_Production/alltables-partition-13][sink-v2] Message 
listener error in processing message: 777380:54372:13
   java.lang.RuntimeException: java.lang.InterruptedException
        at 
org.apache.pulsar.functions.source.PushPulsarSource.consume(PushPulsarSource.java:64)
 ~[io.streamnative-pulsar-functions-instance-3.0.1.3.jar:3.0.1.3]
        at 
org.apache.pulsar.functions.source.MultiConsumerPulsarSource.received(MultiConsumerPulsarSource.java:81)
 ~[io.streamnative-pulsar-functions-instance-3.0.1.3.jar:3.0.1.3]
        at 
org.apache.pulsar.client.impl.ConsumerBase.callMessageListener(ConsumerBase.java:1153)
 ~[io.streamnative-pulsar-client-original-3.0.1.3.jar:3.0.1.3]
        at 
org.apache.pulsar.client.impl.ConsumerBase.lambda$triggerListener$10(ConsumerBase.java:1119)
 ~[io.streamnative-pulsar-client-original-3.0.1.3.jar:3.0.1.3]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 
~[?:?]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
~[?:?]
        at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 ~[io.netty-netty-common-4.1.94.Final.jar:4.1.94.Final]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
   Caused by: java.lang.InterruptedException
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1638)
 ~[?:?]
        at 
java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:343) 
~[?:?]
        at 
org.apache.pulsar.functions.source.PushPulsarSource.consume(PushPulsarSource.java:62)
 ~[io.streamnative-pulsar-functions-instance-3.0.1.3.jar:3.0.1.3]
        ... 7 more
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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