Skip to content
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

[CELEBORN-1820] Failing to write and flush StreamChunk data should be counted as FETCH_CHUNK_FAIL #3051

Closed
wants to merge 2 commits into from

Conversation

Z1Wu
Copy link
Contributor

@Z1Wu Z1Wu commented Jan 4, 2025

What changes were proposed in this pull request?

  • In current implementation, we use writeAndFlush to send chunk data to client asynchronously. Failing to write and flush StreamChunk data to remote should be counted as FETCH_CHUNK_FAIL.
  • Add remote client address in log for debug.

Why are the changes needed?

It it important to monitor FETCH_CHUNK_FAIL count correctly.

Does this PR introduce any user-facing change?

How was this patch tested?

@@ -511,7 +511,8 @@ class FetchHandler(
client: TransportClient,
streamChunkSlice: StreamChunkSlice,
req: RequestMessage): Unit = {
logDebug(s"Received req from ${NettyUtils.getRemoteAddress(client.getChannel)}" +
val remoteAddr = NettyUtils.getRemoteAddress(client.getChannel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it a lazy val

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, this object is only used in some scenarios.

Copy link
Contributor

@FMX FMX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FMX
Copy link
Contributor

FMX commented Jan 7, 2025

Merged into main(v0.6.0).

@FMX FMX closed this in eb9e164 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants