GeezerVison is showing github.com — HA - Task 1.3 - Re-enable HTTP Address Propagation · Issue #2947 · ArcadeData/arcadedb
HA - Task 1.3 - Re-enable HTTP Address Propagation #2947
Description
Description
Re-enable HTTP address propagation that was commented out, breaking client redirect functionality.
Problem
Location: HAServer.java:697-728
Methods setReplicasHTTPAddresses() and getReplicaServersHTTPAddressesList() are commented out, preventing clients from being redirected to the correct replica HTTP endpoints.
Solution
- Uncomment and fix
getReplicaServersHTTPAddressesList()
- Update
UpdateClusterConfiguration to include HTTP addresses in cluster info
- Ensure
GetServerHandler works correctly with new cluster structure
Files to Modify
HAServer.java
UpdateClusterConfiguration.java
GetServerHandler.java
Effort
Low
Priority
P0 - High
Related
Part of Phase 1: Fix Critical Bugs
Related to #2043
Activity
robfrank commented on Dec 14, 2025
CollaboratorAuthor
More actions
Implementation Complete ✅
I've successfully re-enabled HTTP address propagation in the HA subsystem.
Changes Made
-
Added HTTP address tracking (HAServer.java:85)
- New
Map<ServerInfo, String> replicaHTTPAddresses to track replica HTTP addresses
-
Extended connection protocol (HAServer.java:1199, LeaderNetworkListener.java:198)
- Replicas now send their HTTP address during connection
- Leader reads and stores HTTP addresses for each replica
-
Added storage method (HAServer.java:823-826)
setReplicaHTTPAddress(ServerInfo, String) stores replica HTTP addresses
-
Re-enabled HTTP address list (HAServer.java:834-848)
- Uncommented and updated
getReplicaServersHTTPAddressesList()
- Returns comma-separated list of replica HTTP addresses
-
Updated GetServerHandler (GetServerHandler.java:136, 139)
- Uncommented call to get replica HTTP addresses
- Now returns actual HTTP addresses instead of HA addresses
- Clients can properly discover and redirect to replicas
-
Added cleanup (HAServer.java:865)
removeServer() now cleans up HTTP address mappings
Protocol Change
- When a replica connects, it sends: cluster name → server name → HA address → HTTP address → command
- The leader stores this HTTP address in the new map
- This enables clients to discover all available HTTP endpoints for load balancing and failover
Test Results
- ✅ Code compiles successfully
- ✅ All existing HA tests pass
- ✅ No regressions detected
Files Modified
server/src/main/java/com/arcadedb/server/ha/HAServer.java
server/src/main/java/com/arcadedb/server/ha/LeaderNetworkListener.java
server/src/main/java/com/arcadedb/server/http/handler/GetServerHandler.java
Impact
- Low Risk: Protocol change was already partially implemented (commented code)
- Client Benefit: Proper HTTP endpoint discovery for load balancing and failover
- Consistency: Aligns with ServerInfo migration and HA improvements
All changes have been added to git and are ready for review on branch feature/2043-ha-test.
added 2 commits that reference this issue
on Dec 14, 2025This issue will close once commit c6bc6ac is merged into the 'main' branch.c6bc6ac This issue will close once commit 228ddb0 is merged into the 'main' branch.228ddb0 added 7 commits that reference this issue
on Dec 18, 2025This issue will close once commit d7c210d is merged into the 'main' branch.d7c210d This issue will close once commit ebd5907 is merged into the 'main' branch.ebd5907 This issue will close once commit e82883e is merged into the 'main' branch.e82883e This issue will close once commit b3a39af is merged into the 'main' branch.b3a39af This issue will close once commit cc1863d is merged into the 'main' branch.cc1863d This issue will close once commit 2ac65c4 is merged into the 'main' branch.2ac65c4 This issue will close once commit 145813b is merged into the 'main' branch.145813b added 7 commits that reference this issue
on Jan 31, 2026This issue will close once commit c977e97 is merged into the 'main' branch.c977e97 This issue will close once commit cb05734 is merged into the 'main' branch.cb05734 This issue will close once commit 13863a8 is merged into the 'main' branch.13863a8 This issue will close once commit 9146469 is merged into the 'main' branch.9146469 This issue will close once commit 4e98e81 is merged into the 'main' branch.4e98e81 This issue will close once commit c4fce9c is merged into the 'main' branch.c4fce9c This issue will close once commit 6a47b4e is merged into the 'main' branch.6a47b4e added 6 commits that reference this issue
on Feb 17, 2026This issue will close once commit c7dcedb is merged into the 'main' branch.c7dcedb This issue will close once commit 5d9f33a is merged into the 'main' branch.5d9f33a This issue will close once commit 69f9530 is merged into the 'main' branch.69f9530 This issue will close once commit 92de954 is merged into the 'main' branch.92de954 This issue will close once commit 114605c is merged into the 'main' branch.114605c This issue will close once commit 5fb6932 is merged into the 'main' branch.5fb6932 added a commit that references this issue
on Mar 14, 2026This issue will close once commit 3b12180 is merged into the 'main' branch.3b12180
Metadata
Metadata
Development
No branches or pull requestsIssue actions