Skip to content

NIFI-1629 downgraded Kafka back to 0.8#282

Closed
olegz wants to merge 1 commit intoapache:masterfrom
olegz:NIFI-1629
Closed

NIFI-1629 downgraded Kafka back to 0.8#282
olegz wants to merge 1 commit intoapache:masterfrom
olegz:NIFI-1629

Conversation

@olegz
Copy link
Contributor

@olegz olegz commented Mar 16, 2016

  • added context.yield to PutKafka
  • added lifecycle hooks to defend from Kafka deadlocks

public void schedule(ProcessContext context) {
this.deadlockTimeout = context.getProperty(KAFKA_TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS) * 2;
if (this.executor == null || this.executor.isShutdown()) {
this.executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think instead it should use newCachedThreadPool . Behavior seems ideal for this case. Need this in both procs.

- added context.yield to PutKafka
- added lifecycle hooks to defend from Kafka deadlocks

NIFI-1629 changd thread pool implementation in Get/PutKafka
@rickysaltzer
Copy link
Contributor

+1 - tested and verified to work with 0.8.0 and 0.9.0

@asfgit asfgit closed this in 148b449 Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants