Open topic with navigation
You try to start a broker on a new host with the result that the broker fails to peer into the domain. The failure message might be
Failed to set ServerStateUUID ... UUID was already set.
This message indicates that you are trying to merge domains, which is not allowed. Consider the following scenario:
1, and start the broker
peerproperty not set. Broker
B1will create a new domain, with only the one broker running in it.
2, also not setting the
B2will also start its own domain.
default.properties on host
2 and set
peer=B1. Restart broker
B2, which attempts to peer to broker
B1 and fails with:
2015-01-15T13:50:46.185-0500 SEVERE PeerService$EntryListener.messageArrived (..) Failed to set ServerStateUUID java.lang.IllegalArgumentException: UUID was already set
This is a safety guard to prevent the merging of two formerly separate domains. Each domain could, of course, have multiple brokers running, with its own durable domain configuration and databases. Domains cannot be merged.
If, for example, host
2 is a new host that is supposed to be provisioned for an existing domain, then restart
B2 with a clean state, and peer it as follows:
B2's state before peering it into the domain.
agent-tool state --resetto remove the clear
B2's state without starting the service, and then start the broker in the usual way. For more information on using
agent-toolcommmands, see NuoDB Agent Tool.
The new broker
B2 will inherit the domain's distributed, consistent, durable state when peering with