Github user brightchen commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/321#discussion_r67777113
--- Diff:
kafka/src/main/java/org/apache/apex/malhar/kafka/KafkaConsumerWrapper.java ---
@@ -74,7 +75,7 @@
private static final Logger logger =
LoggerFactory.getLogger(KafkaConsumerWrapper.class);
- private boolean isAlive = false;
--- End diff --
In AbstractKafkaInputOperator operator, a new thread of consumerWrapper
will be started:
@Override
public void activate(Context.OperatorContext context)
{
consumerWrapper.start(isIdempotent());
}
which in fact created a thread pool to execute
// create thread pool for consumer threads
kafkaConsumerExecutor = Executors.newCachedThreadPool(
new
ThreadFactoryBuilder().setNameFormat("kafka-consumer-%d").build());
@Override
public void deactivate()
{
consumerWrapper.stop();
}
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---