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

Suppress RPC Error disconnect log #5802

Merged
merged 1 commit into from
May 23, 2024

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Debugging das interop, noticed a noisy debug log:

May 17 06:12:23.708 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489
May 17 06:12:23.708 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489
May 17 06:12:23.708 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489
May 17 06:12:23.708 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489
May 17 06:12:23.708 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489
May 17 06:12:23.709 DEBG RPC Error, direction: Outgoing, score: -0.7364966123883209, peer_id: 16Uiu2HAky14JjrYDFhkEjnVW9P8k8ysx87f4LcvzLRrVBnLEkqMU, client: Prysm: version: a1466d26b86470bab79e94c7d553033be4b8530e, os_version: unknown, err: G
racefully Disconnected, protocol: data_column_sidecars_by_root, service: libp2p, module: lighthouse_network::peer_manager:489

This log is emitted from the peermanager, and is a consequence of allowing RPCError for disconnected peers through. If a peer disconnects and has 100 active ReqResp request, the log will appear 100 times.

Proposed Changes

If we allow to propagate the RPCError to the application, do not log it in the peer manager

Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

LGTM. @AgeManning thoughts?

@jimmygchen jimmygchen added the ready-for-review The code is ready for review label May 17, 2024
@michaelsproul
Copy link
Member

Wrong Age 😅

@AgeManning

Copy link
Member

@ackintosh ackintosh left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@realbigsean
Copy link
Member

@mergify queue

Copy link

mergify bot commented May 23, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 7073242

mergify bot added a commit that referenced this pull request May 23, 2024
@mergify mergify bot merged commit 7073242 into sigp:unstable May 23, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants