Skip to content

Conversation

@poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented May 9, 2024

Motivation

PulsarHandler.remoteAddress is the socket address of the Proxy when enabled haProxyProtocolEnabled, we'd better print three addresses: local address, remote address, source remote address in the log.

Modifications

Print three addresses: local address, remote address, source remote address in the log.

After this PR, the demo of addresses in the log is below:

  • Demo: [id: 0x2561bcd1, L:/10.0.136.103:6650! R:/240.240.0.5:58038] [SR:/240.240.0.5:58038]
  • L: local Address
  • R: remote address
  • SR: source remote address. It is the source address when enabled "haProxyProtocolEnabled".

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 3.4.0 milestone May 9, 2024
@poorbarcode poorbarcode self-assigned this May 9, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 9, 2024
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM

@poorbarcode poorbarcode merged commit d77c5de into apache:master May 10, 2024
poorbarcode added a commit that referenced this pull request May 10, 2024
poorbarcode added a commit that referenced this pull request May 10, 2024
poorbarcode added a commit that referenced this pull request May 10, 2024
poorbarcode added a commit that referenced this pull request May 10, 2024
poorbarcode added a commit that referenced this pull request May 10, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request May 15, 2024
…Enabled (apache#22686)

(cherry picked from commit d77c5de)
(cherry picked from commit b178084)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 16, 2024
…Enabled (apache#22686)

(cherry picked from commit d77c5de)
(cherry picked from commit b178084)
lhotari added a commit that referenced this pull request Jun 17, 2024
…tcher (#18624)

- also apply #22686 changes since that has also been cherry-picked to branch-2.11

(cherry picked from commit 889966c)
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants