infraio commented on a change in pull request #2064:
URL: https://github.com/apache/hbase/pull/2064#discussion_r455448586
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSourceManager.java
##########
@@ -926,7 +799,8 @@ public void join() {
* @return list of all normal sources
*/
public List<ReplicationSourceInterface> getSources() {
- return new ArrayList<>(this.sources.values());
+ return this.sources.values().stream().filter(source ->
source.isSourceActive())
Review comment:
This is for the ut TestMasterReplication#testLoopedReplication. Will
remove this after HBASE-24743.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]