lhotari commented on code in PR #25104:
URL: https://github.com/apache/pulsar/pull/25104#discussion_r2642897601


##########
managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/ManagedCursorTest.java:
##########
@@ -251,17 +252,36 @@ public void 
testConcurrentPropertyOperationsThreadSafety() throws Exception {
                             }
                             break;
                     }
+                    completedOperations.incrementAndGet();
+
                 } catch (ConcurrentModificationException cme) {
+                    // Record ConcurrentModificationException but don't fail 
immediately

Review Comment:
   I guess `new HashMap(properties)` could trigger 
`ConcurrentModificationException`, so it's most likely valid that it can happen.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to