Skip to content

Commit 26b3240

Browse files
committed
fix
1 parent 32228d8 commit 26b3240

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

integration-test/common/src/test/java/org/apache/uniffle/test/RpcClientRetryTest.java

+3-9
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ public void testCancelGrpc() throws InterruptedException {
132132
assertEquals(2, result.getSuccessBlockIds().size());
133133

134134
enableFirstNSendDataRequestsToFail(2);
135-
System.out.println("1====================");
136135
CompletableFuture<SendShuffleDataResult> future =
137136
CompletableFuture.supplyAsync(
138137
() -> shuffleWriteClientImpl.sendShuffleData(testAppId, blocks, needCancelRequest));
@@ -225,8 +224,7 @@ public void testRpcRetryLogic(StorageType storageType) {
225224
}
226225

227226
private static void enableFirstNReadRequestsToFail(int failedCount) {
228-
Lists.newArrayList(grpcShuffleServers, nettyShuffleServers).stream()
229-
.flatMap(List::stream)
227+
grpcShuffleServers.stream()
230228
.forEach(
231229
server ->
232230
((MockedGrpcServer) server.getServer())
@@ -235,8 +233,7 @@ private static void enableFirstNReadRequestsToFail(int failedCount) {
235233
}
236234

237235
private static void enableFirstNSendDataRequestsToFail(int failedCount) {
238-
Lists.newArrayList(grpcShuffleServers, nettyShuffleServers).stream()
239-
.flatMap(List::stream)
236+
grpcShuffleServers.stream()
240237
.forEach(
241238
server ->
242239
((MockedGrpcServer) server.getServer())
@@ -245,8 +242,7 @@ private static void enableFirstNSendDataRequestsToFail(int failedCount) {
245242
}
246243

247244
private static void disableFirstNReadRequestsToFail() {
248-
Lists.newArrayList(grpcShuffleServers, nettyShuffleServers).stream()
249-
.flatMap(List::stream)
245+
grpcShuffleServers.stream()
250246
.forEach(
251247
server ->
252248
((MockedGrpcServer) server.getServer())
@@ -285,8 +281,6 @@ private void registerShuffleServer(
285281
.unregisterTimeSec(10)
286282
.unregisterRequestTimeSec(10));
287283

288-
System.out.println("============");
289-
System.out.println(grpcShuffleServerInfoList);
290284
for (int i = 0; i < replica; i++) {
291285
shuffleWriteClientImpl.registerShuffle(
292286
grpcShuffleServerInfoList.get(i),

0 commit comments

Comments
 (0)