Skip to content
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

Merged

Conversation

danberindei
Copy link
Member

@danberindei danberindei commented Mar 22, 2021

https://issues.redhat.com/browse/ISPN-4996

  • Delay initial topology until there is at least one node
    with capacityFactor>0
  • Update ConditionFuture to allow duplicate predicates
  • Add timeout to topologyFuture and transactionDataFuture

Copy link
Member

@tristantarrant tristantarrant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ryanemerson ryanemerson left a 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.

Future<Cache<Object, Object>> node1Future =
fork(() -> node1.createCache(cacheName, cbZero.build()));

TestingUtil.sleepThread(10);
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Contributor

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.

Copy link
Contributor

@ryanemerson ryanemerson left a 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.

* 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
@ryanemerson ryanemerson merged commit a3fd9a6 into infinispan:master Apr 1, 2021
@ryanemerson
Copy link
Contributor

Thanks @danberindei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants