Skip to content

STORM-3188: Remove try-catch block from getAndResetWorkerHeartbeats#3140

Closed
daisyxchen wants to merge 1 commit into
apache:masterfrom
daisyxchen:STORM-3188
Closed

STORM-3188: Remove try-catch block from getAndResetWorkerHeartbeats#3140
daisyxchen wants to merge 1 commit into
apache:masterfrom
daisyxchen:STORM-3188

Conversation

@daisyxchen
Copy link
Copy Markdown
Contributor

No description provided.

return null;
}
localHeartbeats = SupervisorUtils.readWorkerHeartbeats(this.conf);
return getSupervisorWorkerHeartbeatsFromLocal(localHeartbeats);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The method is called in from run method https://github.com/apache/storm/blob/master/storm-server/src/main/java/org/apache/storm/daemon/supervisor/timer/ReportWorkerHeartbeats.java#L45-L49
This try catch loop ensures that thread does not die.
Not sure what this PR is trying to accomplish. Please elaborate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

According to the request in ticket https://issues.apache.org/jira/browse/STORM-3188, is the try catch necessary?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it is. Maybe we should close the issue as won't fix.

@daisyxchen daisyxchen closed this Nov 1, 2019
@daisyxchen daisyxchen deleted the STORM-3188 branch November 1, 2019 20:18
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