-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xds:Move creating the retry timer in handleRpcStreamClosed to as late as possible and call close() #11776
base: master
Are you sure you want to change the base?
xds:Move creating the retry timer in handleRpcStreamClosed to as late as possible and call close() #11776
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -444,6 +444,9 @@ | |
// cpcForThisStream is null when doing shutdown | ||
private void cleanUpResourceTimers(ControlPlaneClient cpcForThisStream) { | ||
Collection<String> authoritiesForCpc = getActiveAuthorities(cpcForThisStream); | ||
String target = cpcForThisStream == null ? "null" : cpcForThisStream.getServerInfo().target(); | ||
logger.log(XdsLogLevel.DEBUG, "Cleaning up resource timers for CPC {0}, authorities {1}", | ||
target, authoritiesForCpc); | ||
|
||
for (Map<String, ResourceSubscriber<?>> subscriberMap : resourceSubscribers.values()) { | ||
for (ResourceSubscriber<?> subscriber : subscriberMap.values()) { | ||
|
@@ -957,6 +960,7 @@ | |
|
||
ControlPlaneClient cpcClosed = serverCpClientMap.get(serverInfo); | ||
if (cpcClosed == null) { | ||
logger.log(XdsLogLevel.DEBUG, "Couldn't find CPC for {0}", serverInfo); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This log statement is not at all clear. Any time this happens we'd expect us not to care because the CPC is shut down, but if you just read the message you would probably think this a surprise. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've made the message clearer. We might care because cleanup and metric reporting are being skipped. |
||
return; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can create an immense about of logspam. It's also not at all clear what it is talking about (if you aren't looking at the line of code logs this, it is meaningless). What is this trying to achieve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you trying to achieve with this? I don't follow what it has to do with anything.