New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISPN-4996 Problem with capacityFactor=0 and restart of all regular nodes #9161
ISPN-4996 Problem with capacityFactor=0 and restart of all regular nodes #9161
Conversation
214fec0
to
8b4b839
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just a few minor things.
core/src/main/java/org/infinispan/topology/ClusterCacheStatus.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/infinispan/distribution/ZeroCapacityNodeTest.java
Outdated
Show resolved
Hide resolved
Future<Cache<Object, Object>> node1Future = | ||
fork(() -> node1.createCache(cacheName, cbZero.build())); | ||
|
||
TestingUtil.sleepThread(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not make use of the TimeService
here to avoid waiting for 10 seconds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wait is just 10ms, not 10s, but I'll give it a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to remove the sleep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wait is just 10ms, not 10s, but I'll give it a try.
Argh I totally missed that 🙈. Thanks for updating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, Core compilation is failing.
8b4b839
to
f854140
Compare
* Delay initial topology until there is at least one node with capacityFactor>0 * Update ConditionFuture to allow duplicate predicates * Do not try to fetch listeners from other joiners
f854140
to
bd955f8
Compare
Thanks @danberindei |
https://issues.redhat.com/browse/ISPN-4996
with capacityFactor>0