Skip to content

Commit

Permalink
remove unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Jan 20, 2025
1 parent e8f428e commit 48546c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import java.util.concurrent.{Callable, ConcurrentHashMap, ThreadPoolExecutor, Ti

import scala.collection.JavaConverters._
import scala.collection.mutable
import scala.util.Random

import com.google.common.cache.{Cache, CacheBuilder}

Expand Down Expand Up @@ -303,7 +302,6 @@ class ReducePartitionCommitHandler(
context.asInstanceOf[RemoteNettyRpcCallContext].nettyEnv.serialize(returnedMsg)
}
})

context.asInstanceOf[RemoteNettyRpcCallContext].callback.onSuccess(cachedMsg)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testUpdateReducerFileGroupTimeout() throws InterruptedException {
when(endpointRef.askSync(any(), any(), any()))
.thenAnswer(
new AnswersWithDelay(
200,
2000,
invocation ->
GetReducerFileGroupResponse$.MODULE$.apply(
StatusCode.SUCCESS, locations, new int[0], Collections.emptySet())));
Expand All @@ -76,7 +76,7 @@ public void testUpdateReducerFileGroupTimeout() throws InterruptedException {
exceptionRef.set(e);
}

Thread.sleep(5000);
Thread.sleep(1000);

Exception exception = exceptionRef.get();
Assert.assertTrue(exception.getCause() instanceof TimeoutException);
Expand Down

0 comments on commit 48546c7

Please sign in to comment.