Skip to content

Commit

Permalink
isModuleOperate should give the default false return (#4423)
Browse files Browse the repository at this point in the history
  • Loading branch information
peacewong authored Mar 28, 2023
1 parent 8d21791 commit cf0a16d
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,8 @@ class DriverAndYarnResource(
}

def isModuleOperate(r: Resource): Boolean = {
if (this.isModuleOperate || r.isModuleOperate) {
true
} else if (this.yarnResource.queueName.equals(r.yarnResource.queueName)) {
logger.debug(s"Not module operate this:$this other:$r")
false
} else {
true
}
// TODO This method needs to return false by default, and this method needs to be removed later
false
}

def isModuleOperate: Boolean = {
Expand Down

0 comments on commit cf0a16d

Please sign in to comment.