[MINOR] Fix a typo buffer to body in ChunkFetchSuccess.toString

### What changes were proposed in this pull request?

Fix a typo `buffer` to `body` in `ChunkFetchSuccess.toString`.

### Why are the changes needed?

Since the field name of `AbstractMessage` is body, all the other places show `body=...` instead of `buffer=...`. We had better fix this typo for consistency.

Backport https://github.com/apache/spark/pull/51570.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI.

Closes #3378 from SteNicholas/chunk-fetch-success.

Authored-by: SteNicholas <programgeek@163.com>
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
This commit is contained in:
SteNicholas 2025-07-21 13:31:18 +08:00 committed by mingji
parent cf3c05d668
commit 05fca23ed2

View File

@ -95,7 +95,7 @@ public final class ChunkFetchSuccess extends ResponseMessage {
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
.append("streamChunkId", streamChunkSlice)
.append("buffer", body())
.append("body", body())
.toString();
}
}