Commit 96b37d1
committed
Remove extra RemoteClusterService instances in unit test
This refactoring is a split from #137406. A TransportService
instance already creates a RemoteClusterService instance,
with a getter method to get a reference to it. The unit
tests were creating another instance, passing the existing
TransportService instance into the constructor. This will
cause one time metric registration to fail since the metrics
have already been registered in the TransportService's
internal RemoteClusterService instance.
Relates: ES-126951 parent e8a9eb1 commit 96b37d1
File tree
1 file changed
+667
-722
lines changed- server/src/test/java/org/elasticsearch/transport
1 file changed
+667
-722
lines changed
0 commit comments