You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/03/30 01:30:51 UTC
[GitHub] zangyk opened a new issue #264: ConsumeMessageOrderlyService can use ReentrantLock
zangyk opened a new issue #264: ConsumeMessageOrderlyService can use ReentrantLock
URL: https://github.com/apache/rocketmq/issues/264
The ConsumeRequest class code is :
final Object objLock = messageQueueLock.fetchLockObject(this.messageQueue);
synchronized (objLock) {
......
}
it will block the messageQueue and other messageQueue to process
we can use ReentrantLock.tryLock()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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