sjlee commented on PR #7828:
URL: https://github.com/apache/hadoop/pull/7828#issuecomment-3121339483

   I see that you're copying the key set while holding the read lock to avoid 
the issue. I do think it is one correct way to address the issue. That's a 
valid fix.
   
   My only point would be that guarding the logging call might be a cheaper and 
still correct fix, as it avoids copying. I don't think a keySet() call would 
cause iteration so that is still safe without the read lock. Let me know what 
you think.


-- 
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: common-issues-unsubscr...@hadoop.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to