question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DefaultEventExecutorChooserFactory is not strict round-robin if executors length is not power of two

See original GitHub issue

Expected 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
normanmaurercommented, Aug 11, 2020

@chrisvest can you have a look please ?

0reactions
normanmaurercommented, Aug 11, 2020

yeah lets just use a long @chrisvest that should be good enough…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found