Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 5, 2023
1 parent ad23110 commit a8858de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v2i-hub/CARMAStreetsPlugin/src/CARMAStreetsPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void CARMAStreetsPlugin::InitKafkaConsumerProducers()
_subscribeToSpatConsumerGroupId += ss.str();
_subscribeToSchedulingPlanConsumerGroupId += ss.str();
_subscribeToSSMConsumerGroupId += ss.str();
//Todo further enhancement: Temporary fix for the consumer rebalancing die to multiple consumers join the same group upon restarting plugin.
//Todo further enhancement: Temporary fix for the consumer rebalancing due to multiple consumers join the same group upon restarting plugin.
_spat_kafka_consumer_ptr = client.create_consumer(kafkaConnectString, _subscribeToSpatTopic,_subscribeToSpatConsumerGroupId);
_scheduing_plan_kafka_consumer_ptr = client.create_consumer(kafkaConnectString, _subscribeToSchedulingPlanTopic,_subscribeToSchedulingPlanConsumerGroupId);
_ssm_kafka_consumer_ptr = client.create_consumer(kafkaConnectString, _subscribeToSsmTopic,_subscribeToSSMConsumerGroupId);
Expand All @@ -116,6 +116,7 @@ void CARMAStreetsPlugin::InitKafkaConsumerProducers()
if(!_spat_kafka_consumer_ptr->init() || !_scheduing_plan_kafka_consumer_ptr->init() || !_ssm_kafka_consumer_ptr->init())
{
PLOG(logERROR) <<"Kafka consumers init() failed!";
return;
}

boost::thread thread_schpl(&CARMAStreetsPlugin::SubscribeSchedulingPlanKafkaTopic, this);
Expand Down

0 comments on commit a8858de

Please sign in to comment.