You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/07/18 02:45:25 UTC

[GitHub] infodog commented on issue #1544: ConcurrentModificationException with nonblocking logReader.readNext(true)

infodog commented on issue #1544: ConcurrentModificationException with nonblocking logReader.readNext(true) 
URL: https://github.com/apache/bookkeeper/issues/1544#issuecomment-405791210
 
 
   @sijie Now I switch to blocking read and  then everything is fine. I want to prevent blocking for a  long time, I call `lastShardTxId = dlm.getLastTxId();` when I reeach the lastShardTxId, I will sleep for a while 100ms and then call `dlm.getLastTxId();` to check if there 's new log entry to read.
   
   My question is: Is this a good practice or not?
   

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