Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The current code for JvmOptions.DebugOptions does not have equals and hashCode overriden for equality test.
This would cause fail comparison for DebugOptions.NO_DEBUG when being used in YarnTwillPreparer:
final class YarnTwillPreparer implements TwillPreparer { ... @Override public TwillPreparer enableDebugging(boolean doSuspend, String... runnables) { this.debugOptions = new JvmOptions.DebugOptions(true, doSuspend, ImmutableSet.copyOf(runnables)); return this; } .... private void saveJvmOptions(Map<String, LocalFile> localFiles) throws IOException { if ((extraOptions == null || extraOptions.isEmpty()) && JvmOptions.DebugOptions.NO_DEBUG.equals(this.debugOptions)) { // If no vm options, no need to localize the file. return; } ... } ... }