Skip to content

Conversation

@smukil
Copy link
Contributor

@smukil smukil commented Apr 24, 2021

This change adds "wrongKeyReturned" as a metric and increments it
everytime we see it in action.

This change was added as we noticed some of these error messages in
the logs, and we'd like to track the frequence of these errors.

Note that even prior to this change, we did not return the wrong key
back to the calling application but instead count it as a miss.

Print stack trace when we notice a Wrong Key error

Consolidate duplicate code under checkWrongKeyReturned()

Address review comments for wrong key returned metric

  • Better logging to catch if returned key is from a different host
  • Make sure stack trace goes to logs instead of stdout
  • Naming nits addressed

This change adds "wrongKeyReturned" as a metric and increments it
everytime we see it in action.

This change was added as we noticed some of these error messages in
the logs, and we'd like to track the frequence of these errors.

Note that even prior to this change, we did not return the wrong key
back to the calling application but instead count it as a miss.

Print stack trace when we notice a Wrong Key error

Consolidate duplicate code under checkWrongKeyReturned()

Address review comments for wrong key returned metric

- Better logging to catch if returned key is from a different host
- Make sure stack trace goes to logs instead of stdout
- Naming nits addressed
@smukil smukil self-assigned this Apr 24, 2021
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