Skip to content
This repository was archived by the owner on Jul 15, 2019. It is now read-only.

Fix bug in retry request management that didn't return batches to pool#104

Merged
ikatkov merged 1 commit intomasterfrom
fix-retry-bug
May 17, 2016
Merged

Fix bug in retry request management that didn't return batches to pool#104
ikatkov merged 1 commit intomasterfrom
fix-retry-bug

Conversation

@francisco-perez-sorrosal
Copy link
Copy Markdown
Contributor

Add new complete tests for PersistentProcessorHandler component.
Also improve readability.

Change-Id: Ied72d420bb229c3466b7b89cf14b0756c93b2e31

Preconditions.checkState(numEvents <= size, "numEvents > size");
return numEvents == size;
PersistEvent get(int idx) {
Preconditions.checkState(numEvents > 0 && 0 <= idx && idx < numEvents);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nitpicking: better to have error message with human readable text there otherwise it throws IllegalArgumentException without any explanation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Also add messages to other preconditions around this class

@ikatkov
Copy link
Copy Markdown
Collaborator

ikatkov commented May 17, 2016

otherwise LGTM

Add new complete tests for PersistentProcessorHandler component.
Also improve readability.

Change-Id: Ied72d420bb229c3466b7b89cf14b0756c93b2e31
@ikatkov ikatkov merged commit c360ee3 into master May 17, 2016
@francisco-perez-sorrosal francisco-perez-sorrosal deleted the fix-retry-bug branch May 18, 2016 00:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants