Closed kaisun2000 closed 3 years ago
Need investigate more.
// Re-enable custom-code runner
admin.enableResource(clusterName, customCodeRunnerResource, true);
ClusterStateVerifier.BestPossAndExtViewZkVerifier
verifier = new ClusterStateVerifier.BestPossAndExtViewZkVerifier(ZK_ADDR, clusterName);
try {
result = ClusterStateVerifier.verifyByPolling(verifier, TestHelper.WAIT_DURATION);
Assert.assertTrue(result);
} finally {
verifier.close();
}
This seems a typical case without waiting before verifyByPolling, the verification can be too early.
second issue:
2020-09-17T03:50:18.5157922Z [ERROR] test(org.apache.helix.integration.TestDisableCustomCodeRunner) Time elapsed: 3.475 s <<< FAILURE! 2020-09-17T03:50:18.5159810Z java.lang.AssertionError: expected:
but was: 2020-09-17T03:50:18.5161652Z at org.apache.helix.integration.TestDisableCustomCodeRunner.test(TestDisableCustomCodeRunner.java:236) 2020-09-17T03:50:18.5163211Z 2020
code:
for (String instance : callbacks.keySet()) {
DummyCallback callback = callbacks.get(instance);
if (instance.equals(leader)) {
Assert.assertTrue(callback.isInitTypeInvoked());
} else {
Assert.assertFalse(callback.isInitTypeInvoked()); -->
}
callback.reset();
The question boils down why the assertion should be right? Let us disable it for now.
LOG: (368)