Skip to content

Commit abe7bc6

Browse files
author
lgh
committed
Optimization error log
1 parent e9aaaea commit abe7bc6

File tree

1 file changed

+2
-3
lines changed
  • hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs

1 file changed

+2
-3
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBench.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private void cleanupBeforeTestrun() throws IOException {
143143
*
144144
* @throws IOException on error
145145
*/
146-
private void createControlFiles() throws ExecutionException, InterruptedException {
146+
private void createControlFiles() {
147147
LOG.info("Creating " + numberOfMaps + " control files");
148148

149149
List<Future<Void>> list = new ArrayList<>();
@@ -160,8 +160,7 @@ private void createControlFiles() throws ExecutionException, InterruptedExceptio
160160
try {
161161
list.get(i).get();
162162
} catch (InterruptedException | ExecutionException e) {
163-
LOG.error("Creating control files Error.");
164-
throw e;
163+
LOG.error("Creating control files Error." , e);
165164
}
166165
}
167166

0 commit comments

Comments
 (0)