@@ -704,7 +704,8 @@ public void channelzMembership_subchannel() throws Exception {
704704 @ Test
705705 public void channelzMembership_oob () throws Exception {
706706 createChannel ();
707- OobChannel oob = (OobChannel ) helper .createOobChannel (addressGroup , AUTHORITY );
707+ OobChannel oob = (OobChannel ) helper .createOobChannel (
708+ Collections .singletonList (addressGroup ), AUTHORITY );
708709 // oob channels are not root channels
709710 assertNull (channelz .getRootChannel (oob .getLogId ().getId ()));
710711 assertTrue (channelz .containsSubchannel (oob .getLogId ()));
@@ -1621,8 +1622,10 @@ public void subchannelsNoConnectionShutdownNow() {
16211622 public void oobchannels () {
16221623 createChannel ();
16231624
1624- ManagedChannel oob1 = helper .createOobChannel (addressGroup , "oob1authority" );
1625- ManagedChannel oob2 = helper .createOobChannel (addressGroup , "oob2authority" );
1625+ ManagedChannel oob1 = helper .createOobChannel (
1626+ Collections .singletonList (addressGroup ), "oob1authority" );
1627+ ManagedChannel oob2 = helper .createOobChannel (
1628+ Collections .singletonList (addressGroup ), "oob2authority" );
16261629 verify (balancerRpcExecutorPool , times (2 )).getObject ();
16271630
16281631 assertEquals ("oob1authority" , oob1 .authority ());
@@ -1755,7 +1758,8 @@ public void oobChannelHasNoChannelCallCredentials() {
17551758 .containsExactly (channelCredValue , callCredValue ).inOrder ();
17561759
17571760 // Verify that the oob channel does not
1758- ManagedChannel oob = helper .createOobChannel (addressGroup , "oobauthority" );
1761+ ManagedChannel oob = helper .createOobChannel (
1762+ Collections .singletonList (addressGroup ), "oobauthority" );
17591763
17601764 headers = new Metadata ();
17611765 call = oob .newCall (method , callOptions );
@@ -1886,8 +1890,10 @@ public SwapChannelCredentialsResult answer(InvocationOnMock invocation) {
18861890 @ Test
18871891 public void oobChannelsWhenChannelShutdownNow () {
18881892 createChannel ();
1889- ManagedChannel oob1 = helper .createOobChannel (addressGroup , "oob1Authority" );
1890- ManagedChannel oob2 = helper .createOobChannel (addressGroup , "oob2Authority" );
1893+ ManagedChannel oob1 = helper .createOobChannel (
1894+ Collections .singletonList (addressGroup ), "oob1Authority" );
1895+ ManagedChannel oob2 = helper .createOobChannel (
1896+ Collections .singletonList (addressGroup ), "oob2Authority" );
18911897
18921898 oob1 .newCall (method , CallOptions .DEFAULT ).start (mockCallListener , new Metadata ());
18931899 oob2 .newCall (method , CallOptions .DEFAULT ).start (mockCallListener2 , new Metadata ());
@@ -1915,8 +1921,10 @@ public void oobChannelsWhenChannelShutdownNow() {
19151921 @ Test
19161922 public void oobChannelsNoConnectionShutdown () {
19171923 createChannel ();
1918- ManagedChannel oob1 = helper .createOobChannel (addressGroup , "oob1Authority" );
1919- ManagedChannel oob2 = helper .createOobChannel (addressGroup , "oob2Authority" );
1924+ ManagedChannel oob1 = helper .createOobChannel (
1925+ Collections .singletonList (addressGroup ), "oob1Authority" );
1926+ ManagedChannel oob2 = helper .createOobChannel (
1927+ Collections .singletonList (addressGroup ), "oob2Authority" );
19201928 channel .shutdown ();
19211929
19221930 verify (mockLoadBalancer ).shutdown ();
@@ -1934,8 +1942,8 @@ public void oobChannelsNoConnectionShutdown() {
19341942 @ Test
19351943 public void oobChannelsNoConnectionShutdownNow () {
19361944 createChannel ();
1937- helper .createOobChannel (addressGroup , "oob1Authority" );
1938- helper .createOobChannel (addressGroup , "oob2Authority" );
1945+ helper .createOobChannel (Collections . singletonList ( addressGroup ) , "oob1Authority" );
1946+ helper .createOobChannel (Collections . singletonList ( addressGroup ) , "oob2Authority" );
19391947 channel .shutdownNow ();
19401948
19411949 verify (mockLoadBalancer ).shutdown ();
@@ -2116,7 +2124,8 @@ private void subtestNameResolutionRefreshWhenConnectionFailed(
21162124 channelBuilder .nameResolverFactory (nameResolverFactory );
21172125 createChannel ();
21182126 if (isOobChannel ) {
2119- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , "oobAuthority" );
2127+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
2128+ Collections .singletonList (addressGroup ), "oobAuthority" );
21202129 oobChannel .getSubchannel ().requestConnection ();
21212130 } else {
21222131 Subchannel subchannel =
@@ -3183,7 +3192,8 @@ public void channelTracing_subchannelStateChangeEvent() throws Exception {
31833192 public void channelTracing_oobChannelStateChangeEvent () throws Exception {
31843193 channelBuilder .maxTraceEvents (10 );
31853194 createChannel ();
3186- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , "authority" );
3195+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
3196+ Collections .singletonList (addressGroup ), "authority" );
31873197 timer .forwardNanos (1234 );
31883198 oobChannel .handleSubchannelStateChange (
31893199 ConnectivityStateInfo .forNonError (ConnectivityState .CONNECTING ));
@@ -3199,21 +3209,22 @@ public void channelTracing_oobChannelCreationEvents() throws Exception {
31993209 channelBuilder .maxTraceEvents (10 );
32003210 createChannel ();
32013211 timer .forwardNanos (1234 );
3202- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , "authority" );
3212+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
3213+ Collections .singletonList (addressGroup ), "authority" );
32033214 assertThat (getStats (channel ).channelTrace .events ).contains (new ChannelTrace .Event .Builder ()
32043215 .setDescription ("Child OobChannel created" )
32053216 .setSeverity (ChannelTrace .Event .Severity .CT_INFO )
32063217 .setTimestampNanos (timer .getTicker ().read ())
32073218 .setChannelRef (oobChannel )
32083219 .build ());
32093220 assertThat (getStats (oobChannel ).channelTrace .events ).contains (new ChannelTrace .Event .Builder ()
3210- .setDescription ("OobChannel for [[test-addr]/{}] created" )
3221+ .setDescription ("OobChannel for [[[ test-addr]/{}] ] created" )
32113222 .setSeverity (ChannelTrace .Event .Severity .CT_INFO )
32123223 .setTimestampNanos (timer .getTicker ().read ())
32133224 .build ());
32143225 assertThat (getStats (oobChannel .getInternalSubchannel ()).channelTrace .events ).contains (
32153226 new ChannelTrace .Event .Builder ()
3216- .setDescription ("Subchannel for [[test-addr]/{}] created" )
3227+ .setDescription ("Subchannel for [[[ test-addr]/{}] ] created" )
32173228 .setSeverity (ChannelTrace .Event .Severity .CT_INFO )
32183229 .setTimestampNanos (timer .getTicker ().read ())
32193230 .build ());
@@ -3349,7 +3360,8 @@ private void channelsAndSubchannels_oob_instrumented0(boolean success) throws Ex
33493360 ClientStream mockStream = mock (ClientStream .class );
33503361 createChannel ();
33513362
3352- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , "oobauthority" );
3363+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
3364+ Collections .singletonList (addressGroup ), "oobauthority" );
33533365 AbstractSubchannel oobSubchannel = (AbstractSubchannel ) oobChannel .getSubchannel ();
33543366 FakeClock callExecutor = new FakeClock ();
33553367 CallOptions options =
@@ -3411,15 +3423,17 @@ public void channelsAndSubchannels_oob_instrumented_name() throws Exception {
34113423 createChannel ();
34123424
34133425 String authority = "oobauthority" ;
3414- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , authority );
3426+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
3427+ Collections .singletonList (addressGroup ), authority );
34153428 assertEquals (authority , getStats (oobChannel ).target );
34163429 }
34173430
34183431 @ Test
34193432 public void channelsAndSubchannels_oob_instrumented_state () throws Exception {
34203433 createChannel ();
34213434
3422- OobChannel oobChannel = (OobChannel ) helper .createOobChannel (addressGroup , "oobauthority" );
3435+ OobChannel oobChannel = (OobChannel ) helper .createOobChannel (
3436+ Collections .singletonList (addressGroup ), "oobauthority" );
34233437 assertEquals (IDLE , getStats (oobChannel ).state );
34243438
34253439 oobChannel .getSubchannel ().requestConnection ();
0 commit comments