From a3eb059709966e7965f85cd6274d47e32e1ec346 Mon Sep 17 00:00:00 2001 From: zhanggangxue Date: Sat, 13 Apr 2019 21:16:19 +0800 Subject: [PATCH] HBASE-21257 misspelled words.[occured -> occurred] --- .../test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java | 4 ++-- .../java/org/apache/hadoop/hbase/rest/ScannerResource.java | 2 +- .../hbase/regionserver/handler/AssignRegionHandler.java | 2 +- .../hbase/regionserver/handler/UnassignRegionHandler.java | 2 +- .../hadoop/hbase/regionserver/wal/CombinedAsyncWriter.java | 2 +- .../apache/hadoop/hbase/security/access/AccessChecker.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java index 8ad241adf0d7..acdd7b083757 100644 --- a/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java +++ b/hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java @@ -55,7 +55,7 @@ public Monkeys(Configuration conf) { try { monkeyRunner.getAndStartMonkey(); } 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() @@ -91,7 +91,7 @@ public void close() throws IOException { executor.awaitTermination(10, TimeUnit.SECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); - LOG.warn("Interruption occured while stopping chaos monkeys " + e); + LOG.warn("Interruption occurred while stopping chaos monkeys " + e); } } } diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/ScannerResource.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/ScannerResource.java index 9de033de1c5e..cd1bc4d76fb6 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/ScannerResource.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/ScannerResource.java @@ -112,7 +112,7 @@ Response update(final ScannerModel model, final boolean replace, servlet.getMetrics().incrementSucessfulPutRequests(1); return Response.created(uri).build(); } 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); if (e instanceof TableNotFoundException) { return Response.status(Response.Status.NOT_FOUND) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/AssignRegionHandler.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/AssignRegionHandler.java index bc2425ba9765..a978d72d2bff 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/AssignRegionHandler.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/AssignRegionHandler.java @@ -152,7 +152,7 @@ public void process() throws IOException { @Override 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); getServer().abort( "Failed to open region " + regionInfo.getRegionNameAsString() + " and can not recover", t); diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java index 3ce7caa00331..1d470c303e05 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/UnassignRegionHandler.java @@ -130,7 +130,7 @@ public void process() throws IOException { @Override 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); } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/CombinedAsyncWriter.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/CombinedAsyncWriter.java index 4e3fa61a60db..429022d98cd5 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/CombinedAsyncWriter.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/CombinedAsyncWriter.java @@ -64,7 +64,7 @@ public void close() throws IOException { } if (error != null) { 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); } } diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessChecker.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessChecker.java index a035eb2fcc0f..4632874566a0 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessChecker.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessChecker.java @@ -528,7 +528,7 @@ public static List getUserGroups(String user) { try { return groupService.getGroups(user); } 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<>(); } }