Browse Source

Don't remove from myPartitions on queue update

pull/10028/head
ViacheslavKlimov 2 years ago
parent
commit
2f73512005
  1. 1
      common/queue/src/main/java/org/thingsboard/server/queue/discovery/HashPartitionService.java

1
common/queue/src/main/java/org/thingsboard/server/queue/discovery/HashPartitionService.java

@ -177,7 +177,6 @@ public class HashPartitionService implements PartitionService {
QueueKey queueKey = new QueueKey(ServiceType.TB_RULE_ENGINE, queueUpdateMsg.getQueueName(), tenantId);
partitionTopicsMap.put(queueKey, queueUpdateMsg.getQueueTopic());
partitionSizesMap.put(queueKey, queueUpdateMsg.getPartitions());
myPartitions.remove(queueKey);
if (!tenantId.isSysTenantId()) {
tenantRoutingInfoMap.remove(tenantId);
}

Loading…
Cancel
Save