taklwu commented on code in PR #7145:
URL: https://github.com/apache/hbase/pull/7145#discussion_r2208626378


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceShipper.java:
##########
@@ -150,13 +151,21 @@ protected void postFinish() {
   }
 
   /**
-   * Do the shipping logic
+   * Do the shipping logic. Package-private for test visibility only. Do not 
use outside tests.
    */
-  private void shipEdits(WALEntryBatch entryBatch) {
+  void shipEdits(WALEntryBatch entryBatch) {

Review Comment:
   nit: VisibleForTesting seems the right comment, and it may save few words 
for testing only,



##########
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceShipper.java:
##########
@@ -256,7 +272,10 @@ private void cleanUpHFileRefs(WALEdit edit) throws 
IOException {
     }
   }
 
-  private boolean updateLogPosition(WALEntryBatch batch, ReplicationResult 
replicated) {
+  /**
+   * Package-private for test visibility only. Do not use outside tests.
+   */
+  boolean updateLogPosition(WALEntryBatch batch, ReplicationResult replicated) 
{

Review Comment:
   VisibleForTesting? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to