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

Log byte and doc size for slow merges #8855

Closed
wants to merge 1 commit into from

Conversation

mikemccand
Copy link
Contributor

I just added byte & doc size of the merge when we log it.

Closes #8853

@rjernst
Copy link
Member

rjernst commented Dec 9, 2014

LGTM. One readability comment would be to use 1024f instead of 1024.

@mikemccand mikemccand closed this in de75517 Dec 9, 2014
mikemccand added a commit that referenced this pull request Dec 9, 2014
mikemccand added a commit that referenced this pull request Dec 9, 2014
@@ -117,10 +118,17 @@ protected void doMerge(MergePolicy.OneMerge merge) throws IOException {
totalMergesNumDocs.inc(totalNumDocs);
totalMergesSizeInBytes.inc(totalSizeInBytes);
totalMerges.inc(took);
String message = String.format(Locale.ROOT,
"merge segment %s done: took %s, %.1f MB, %d docs",
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add the [] around values? we should make this consistent with other logs merge segment [%s] done: took [%s], [%.1f MB], [%d] docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK I'll add the []s

@clintongormley clintongormley changed the title Core: also log byte and doc size for slow merges Core: Log byte and doc size for slow merges Dec 16, 2014
@clintongormley clintongormley changed the title Core: Log byte and doc size for slow merges Logging: Log byte and doc size for slow merges Dec 16, 2014
@clintongormley clintongormley added :Core/Infra/Logging Log management and logging utilities and removed review labels Mar 19, 2015
@clintongormley clintongormley changed the title Logging: Log byte and doc size for slow merges Log byte and doc size for slow merges Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging: Add segment size to index.merge.scheduler logging
4 participants