Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ private void shutdownRemaining(SubchannelData activeSubchannelData) {
*/
@Override
public void requestConnection() {
if (!addressIndex.isValid() || rawConnectivityState == SHUTDOWN) {
if (!addressIndex.isValid() || rawConnectivityState == SHUTDOWN || reconnectTask != null) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,11 @@ public void updateAddresses_disjoint_transient_failure() {
loadBalancer.acceptResolvedAddresses(
ResolvedAddresses.newBuilder().setAddresses(newServers).setAttributes(affinity).build());

if (serializeRetries) {
inOrder.verify(mockSubchannel3, never()).start(stateListenerCaptor.capture());
forwardTimeByBackoffDelay();
}

// subchannel 3 still attempts a connection even though we stay in transient failure
assertEquals(TRANSIENT_FAILURE, loadBalancer.getConcludedConnectivityState());
inOrder.verify(mockSubchannel3).start(stateListenerCaptor.capture());
Expand Down
Loading