File tree Expand file tree Collapse file tree
src/main/java/com/google/devtools/build/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ enum DynamicMode {
3434 public String toString () {
3535 return name ;
3636 }
37-
38- public DynamicMode other () {
39- return this == REMOTE ? LOCAL : REMOTE ;
40- }
4137 }
4238
4339 /**
Original file line number Diff line number Diff line change @@ -166,17 +166,7 @@ private static void stopBranch(
166166 spawn .getMnemonic (), strategyThatCancelled .get ())));
167167 }
168168
169- if (!branchToCancel .cancel (true )) {
170- // This can happen if the other branch is local under local_lockfree and has returned
171- // its result but not yet cancelled this branch, or if the other branch was already
172- // cancelled for other reasons.
173- if (!branchToCancel .isCancelled ()) {
174- throw new DynamicInterruptedException (
175- String .format (
176- "Execution of %s strategy stopped because %s strategy could not be cancelled" ,
177- cancellingStrategy , cancellingStrategy .other ()));
178- }
179- }
169+ branchToCancel .cancel (true );
180170 branchDone .acquire ();
181171 } else {
182172 throw new DynamicInterruptedException (
You can’t perform that action at this time.
0 commit comments