DefaultEventExecutorChooserFactory is not strict round-robin if executors length is not power of two
See original GitHub issueExpected behavior
GenericEventExecutorChooser.next() will act as strict round-robin
Actual behavior
If idx is reaching Integer.MAX_VALUE, it will turn round
Steps to reproduce
AtomicInteger idx = new AtomicInteger(Integer.MAX_VALUE);
for (int i = 0; i < 10; i++)
System.out.print(Math.abs(idx.getAndIncrement() % 10) + " ");
printed: 7 8 7 6 5 4 3 2 1 0
expected: 7 8 9 0 1 2 3 4 5 6
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Executor Not Communicating With Beneficiaries | What to Do
Executors have a duty to keep beneficiaries informed about the estate. Learn about what beneficiaries can do when the executor is ...
Read more >What to Do if Executor Does Not Follow the Will
There are two basic remedies to deal with an executor who is not following the will: Require the Executor to Act: Beneficiaries can...
Read more >Guidelines for Individual Executors & Trustees
An individual or bank or trust company that settles the estate of a testator according to the terms of the will, or if...
Read more >Inheritance and Estate Settlement | When Will I Get My ...
Experts in estate planning answer common questions regarding when beneficiaries of a will or trust will receive their inheritance.
Read more >Reasons to Appoint a Co-Executor of Your Will | LegalZoom
An important part of estate planning is selecting an executor for your will. In some situations, it may be a good idea to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chrisvest can you have a look please ?
yeah lets just use a long @chrisvest that should be good enough…