Skip to content

Expose node address to failed node detectors#7230

Open
rahulrane50 wants to merge 1 commit into
redisson:masterfrom
rahulrane50:rrane_failed_detector_address_tagging
Open

Expose node address to failed node detectors#7230
rahulrane50 wants to merge 1 commit into
redisson:masterfrom
rahulrane50:rrane_failed_detector_address_tagging

Conversation

@rahulrane50

@rahulrane50 rahulrane50 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a follow-up observability hook for custom failed-node detectors. [issue]

This builds on the per-node detector copy fix in #7226. Once every copied RedisClientConfig has an independent detector instance, Redisson can assign the Redis node
address to that detector so custom wrappers can attribute/log the node they are observing.

Changes:

  • Add default FailedNodeDetector.setNodeAddress(InetSocketAddress).
  • Assign the resolved socket address when available.
  • Fall back to an unresolved socket address from RedisURI when the resolved address is not set.
  • Cover both resolved and unresolved address assignment in FailedNodeDetectorCopyTest.

Depends on #7226.

Test:

JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-21.jdk/Contents/Home mvn -pl redisson -Punit-test -Dmaven.compiler.testRelease=21
-Dmaven.compiler.testSource=21 -Dmaven.compiler.testTarget=21 -Dtest=org.redisson.client.FailedNodeDetectorCopyTest test

@rahulrane50
rahulrane50 force-pushed the rrane_failed_detector_address_tagging branch 2 times, most recently from ce4ade1 to ba22251 Compare June 30, 2026 17:07
Signed-off-by: Rahul Rane <rahulrane50@gmail.com>
@rahulrane50
rahulrane50 force-pushed the rrane_failed_detector_address_tagging branch from ba22251 to 3779030 Compare July 8, 2026 16:54
@rahulrane50

Copy link
Copy Markdown
Contributor Author

@mrniko gentle ping on this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant