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

KAFKA-3602: rename RecordAccumulator dequeFor() and fix usage #1254

Closed
wants to merge 2 commits into from

Conversation

hachikuji
Copy link
Contributor

No description provided.

@@ -401,10 +401,14 @@ public boolean hasUnsent() {
return batches;
}

private Deque<RecordBatch> getDeque(TopicPartition tp) {
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: On a separate thread it was mentioned that we do not follow getter convention. Would it make sense to stick to that here as well? Maybe @ijuma will have some suggestion here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I'm aware of the convention. I chose getDeque() here because it paired nicely with getOrCreateDeque() and I couldn't come up with a way to use that convention for the latter.

Copy link
Contributor

Choose a reason for hiding this comment

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

TBH, I do not have any better suggestion as well. Maybe it is OK to have it the way it is.

@ijuma
Copy link
Contributor

ijuma commented Apr 22, 2016

LGTM

2 similar comments
@granthenke
Copy link
Member

LGTM

@SinghAsDev
Copy link
Contributor

LGTM

@asfgit asfgit closed this in e7d04c2 Apr 26, 2016
gfodor pushed a commit to AltspaceVR/kafka that referenced this pull request Jun 3, 2016
Author: Jason Gustafson <jason@confluent.io>

Reviewers: Grant Henke <granthenke@gmail.com>, Ashish Singh <asingh@cloudera.com>, Ismael Juma <ismael@juma.me.uk>

Closes apache#1254 from hachikuji/KAFKA-3602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants