keith-turner commented on issue #1358: Fix race conditions with 
commitsInProgress counter
   > For this particular PR it's still not clear to me why 
needs to lock (block) the entire tablet to keep this internal count.
   Its not that the tablet is locked just to mutate this counter.  The tablet 
is locked because it is  reading/writing multiple variables that need to be 
considered together atomically (for example it needs to get a pointer to the 
correct commit session).  There are two places in the code where the lock is 
acquired and the count is mutated along with reading/writing other tablet 
state.  Below is link to those two places.

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.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to