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 @@ -95,7 +95,9 @@ public Map<TopicIdPartition, FetchPartitionData> get() {
metrics.recordFetchResponseSize(totalBytes);
return result;
} catch (Exception e) {
throw new FetchException("Failed to complete fetch for partitions " + fetchInfos.keySet(), e);
// Only the partition count: fetchInfos can span thousands of client-requested
// partitions, so interpolating the full key set here would build an unbounded string.
throw new FetchException("Failed to complete fetch for " + fetchInfos.size() + " partitions", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ void commit(final ClosedFile file) throws InterruptedException {
totalBytesInProgress.addAndGet(-file.size());
if (error != null) {
// at this point the commit has failed and need to check whether it failed on upload or commit
LOGGER.error("Failed to commit diskless file {}", file, error);
// Log a bounded summary: ClosedFile.toString() would dump every aggregated
// request/batch, an unbounded string on this error path.
LOGGER.error("Failed to commit diskless file (start={}, requests={}, batches={}, bytes={})",
file.start(), file.originalRequests().size(), file.commitBatchRequests().size(), file.size(), error);
if (error.getCause() instanceof FileUploadException) {
metrics.fileUploadFailed();
} else {
Expand Down
Loading