Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Sep 17, 2020

Motivation:

The logger for the connection mananger includes some metadata for the
connection ID, and the connection mananger is willing to append that
metadata to any logger provided to it.

The ID is a UUID suffixed with a monotonically increasing
number. The suffix is incremented after the connection has become idle
so that new channels have a unique but related ID. However, if a
connection is dropped the connection manager will attempt to
re-establish it yet the suffix will not change. This is quite
misleading in logs since the underlying channel will have changed.

Modifications:

  • Increment the connection number when transitioning to transient
    failure

Result:

  • The connection ID is incremented when the underlying channel will
    change

Motivation:

The logger for the connection mananger includes some metadata for the
connection ID, and the connection mananger is willing to append that
metadata to any logger provided to it.

The ID is a UUID suffixed with a monotonically increasing
number. The suffix is incremented after the connection has become idle
so that new channels have a unique but related ID. However, if a
connection is dropped the connection manager will attempt to
re-establish it yet the suffix will not change. This is quite
misleading in logs since the underlying channel will have changed.

Modifications:

- Increment the connection number when transitioning to transient
  failure

Result:

- The connection ID is incremented when the underlying channel will
  change
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Sep 17, 2020
@glbrntt glbrntt requested a review from Lukasa September 17, 2020 13:59
@Lukasa Lukasa merged commit 15f28ce into grpc:main Sep 17, 2020
@glbrntt glbrntt deleted the gb-logging-id-for-fast-fail-conns branch September 17, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants