Skip to content

Improve purge client cleanup logging#4271

Merged
nickva merged 1 commit intomainfrom
clean-up-purge-client-check-logging
Nov 18, 2022
Merged

Improve purge client cleanup logging#4271
nickva merged 1 commit intomainfrom
clean-up-purge-client-check-logging

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Nov 17, 2022

Improve purge client cleanup logging

  • Refactor lag logging to a separate function.

  • When purge client validity throws an error log the error as well.

  • Use the newer erlang:system_time(second) call to get time.

  • When warning about update lag, log both the lag and the limit.

  • Add a specific log message if update timestamp is invalid.

  • Clarify that an invalid checkpoint is not always because of a malformed
    checkpoint document. The most likely case is it's a stale view client
    checkpoint which hasn't been cleaned up properly.

Fix: #4181

 * Refactor lag logging to a separate function.

 * When purge client validity throws an error log the error as well.

 * Use the newer `erlang:system_time(second)` call to get time.

 * When warning about update lag, log both the lag and the limit.

 * Add a specific log message if update timestamp is invalid.

 * Clarify that an invalid is not always because of a malformed checkpoint
   document. The most likely case is it's a stale view client checkpoint which
   hasn't been cleaned up properly.

Fix: #4181
@nickva nickva force-pushed the clean-up-purge-client-check-logging branch from 62fbcca to 6522728 Compare November 18, 2022 02:55
@nickva nickva merged commit 1ddff14 into main Nov 18, 2022
@nickva nickva deleted the clean-up-purge-client-check-logging branch November 18, 2022 16:10
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.

Couchdb error - Purge checkpoint '_local/purge-mrview-' not updated in 59 seconds

2 participants

Comments