File tree 1 file changed +2
-1
lines changed
cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/detector
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
import java .io .IOException ;
16
16
import java .nio .charset .StandardCharsets ;
17
17
import java .nio .file .Files ;
18
+ import java .nio .file .NoSuchFileException ;
18
19
import java .nio .file .attribute .PosixFilePermission ;
19
20
import java .util .HashMap ;
20
21
import java .util .HashSet ;
@@ -118,7 +119,7 @@ String loadPersistedFailedBrokerList() {
118
119
String failedBrokerListString = null ;
119
120
try {
120
121
failedBrokerListString = readFileToString (_failedBrokersFile , StandardCharsets .UTF_8 );
121
- } catch (FileNotFoundException fnfe ) {
122
+ } catch (FileNotFoundException | NoSuchFileException fnfe ) {
122
123
// This means no previous failures have ever been persisted in the file.
123
124
failedBrokerListString = "" ;
124
125
} catch (IOException ioe ) {
You can’t perform that action at this time.
0 commit comments