-
Notifications
You must be signed in to change notification settings - Fork 138
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
Conversation
There was a problem hiding this 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.
@@ -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(), |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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.
e18c46a
to
ce37b39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Print count of orphaned tasks and orphaned task locks in the log message in addition to the actual tasks/locks and connector info.
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 [email protected] 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