Himanshu-g81 commented on code in PR #2489:
URL: https://github.com/apache/phoenix/pull/2489#discussion_r3401754633
##########
phoenix-core-server/src/main/java/org/apache/phoenix/replication/reader/ReplicationLogReplayService.java:
##########
@@ -105,6 +117,16 @@ public static ReplicationLogReplayService
getInstance(Configuration conf) throws
return instance;
}
+ @VisibleForTesting
+ public static void setInstanceForTesting(ReplicationLogReplayService
testInstance) {
+ instance = testInstance;
+ }
+
+ @VisibleForTesting
+ public static void resetInstanceForTesting() {
+ instance = null;
+ }
Review Comment:
It's used in phoenix-core module since all the tests are in same module.
--
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]