// in while loop i attempt registration with this call ->service.blockingStub().registerNamespace(request);
Response :
io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Cannot register global namespace when not enabled
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:244)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:225)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:142)
at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.registerNamespace(WorkflowServiceGrpc.java:2554)…
If i set the isGlobalDomain to false i am able to register succesfully.
Hey @madhu,
We have renamed the domain concept as namespace in Temporal. So I’m going to assume you meant GlobalNamespace in rest of the response. Based on the error you are seeing looks like GlobalNamespace feature is not turned on for the cluster. You need to configure clusterMetadata section of the config to enable cross datacenter with namespace replication. Here is an example:
The documentation on setting up Temporal with CrossDC setup is very thin at the moment but we will provide more content around it after our V1 release.
@madhu if you are talking about clusterMetadata config then it is still valid. The only difference is replicationConsumer is gone as all Kafka related replication code now removed and we only support rpc. Global section in the config has nothing to do with Cross DC Setup. This is to configure services which are generically applicable to all parts of the system, like membership, pprof handler, tls, etc.
Same goes for the services section. Which has the config settings for individual roles within Temporal.