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 2021/09/23 05:56:58 UTC

[GitHub] [pulsar] aahmed-se opened a new issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

aahmed-se opened a new issue #12151:
URL: https://github.com/apache/pulsar/issues/12151


   **Describe the bug**
   ProducerImpl.java use default java semaphores, which don't have bound limit checks calling release successively can lead to overflow. 
   
   ```
   Caused by: java.lang.Error: Maximum permit count exceeded
   at java.util.concurrent.Semaphore$Sync.tryReleaseShared(Semaphore.java:192) ~[?:1.8.0_275]
   at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1341) ~[?:1.8.0_275]
   at java.util.concurrent.Semaphore.release(Semaphore.java:609) ~[?:1.8.0_275]
   at org.apache.pulsar.client.impl.ProducerImpl.batchMessageAndSend(ProducerImpl.java:1567) ~[pulsar-client-2.6.0.SPLK.10805379.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.ProducerImpl.doBatchSendAndAdd(ProducerImpl.java:678) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.ProducerImpl.serializeAndSendMessage(ProducerImpl.java:504) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.ProducerImpl.sendAsync(ProducerImpl.java:423) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.ProducerImpl.internalSendAsync(ProducerImpl.java:279) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.PartitionedProducerImpl.internalSendAsync(PartitionedProducerImpl.java:183) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.TypedMessageBuilderImpl.sendAsync(TypedMessageBuilderImpl.java:95) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   at org.apache.pulsar.client.impl.ProducerBase.sendAsync(ProducerBase.java:69) ~[pulsar-client-2.6.0.jar!/:2.6.0]
   ```
   
   
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] leizhiyuan commented on issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #12151:
URL: https://github.com/apache/pulsar/issues/12151#issuecomment-925651488


   pulsar-client-2.6.0?
   could you update 2.8.1 to check?


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] Jason918 commented on issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
Jason918 commented on issue #12151:
URL: https://github.com/apache/pulsar/issues/12151#issuecomment-946308033


   Any idea how to reproduce this error? @aahmed-se 


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] Shoothzj commented on issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
Shoothzj commented on issue #12151:
URL: https://github.com/apache/pulsar/issues/12151#issuecomment-925566492


   IMHO, we don't need bound limit checks, it's a bug for releasing more than expected


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] aahmed-se commented on issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
aahmed-se commented on issue #12151:
URL: https://github.com/apache/pulsar/issues/12151#issuecomment-930469512


   We should still limit the semaphore count to prevent a breakdown in production.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] aahmed-se commented on issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
aahmed-se commented on issue #12151:
URL: https://github.com/apache/pulsar/issues/12151#issuecomment-930469512


   We should still limit the semaphore count to prevent a breakdown in production.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] aahmed-se closed issue #12151: Pulsar producer can encounter and integer overflow due to excessive release requests

Posted by GitBox <gi...@apache.org>.
aahmed-se closed issue #12151:
URL: https://github.com/apache/pulsar/issues/12151


   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org