Skip to content
Merged
Changes from 2 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 @@ -27,6 +27,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.InterruptedIOException;
import java.nio.channels.ClosedSelectorException;
import java.nio.file.Files;
import java.time.Duration;
import java.time.Instant;
Expand Down Expand Up @@ -378,7 +379,12 @@ private void handleAgentResponse(ResponseBody body) {
fleetResponse = maybeFleetResp.get();
} catch (Exception e) {
// no error can be reported, as we don't have the data client.state.targets_version avail
ratelimitedLogger.warn("Error parsing remote config response", e);
if (e instanceof ClosedSelectorException) {
// expected when the selector is closed mid-poll, e.g. during pod shutdown
ratelimitedLogger.warn("Error parsing remote config response: {}", e.getMessage());
Comment thread
sarahchen6 marked this conversation as resolved.
Outdated
} else {
ratelimitedLogger.warn("Error parsing remote config response", e);
}
return;
}

Expand Down