You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/12/13 06:58:14 UTC
[GitHub] [pinot] navina commented on a diff in pull request #9893: Pulsar Connection handler should not spin up a consumer / reader
navina commented on code in PR #9893:
URL: https://github.com/apache/pinot/pull/9893#discussion_r1046723007
##########
pinot-plugins/pinot-stream-ingestion/pinot-pulsar/src/main/java/org/apache/pinot/plugin/stream/pulsar/PulsarPartitionLevelConsumer.java:
##########
@@ -46,11 +47,18 @@ public class PulsarPartitionLevelConsumer extends PulsarPartitionLevelConnection
implements PartitionGroupConsumer {
private static final Logger LOGGER = LoggerFactory.getLogger(PulsarPartitionLevelConsumer.class);
private final ExecutorService _executorService;
+ private final Reader _reader;
private boolean _enableKeyValueStitch = false;
public PulsarPartitionLevelConsumer(String clientId, StreamConfig streamConfig,
PartitionGroupConsumptionStatus partitionGroupConsumptionStatus) {
- super(clientId, streamConfig, partitionGroupConsumptionStatus.getPartitionGroupId());
+ super(clientId, streamConfig);
+ PulsarConfig config = new PulsarConfig(streamConfig, clientId);
+ _reader = createReaderForPartition(config.getPulsarTopicName(),
Review Comment:
good catch!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org