Refactor HashPartitionService.resolve(..)
This commit is contained in:
parent
1ee3c24532
commit
3b86c8c1f5
@ -186,6 +186,9 @@ public class HashPartitionService implements PartitionService {
|
||||
@Override
|
||||
public TopicPartitionInfo resolve(ServiceType serviceType, String queueName, TenantId tenantId, EntityId entityId) {
|
||||
TenantId isolatedOrSystemTenantId = getIsolatedOrSystemTenantId(serviceType, tenantId);
|
||||
if (queueName == null) {
|
||||
queueName = MAIN_QUEUE_NAME;
|
||||
}
|
||||
QueueKey queueKey = new QueueKey(serviceType, queueName, isolatedOrSystemTenantId);
|
||||
if (!partitionSizesMap.containsKey(queueKey)) {
|
||||
if (isolatedOrSystemTenantId.isSysTenantId()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user