HBASE-21257 misspelled words.[occured -> occurred]

This commit is contained in:
zhanggangxue 2019-04-13 21:16:19 +08:00 committed by Apache9
parent 4bc2edadeb
commit 01c26c5311
6 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ public class Monkeys implements Closeable {
try { try {
monkeyRunner.getAndStartMonkey(); monkeyRunner.getAndStartMonkey();
} catch (Exception e) { } catch (Exception e) {
LOG.error("Exception occured when running chaos monkeys: ", e); LOG.error("Exception occurred when running chaos monkeys: ", e);
} }
}; };
this.executor = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder() this.executor = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder()
@ -91,7 +91,7 @@ public class Monkeys implements Closeable {
executor.awaitTermination(10, TimeUnit.SECONDS); executor.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
LOG.warn("Interruption occured while stopping chaos monkeys " + e); LOG.warn("Interruption occurred while stopping chaos monkeys " + e);
} }
} }
} }

View File

@ -112,7 +112,7 @@ public class ScannerResource extends ResourceBase {
servlet.getMetrics().incrementSucessfulPutRequests(1); servlet.getMetrics().incrementSucessfulPutRequests(1);
return Response.created(uri).build(); return Response.created(uri).build();
} catch (Exception e) { } catch (Exception e) {
LOG.error("Exception occured while processing " + uriInfo.getAbsolutePath() + " : ", e); LOG.error("Exception occurred while processing " + uriInfo.getAbsolutePath() + " : ", e);
servlet.getMetrics().incrementFailedPutRequests(1); servlet.getMetrics().incrementFailedPutRequests(1);
if (e instanceof TableNotFoundException) { if (e instanceof TableNotFoundException) {
return Response.status(Response.Status.NOT_FOUND) return Response.status(Response.Status.NOT_FOUND)

View File

@ -152,7 +152,7 @@ public class AssignRegionHandler extends EventHandler {
@Override @Override
protected void handleException(Throwable t) { protected void handleException(Throwable t) {
LOG.warn("Fatal error occured while opening region {}, aborting...", LOG.warn("Fatal error occurred while opening region {}, aborting...",
regionInfo.getRegionNameAsString(), t); regionInfo.getRegionNameAsString(), t);
getServer().abort( getServer().abort(
"Failed to open region " + regionInfo.getRegionNameAsString() + " and can not recover", t); "Failed to open region " + regionInfo.getRegionNameAsString() + " and can not recover", t);

View File

@ -130,7 +130,7 @@ public class UnassignRegionHandler extends EventHandler {
@Override @Override
protected void handleException(Throwable t) { protected void handleException(Throwable t) {
LOG.warn("Fatal error occured while closing region {}, aborting...", encodedName, t); LOG.warn("Fatal error occurred while closing region {}, aborting...", encodedName, t);
getServer().abort("Failed to close region " + encodedName + " and can not recover", t); getServer().abort("Failed to close region " + encodedName + " and can not recover", t);
} }

View File

@ -64,7 +64,7 @@ public final class CombinedAsyncWriter implements AsyncWriter {
} }
if (error != null) { if (error != null) {
throw new IOException("Failed to close at least one writer, please see the warn log above. " + throw new IOException("Failed to close at least one writer, please see the warn log above. " +
"The cause is the first exception occured", error); "The cause is the first exception occurred", error);
} }
} }

View File

@ -528,7 +528,7 @@ public final class AccessChecker {
try { try {
return groupService.getGroups(user); return groupService.getGroups(user);
} catch (IOException e) { } catch (IOException e) {
LOG.error("Error occured while retrieving group for " + user, e); LOG.error("Error occurred while retrieving group for " + user, e);
return new ArrayList<>(); return new ArrayList<>();
} }
} }