Improve logging for Cluster.Bootstrap hostname matching diagnostics#3388
Merged
Aaronontheweb merged 1 commit intoakkadotnet:devfrom Oct 27, 2025
Conversation
Added detailed DEBUG logging to help diagnose hostname/IP mismatch issues during cluster bootstrap: - HostMatches: Log detailed comparison results showing self hostname, target hostname, target IP, direct match result, contains match result, and final result - MatchesSelf: Log when hostname matches but port mismatches occur - CanJoinSelf: Enhanced warning to separately display hostname and port values when self contact point is not found in discovered targets - AkkaManagement binding: Log the advertised hostname alongside the bind address to clarify the difference between bind and advertised addresses These improvements make it immediately clear in the logs when hostname/IP mismatches prevent successful cluster formation, addressing issues where the self contact point uses a hostname but discovery returns IPs (or vice versa). Fixes akkadotnet#3387
Merged
This was referenced Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses #3387 by adding detailed diagnostic logging to help debug hostname/IP mismatch issues during cluster bootstrap.
Changes
HostMatches method - Added DEBUG logging showing:
MatchesSelf method - Added DEBUG logging for the edge case where hostname matches but port doesn't
CanJoinSelf warning - Enhanced to separately display hostname and port values when self contact point is not found in discovered targets
AkkaManagement binding log - Now shows the advertised hostname alongside the bind address to clarify the difference
Example Logs
Before:
After (with DEBUG enabled):
Testing
No new tests required - these are purely observability improvements that don't change any logic or require infrastructure modifications.
Fixes #3387