Skip to content

Print count of orphaned tasks and orphaned task locks in the log message#844

Merged
surajkn merged 1 commit intolinkedin:masterfrom
surajkn:print_orphan_task_count
Aug 10, 2021
Merged

Print count of orphaned tasks and orphaned task locks in the log message#844
surajkn merged 1 commit intolinkedin:masterfrom
surajkn:print_orphan_task_count

Conversation

@surajkn
Copy link
Copy Markdown
Collaborator

@surajkn surajkn commented Jul 28, 2021

Print count of orphaned tasks and task logs in addition to printing the actual tasks, task locks and connector info in ZkAdapter while cleaning up orphan tasks.

Important: DO NOT REPORT SECURITY ISSUES DIRECTLY ON GITHUB.
For reporting security issues and contributing security fixes,
please, email security@linkedin.com instead, as described in
the contribution guidelines.

Please, take a minute to review the contribution guidelines at:
https://github.com/linkedin/Brooklin/blob/master/CONTRIBUTING.md

@surajkn surajkn requested a review from vmaheshw July 28, 2021 22:24
Copy link
Copy Markdown
Collaborator

@vmaheshw vmaheshw left a comment

Choose a reason for hiding this comment

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

Fix the description of the PR.

@surajkn surajkn changed the title Print count of orphaned tasks and orphaned task locks in the log mess… Print count of orphaned tasks and orphaned task locks in the log mess Jul 28, 2021
@surajkn surajkn changed the title Print count of orphaned tasks and orphaned task locks in the log mess Print count of orphaned tasks and orphaned task locks in the log message Jul 28, 2021

if (connectorTaskList.size() > 0) {
LOG.warn("Found orphan tasks: {} in connector: {}", connectorTaskList, connector);
LOG.warn("Found {} number of orphan tasks: {} in connector: {}", connectorTaskList.size(),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit pick: Found 10 number of orphan task does not sound right. How about Found 10 orphan tasks:?


if (orphanLockList.size() > 0) {
LOG.warn("Found orphan task locks: {} in connector: {}", orphanLockList, connector);
LOG.warn("Found {} number of orphan task locks: {} in connector: {}", orphanLockList.size(),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as above comment.

Print count of orphaned tasks and orphaned task locks in the log message in addition to
the actual tasks/locks and connector info.
@surajkn surajkn force-pushed the print_orphan_task_count branch from e18c46a to ce37b39 Compare August 4, 2021 17:57
Copy link
Copy Markdown
Collaborator

@vmaheshw vmaheshw left a comment

Choose a reason for hiding this comment

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

LGTM

@surajkn surajkn merged commit 9ad75eb into linkedin:master Aug 10, 2021
@surajkn surajkn deleted the print_orphan_task_count branch August 10, 2021 06:13
vmaheshw pushed a commit to vmaheshw/brooklin that referenced this pull request Mar 1, 2022
Print count of orphaned tasks and orphaned task locks in the log message in addition to
the actual tasks/locks and connector info.
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.

3 participants