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

Add logging for failed TTL purges #11302

Merged

Conversation

spinscale
Copy link
Contributor

In order to get some information if the TTL purger thread could
successfully delete all documents per bulk exection, this commit
adds some logging. TRACE level logging will potentially contain
a lot of information about all the bulk failures.

Closes #11019

@spinscale spinscale added >enhancement :Core/Infra/Logging Log management and logging utilities labels May 22, 2015
@spinscale
Copy link
Contributor Author

@jaymode can you take a look?

if (response.isFailed()) failedItems++;
}
if (logger.isTraceEnabled()) {
logger.trace("Bulk deletion failures for [{}]/[{}] items, failure message: [{}]", failedItems, bulkResponse.getItems().length, bulkResponse.buildFailureMessage());
Copy link
Member

Choose a reason for hiding this comment

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

can we s/Bulk/bulk here? I think we try to stay with lowercase in logs right?

@jaymode
Copy link
Member

jaymode commented May 22, 2015

LGTM. left a minor comment about capitialization. Thanks for taking care of this!

@spinscale spinscale force-pushed the 1505-issue-11019-log-ttl-deletion-failures branch from c82e0a3 to b22be7f Compare May 22, 2015 15:39
In order to get some information if the TTL purger thread could
successfully delete all documents per bulk exection, this commit
adds some logging. TRACE level logging will potentially contain
a lot of information about all the bulk failures.

Closes elastic#11019
@spinscale spinscale force-pushed the 1505-issue-11019-log-ttl-deletion-failures branch from b22be7f to 85720d8 Compare May 22, 2015 15:40
@spinscale spinscale merged commit 85720d8 into elastic:master May 22, 2015
@clintongormley clintongormley changed the title Logging: Add logging for failed TTL purges Add logging for failed TTL purges Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Logging Log management and logging utilities >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TTL deletion failures are not logged
3 participants