gesterzhou commented on a change in pull request #7199:
URL: https://github.com/apache/geode/pull/7199#discussion_r769952943
##########
File path:
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/persistence/PersistentRecoveryOrderDUnitTest.java
##########
@@ -1326,6 +1326,10 @@ public void testRecoverAfterConflict() {
vm1.invoke(() -> getCache().close());
vm0.invoke(() -> {
+ await().untilAsserted(
+ () -> assertThat(
+
InternalDistributedSystem.getAnyInstance().getCancelCriterion().cancelInProgress())
Review comment:
I think the purpose of the fix is to introduce some wait until vm0
completely closed the cache. Using cancelInProgress() is not easy to
understand.
I suggest to use:
await().untilAsserted(()->assertThat(cache == null ||
cache.isClosed()));
--
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]