Open dlg99 opened 2 years ago
Sorry for the late response, I checked the code, and there is a problem.
The essential reason for #13911 is that two threads execute the refresh method concurrently. In PR #13911 change, it doesn't completely solve the problem, just avoid concurrent access by threads.
I looked at the history commits, #14283 concurrent access is solved by direct locking.
So, we can revert this commit.
The issue had no activity for 30 days, mark with Stale label.
The issue had no activity for 30 days, mark with Stale label.
org.apache.pulsar.metadata.LockManagerTest
updateValueWhenKeyDisappears
is flaky. It passes occasionally but more often it fails.It passes if I revert https://github.com/apache/pulsar/pull/13911
All tests in
org.apache.pulsar.metadata.LockManagerTest
pass if I revert the PR. @shibd It is easy to submit a PR to revert your change but can I ask you to repro this? I tested on latest master (a595e03aff4a6c6174cde09acef7b89d0c36ac96)I ran it locally (on mac):