File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/org/elasticsearch/common/blobstore/fs Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -84,21 +84,17 @@ public void run() {
8484 FileInputStream is = null ;
8585 try {
8686 is = new FileInputStream (new File (path , blobName ));
87- } catch (FileNotFoundException e ) {
88- IOUtils .closeWhileHandlingException (is );
89- listener .onFailure (e );
90- return ;
91- }
92- try {
9387 int bytesRead ;
9488 while ((bytesRead = is .read (buffer )) != -1 ) {
9589 listener .onPartial (buffer , 0 , bytesRead );
9690 }
97- listener .onCompleted ();
98- } catch (Exception e ) {
91+ } catch (Throwable e ) {
9992 IOUtils .closeWhileHandlingException (is );
10093 listener .onFailure (e );
94+ return ;
10195 }
96+ IOUtils .closeWhileHandlingException (is );
97+ listener .onCompleted ();
10298 }
10399 });
104100 }
You can’t perform that action at this time.
0 commit comments