分区的主实例或无状态实例的地址无效 [英] The primary or stateless instance for the partition has invalid address
问题描述
我使用现成的分区创建了一个有状态服务:
I created a stateful service with the out-of-the-box partitioning:
<StatefulService ServiceTypeName="ExamplesServiceType" TargetReplicaSetSize="[ExamplesService_TargetReplicaSetSize]" MinReplicaSetSize="[ExamplesService_MinReplicaSetSize]">
<UniformInt64Partition PartitionCount="[ExamplesService_PartitionCount]" LowKey="-9223372036854775808" HighKey="9223372036854775807" />
</StatefulService>
服务清单将参数设置为(即装即用):
The service manifest sets the params to (out-of-the-box as well):
<Parameter Name="ExampleService_PartitionCount" Value="1" />
<Parameter Name="ExampleService_MinReplicaSetSize" Value="2" />
<Parameter Name="ExampleService_TargetReplicaSetSize" Value="3" />
<Parameter Name="WebService_InstanceCount" Value="1" />
现在,我想从同一群集中的无状态服务调用到有状态服务:
Now I want to call to to my stateful service from my stateless service in the same cluster:
ServiceUriBuilder builder = new ServiceUriBuilder(ExampleServiceName);
var service = ServiceProxy.Create<IExampleService>(builder.ToUri(),new ServicePartitionKey(1));
return service.MyCallAsync(id);
我遇到以下错误:
'a67f7afa-3370-4e6f-ae7c-15188004bfa1'分区的主实例或无状态实例的地址无效,这意味着副本/实例的正确地址未在系统中注册
The primary or stateless instance for the partition 'a67f7afa-3370-4e6f-ae7c-15188004bfa1' has invalid address, this means that right address from the replica/instance is not registered in the system
我正在尝试将状态日志记录到事件日志中,并且日志中带有"partitionId":"a67f7afa-3370-4e6f-ae7c-15188004bfa1".
The stateful service I'm trying to reach logs to the event logs and the logs carry "partitionId": "a67f7afa-3370-4e6f-ae7c-15188004bfa1".
我想念什么?
推荐答案
我没有按照 查看全文