File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3333import java .util .List ;
3434import java .util .concurrent .CompletableFuture ;
3535import java .util .concurrent .CompletionException ;
36+ import java .util .concurrent .CopyOnWriteArrayList ;
3637import java .util .concurrent .ExecutionException ;
3738import java .util .concurrent .ExecutorService ;
3839import java .util .concurrent .atomic .AtomicBoolean ;
@@ -228,7 +229,7 @@ public BlockOutputStream(
228229 totalWriteChunkLength = 0 ;
229230 totalPutBlockLength = 0 ;
230231 writtenDataLength = 0 ;
231- failedServers = new ArrayList <>(0 );
232+ failedServers = new CopyOnWriteArrayList <>();
232233 ioException = new AtomicReference <>(null );
233234 this .checksum = new Checksum (config .getChecksumType (), config .getBytesPerChecksum (), true );
234235 this .clientMetrics = clientMetrics ;
You can’t perform that action at this time.
0 commit comments