[
https://issues.apache.org/jira/browse/TEZ-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172740#comment-14172740
]
Bikas Saha commented on TEZ-1567:
---------------------------------
This probably does not belong on the Node object.
{code}+ protected boolean isBlacklistingActive() {
+ return appContext.getAllNodes().isBlacklistingActive();
+ }{code}
Does node.registerAsBlackListed() need to be rolled back if node does not end
up calling node.blacklistSelf()?
{code}+ node.registerAsBlacklisted();
+ if (node.isBlacklistingActive()) {
+ LOG.info("Too many previous task failures after blacklisting
re-enabled. " +
+ "Blacklisting node: " + node.getNodeId());
+ node.blacklistSelf();
+ return AMNodeState.BLACKLISTED;
+ } else {
+ // Stay in AC{code}
The flow seems a bit side-effect prone because it looks like its trying to
simulate a new blacklist (and thus cause the threshold check) without actually
blacklisting the node (which would cause notifications to go out).
Could we change the notifications going out till after the
computeIgnorethreshold has been done. This way notifications would not be sent
until we have truly made up our mind.
Or should we change the behavior to not blacklist further nodes if they are
going to cross the threshold. This would maintain the existing blacklisted
nodes but not increase them beyond a threshold. The computeThreshold() method
could be changed to something like doesNewblacklistCrossthreshold().
> Avoid blacklisting nodes when the disable blacklisting threshold is about to
> be hit
> -----------------------------------------------------------------------------------
>
> Key: TEZ-1567
> URL: https://issues.apache.org/jira/browse/TEZ-1567
> Project: Apache Tez
> Issue Type: Bug
> Reporter: Siddharth Seth
> Assignee: Siddharth Seth
> Attachments: TEZ-1567.1.txt
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)