@@ -340,8 +340,9 @@ private void invokeCopyFailedForFailedTasks(MapHost host,
340340 boolean setupConnection (MapHost host , Collection <InputAttemptIdentifier > attempts )
341341 throws IOException {
342342 boolean connectSucceeded = false ;
343+ StringBuilder baseURI = null ;
343344 try {
344- StringBuilder baseURI = ShuffleUtils .constructBaseURIForShuffleHandler (host .getHost (),
345+ baseURI = ShuffleUtils .constructBaseURIForShuffleHandler (host .getHost (),
345346 host .getPort (), host .getPartitionId (), host .getPartitionCount (), applicationId , dagId , sslShuffle );
346347 URL url = ShuffleUtils .constructInputURL (baseURI .toString (), attempts , httpConnectionParams .isKeepAlive ());
347348 httpConnection = ShuffleUtils .getHttpConnection (asyncHttp , url , httpConnectionParams ,
@@ -364,13 +365,13 @@ boolean setupConnection(MapHost host, Collection<InputAttemptIdentifier> attempt
364365 }
365366 ioErrs .increment (1 );
366367 if (!connectSucceeded ) {
367- LOG .warn (String . format ( " Failed to connect from %s to %s with %d inputs" , localShuffleHost ,
368- host , remaining .size ()) , ie );
368+ LOG .warn ("FETCH_FAILURE: Failed to connect from {} to {} with {} inputs, url: {} " , localShuffleHost ,
369+ host , remaining .size (), baseURI , ie );
369370 connectionErrs .increment (1 );
370371 } else {
371- LOG .warn (String . format (
372- "Failed to verify reply after connecting from %s to %s with %d inputs pending" ,
373- localShuffleHost , host , remaining .size ()) , ie );
372+ LOG .warn (
373+ "FETCH_FAILURE: Failed to verify reply after connecting from {} to {} with {} inputs pending, url: {} " ,
374+ localShuffleHost , host , remaining .size (), baseURI , ie );
374375 }
375376
376377 // At this point, either the connection failed, or the initial header verification failed.
0 commit comments