rls: forcefully close rls channel when lb is shutdown

RLS RPC deadline is configured by service config, and could be extremely long. When RLS lb is shutdown, any pending RLS PRC should be cancelled. Now using shutdownNow() to forcefully close the RLS channel.
This commit is contained in:
ZHANG Dapeng 2021-02-08 15:52:53 -08:00 committed by GitHub
parent b1daad6f30
commit 2cd45e7a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ final class CachingRlsLbClient {
linkedHashLruCache.close();
// TODO(creamsoup) maybe cancel all pending requests
pendingCallCache.clear();
rlsChannel.shutdown();
rlsChannel.shutdownNow();
rlsPicker.close();
}
}