vinayakphegde commented on code in PR #7145:
URL: https://github.com/apache/hbase/pull/7145#discussion_r2209142876
##########
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:
Got it.
I think we are not allowed to use @VisibleForTesting. I don't see any other
instance in the codebase as well.
also, I see this
```
<restrictImports
implementation="de.skuzzle.enforcer.restrictimports.rule.RestrictImports">
<includeTestCode>true</includeTestCode>
<commentLineBufferSize>512</commentLineBufferSize>
<reason>You should never use this style of annotations(i.e, 'this is
for test only')
in IA.Public or IA.LimitedPrivate classes. Use IA.Private to tell
users this is
not for public use.
For IA.Private classes, use RestrictedApi annotation in error
prone instead.</reason>
<bannedImports>
<bannedImport>org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting</bannedImport>
</bannedImports>
</restrictImports>
```
--
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]