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

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

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

surajkn
Copy link
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
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
@@ -1075,7 +1075,8 @@ public int cleanUpOrphanConnectorTasks(boolean cleanUpOrphanTasksInConnector) {
connectorTaskList.remove(KeyBuilder.DATASTREAM_TASK_LOCK_ROOT_NAME);

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
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:?

@@ -1151,7 +1152,8 @@ public int cleanUpOrphanConnectorTaskLocks(boolean cleanUpOrphanTaskLocksInConne
});

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
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.
Copy link
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