You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ae...@apache.org on 2019/08/14 06:07:55 UTC

[hadoop] branch trunk updated: HDDS-1947. fix naming issue for ScmBlockLocationTestingClient. Contributed by star.

This is an automated email from the ASF dual-hosted git repository.

aengineer pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5a248de  HDDS-1947. fix naming issue for ScmBlockLocationTestingClient. Contributed by star.
5a248de is described below

commit 5a248de51158de40561fc57802c029f686623069
Author: Anu Engineer <ae...@apache.org>
AuthorDate: Tue Aug 13 23:07:02 2019 -0700

    HDDS-1947. fix naming issue for ScmBlockLocationTestingClient.
    Contributed by star.
---
 .../org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java   | 6 +++---
 ...ocationTestIngClient.java => ScmBlockLocationTestingClient.java} | 6 +++---
 .../java/org/apache/hadoop/ozone/om/TestKeyDeletingService.java     | 6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java
index b8534de..982e87e 100644
--- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java
+++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java
@@ -62,9 +62,9 @@ import static org.apache.hadoop.hdds.protocol.proto
  * TODO: Move this class to a generic test utils so we can use this class in
  * other Ozone Manager tests.
  */
-public class ScmBlockLocationTestIngClient implements ScmBlockLocationProtocol {
+public class ScmBlockLocationTestingClient implements ScmBlockLocationProtocol {
   private static final Logger LOG =
-      LoggerFactory.getLogger(ScmBlockLocationTestIngClient.class);
+      LoggerFactory.getLogger(ScmBlockLocationTestingClient.class);
   private final String clusterID;
   private final String scmId;
 
@@ -81,7 +81,7 @@ public class ScmBlockLocationTestIngClient implements ScmBlockLocationProtocol {
    * @param failCallsFrequency - Set to 0 for no failures, 1 for always to fail,
    * a positive number for that frequency of failure.
    */
-  public ScmBlockLocationTestIngClient(String clusterID, String scmId,
+  public ScmBlockLocationTestingClient(String clusterID, String scmId,
       int failCallsFrequency) {
     this.clusterID = StringUtils.isNotBlank(clusterID) ? clusterID :
         UUID.randomUUID().toString();
diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestingClient.java
similarity index 97%
copy from hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java
copy to hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestingClient.java
index b8534de..982e87e 100644
--- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestIngClient.java
+++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ScmBlockLocationTestingClient.java
@@ -62,9 +62,9 @@ import static org.apache.hadoop.hdds.protocol.proto
  * TODO: Move this class to a generic test utils so we can use this class in
  * other Ozone Manager tests.
  */
-public class ScmBlockLocationTestIngClient implements ScmBlockLocationProtocol {
+public class ScmBlockLocationTestingClient implements ScmBlockLocationProtocol {
   private static final Logger LOG =
-      LoggerFactory.getLogger(ScmBlockLocationTestIngClient.class);
+      LoggerFactory.getLogger(ScmBlockLocationTestingClient.class);
   private final String clusterID;
   private final String scmId;
 
@@ -81,7 +81,7 @@ public class ScmBlockLocationTestIngClient implements ScmBlockLocationProtocol {
    * @param failCallsFrequency - Set to 0 for no failures, 1 for always to fail,
    * a positive number for that frequency of failure.
    */
-  public ScmBlockLocationTestIngClient(String clusterID, String scmId,
+  public ScmBlockLocationTestingClient(String clusterID, String scmId,
       int failCallsFrequency) {
     this.clusterID = StringUtils.isNotBlank(clusterID) ? clusterID :
         UUID.randomUUID().toString();
diff --git a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestKeyDeletingService.java b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestKeyDeletingService.java
index 357feeb..4ed4207 100644
--- a/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestKeyDeletingService.java
+++ b/hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestKeyDeletingService.java
@@ -91,7 +91,7 @@ public class TestKeyDeletingService {
     OmMetadataManagerImpl metaMgr = new OmMetadataManagerImpl(conf);
     KeyManager keyManager =
         new KeyManagerImpl(
-            new ScmBlockLocationTestIngClient(null, null, 0),
+            new ScmBlockLocationTestingClient(null, null, 0),
             metaMgr, conf, UUID.randomUUID().toString(), null);
     final int keyCount = 100;
     createAndDeleteKeys(keyManager, keyCount, 1);
@@ -113,7 +113,7 @@ public class TestKeyDeletingService {
     //failCallsFrequency = 1 , means all calls fail.
     KeyManager keyManager =
         new KeyManagerImpl(
-            new ScmBlockLocationTestIngClient(null, null, 1),
+            new ScmBlockLocationTestingClient(null, null, 1),
             metaMgr, conf, UUID.randomUUID().toString(), null);
     final int keyCount = 100;
     createAndDeleteKeys(keyManager, keyCount, 1);
@@ -140,7 +140,7 @@ public class TestKeyDeletingService {
     //failCallsFrequency = 1 , means all calls fail.
     KeyManager keyManager =
         new KeyManagerImpl(
-            new ScmBlockLocationTestIngClient(null, null, 1),
+            new ScmBlockLocationTestingClient(null, null, 1),
             metaMgr, conf, UUID.randomUUID().toString(), null);
     final int keyCount = 100;
     createAndDeleteKeys(keyManager, keyCount, 0);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org