Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.12.0
-
None
-
None
Description
I was testing Brooklyn HA and noticed something odd: when restarting an HA Brooklyn node, it changes it's node ID reported by `/v1/server/ha/states`.
For instance, I have 2 Brooklyn nodes, 1 master, 1 slave. I stopped master (not killed, stopped), slave took over as expected. Then I restarted the previous master, it came back online as a slave (expected) but the node ID was different. I was expecting it to keep its ID rather creating a new one.
{ "planeId": "qDpn2Lau", "ownId": "nJagUrw8", "masterId": "nJagUrw8", "nodes": { "BgOjYcml": { "nodeId": "BgOjYcml", "nodeUri": null, "status": "TERMINATED", "localTimestamp": 1510052259169, "remoteTimestamp": 1510052260000 }, "iv3XfaEu": { "nodeId": "iv3XfaEu", "nodeUri": null, "status": "STANDBY", "localTimestamp": 1510054973636, "remoteTimestamp": 1510054974000 }, "nJagUrw8": { "nodeId": "nJagUrw8", "nodeUri": null, "status": "MASTER", "localTimestamp": 1510054975025, "remoteTimestamp": 1510054976000 } }, "links": {} }
On the JSON above, BgOjYcml is the same node as iv3XfaEu but BgOjYcml was the ID of the node before restart.