Browse Source
Merge pull request #10663 from thingsboard/fix/tenant-removal-partition
Fix partitions removed on transport when tenant is updated
pull/10672/head
Viacheslav Klimov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
1 deletions
-
common/transport/transport-api/src/main/java/org/thingsboard/server/common/transport/service/DefaultTransportService.java
|
|
@ -1001,7 +1001,6 @@ public class DefaultTransportService extends TransportActivityManager implements |
|
|
break; |
|
|
break; |
|
|
case TENANT: |
|
|
case TENANT: |
|
|
Tenant tenant = ProtoUtils.fromProto(msg.getTenant()); |
|
|
Tenant tenant = ProtoUtils.fromProto(msg.getTenant()); |
|
|
partitionService.removeTenant(tenant.getId()); |
|
|
|
|
|
boolean updated = tenantProfileCache.put(tenant.getId(), tenant.getTenantProfileId()); |
|
|
boolean updated = tenantProfileCache.put(tenant.getId(), tenant.getTenantProfileId()); |
|
|
partitionService.evictTenantInfo(tenant.getId()); |
|
|
partitionService.evictTenantInfo(tenant.getId()); |
|
|
if (updated) { |
|
|
if (updated) { |
|
|
|