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

Clean up the flusher via helper methods #512

Merged
merged 1 commit into from
Aug 13, 2015
Merged

Clean up the flusher via helper methods #512

merged 1 commit into from
Aug 13, 2015

Conversation

eapache
Copy link
Contributor

@eapache eapache commented Aug 13, 2015

if f.currentRetries[msg.Topic] != nil && f.currentRetries[msg.Topic][msg.Partition] != nil {
// we're currently retrying this partition so we need to filter out this message
f.parent.retryMessages([]*ProducerMessage{msg}, f.currentRetries[msg.Topic][msg.Partition])
batch[i] = nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually some functional changes here; I re-orged a few of these lines so that we retry here before we do the chaser check; I don't think this really makes any difference

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I can't really think that would disrupt anything - if anything this ordering is more logical.

@wvanbergen
Copy link
Contributor

🆒 👍 🚢

eapache added a commit that referenced this pull request Aug 13, 2015
Clean up the flusher via helper methods
@eapache eapache merged commit 85c7680 into master Aug 13, 2015
@eapache eapache deleted the cleanup-flusher branch August 13, 2015 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants