Skip to content

ACCUMULO-4178: Updated the sender thread to include the table ids.#87

Closed
ivakegg wants to merge 1 commit intoapache:1.6from
ivakegg:ACCUMULO-4178
Closed

ACCUMULO-4178: Updated the sender thread to include the table ids.#87
ivakegg wants to merge 1 commit intoapache:1.6from
ivakegg:ACCUMULO-4178

Conversation

@ivakegg
Copy link
Contributor

@ivakegg ivakegg commented Apr 3, 2016

No description provided.

Thread.currentThread().setName(msg);
StringBuilder msg = new StringBuilder();
msg.append("sending ").append(String.format("%,d", count)).append(" mutations to ").append(String.format("%,d", mutationBatch.size()))
.append(" tablets for ").append(String.format("%,d", tableIds.size())).append(" tables ").append(tableIds).append(" to ").append(location);
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick - suggest adding surrounding tableIds with [] or (). Or, remove tableIds.size() from the output if you are going to list the tables.

Copy link
Contributor

Choose a reason for hiding this comment

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

Usually the toString method for collections will enclose the output with something like []. I suspect TreeSet does this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TreeSet already adds []. Perhaps I should not depend on a toString method however and do the work myself to ensure it is added correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I agree including the number of table ids is redundant. I will remove that part....

@joshelser
Copy link
Member

Keith and Dave summed up the comments that I had to add already :)

@keith-turner
Copy link
Contributor

Could put the table ids at the end of the message.

For example the following

sending 20 mutations to 5 tablets for [5a] to 192.168.1.103
sending 200 mutations to 10 tablets for [ab,cd,ef,gh,ij,k1,mn,rst,xyz] to 192.168.1.103

vs

sending 20 mutations to 5 tablets at 192.168.1.103 tids: [5a]
sending 200 mutations to 10 tablets at 192.168.1.103 tids: [ab,cd,ef,gh,ij,k1,mn,rst,xyz]

@ivakegg
Copy link
Contributor Author

ivakegg commented Apr 4, 2016

Could put the table ids at the end of the message.

I do not have a real opinion either way, but if anybody has built tools to parse this message/title then I expect putting them at the end would probably be better. I will make that change.

@ivakegg
Copy link
Contributor Author

ivakegg commented Apr 5, 2016

I think I have addresses all concerns here. Any votes for merging this in?

@joshelser
Copy link
Member

LGTM 👍

I'll work on merging this in. Thanks, @ivakegg!

@keith-turner
Copy link
Contributor

+1

@asfgit asfgit closed this in 0712471 Apr 5, 2016
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.

4 participants