Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 27, 2024

This changeset adds a table of worker thread statuses to the progress logs. This will allow at-a-glance monitoring of how long different tasks have been in progress and will usefully surface any hung threads.

This also removes the “No tasks found. Sleeping.” log messages, which convey little but add a lot of clutter.

@FGasper FGasper requested a review from tdq45gj November 27, 2024 01:52
Copy link
Collaborator

@tdq45gj tdq45gj left a comment

Choose a reason for hiding this comment

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

LGTM

@FGasper FGasper merged commit 2c7fc0c into mongodb-labs:main Nov 28, 2024
33 checks passed
@FGasper FGasper deleted the worker_tracker branch November 28, 2024 13:17
FGasper added a commit to FGasper/migration-verifier that referenced this pull request Nov 30, 2024
- This makes reportutils.FmtBytes() postfix the unit after the number;
  previously it just returned the (stringified) number.
- This makes the “Check finished” log print if there is no error,
  not if there is an error. (The logic had been reversed.)
- This suppresses the “No tasks found” log. (PR mongodb-labs#60 meant to do this.)
- This unsets worker tracker entries once they are done being
  processed. (Previously they were not cleared, which made the worker
  tracker table much less meaningful because entries were never removed,
  only replaced.)
- This suppresses the findCmd log for recheck tasks since the
  list of IDs can be long.
- This suppresses the “Finished document comparison task” log if
  that task fails.
FGasper added a commit to FGasper/migration-verifier that referenced this pull request Nov 30, 2024
- This makes reportutils.FmtBytes() postfix the unit after the number;
  previously it just returned the (stringified) number.
- This makes the “Check finished” log print if there is no error,
  not if there is an error. (The logic had been reversed.)
- This suppresses the “No tasks found” log. (PR mongodb-labs#60 meant to do this.)
- This unsets worker tracker entries once they are done being
  processed. (Previously they were not cleared, which made the worker
  tracker table much less meaningful because entries were never removed,
  only replaced.)
- This suppresses the findCmd log for recheck tasks since the
  list of IDs can be long.
- This suppresses the “Finished document comparison task” log if
  that task fails.
FGasper added a commit to FGasper/migration-verifier that referenced this pull request Dec 1, 2024
- This makes reportutils.FmtBytes() postfix the unit after the number;
  previously it just returned the (stringified) number.
- This makes the “Check finished” log print if there is no error,
  not if there is an error. (The logic had been reversed.)
- This suppresses the “No tasks found” log. (PR mongodb-labs#60 meant to do this.)
- This unsets worker tracker entries once they are done being
  processed. (Previously they were not cleared, which made the worker
  tracker table much less meaningful because entries were never removed,
  only replaced.)
- This suppresses the findCmd log for recheck tasks since the
  list of IDs can be long.
- This suppresses the “Finished document comparison task” log if
  that task fails.
FGasper added a commit that referenced this pull request Dec 2, 2024
- This makes reportutils.FmtBytes() postfix the unit after the number;
  previously it just returned the (stringified) number.
- This makes the “Check finished” log print if there is no error,
  not if there is an error. (The logic had been reversed.)
- This suppresses the “No tasks found” log. (PR #60 meant to do this.)
- This unsets worker tracker entries once they are done being
  processed. (Previously they were not cleared, which made the worker
  tracker table much less meaningful because entries were never removed,
  only replaced.)
- This suppresses the findCmd log for recheck tasks since the
  list of IDs can be long.
- This suppresses the “Finished document comparison task” log if
  that task fails.
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