Merge remote-tracking branch 'origin/master' into develop/3.0
This commit is contained in:
commit
d866fc1503
@ -3,7 +3,7 @@
|
|||||||
"additionalInfo": null,
|
"additionalInfo": null,
|
||||||
"name": "Root Rule Chain",
|
"name": "Root Rule Chain",
|
||||||
"firstRuleNodeId": null,
|
"firstRuleNodeId": null,
|
||||||
"root": false,
|
"root": true,
|
||||||
"debugMode": false,
|
"debugMode": false,
|
||||||
"configuration": null
|
"configuration": null
|
||||||
},
|
},
|
||||||
|
|||||||
@ -106,6 +106,7 @@ public class TbKafkaConsumerTemplate<T extends TbQueueMsg> implements TbQueueCon
|
|||||||
if (!subscribed) {
|
if (!subscribed) {
|
||||||
List<String> topicNames = partitions.stream().map(TopicPartitionInfo::getFullTopicName).collect(Collectors.toList());
|
List<String> topicNames = partitions.stream().map(TopicPartitionInfo::getFullTopicName).collect(Collectors.toList());
|
||||||
topicNames.forEach(admin::createTopicIfNotExists);
|
topicNames.forEach(admin::createTopicIfNotExists);
|
||||||
|
consumer.unsubscribe();
|
||||||
consumer.subscribe(topicNames);
|
consumer.subscribe(topicNames);
|
||||||
subscribed = true;
|
subscribed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,3 +10,5 @@ CACHE_TYPE=redis
|
|||||||
REDIS_HOST=redis
|
REDIS_HOST=redis
|
||||||
|
|
||||||
HTTP_LOG_CONTROLLER_ERROR_STACK_TRACE=false
|
HTTP_LOG_CONTROLLER_ERROR_STACK_TRACE=false
|
||||||
|
|
||||||
|
TB_QUEUE_PARTITIONS_VIRTUAL_NODES_SIZE=64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user