heesung-sn commented on PR #23515:
URL: https://github.com/apache/pulsar/pull/23515#issuecomment-2461205092
> Please notice that the
org.apache.pulsar.client.api.BrokerServiceLookupTest.BundleOfTopic class in the
test.
>
> private void releaseBundleLockAndMakeAcquireFail() throws
Exception {
> ownedBundlesCache.synchronous().invalidateAll();
> mockZooKeeper.delete(ServiceUnitUtils.path(namespaceBundle),
-1);
>
mockZooKeeper.setAlwaysFail(KeeperException.Code.OPERATIONTIMEOUT);
> }
> This method directly discards the cache and deletes zk data, which may
break the test case.
>
> I will double-check the ownership mechanism to avoid the racing condition.
>
This sounds like this ownership metadata and cache inconsistency issue only
occurs from the wrong test setup. Should we just fix the test code in this
case?
--
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]