You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state"Under Discussion"

Discussion thread: here [Change the link from the KIP proposal email archive to your own email thread]

JIRA: here [Change the link from KAFKA-1 to your own ticket]

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

If you are a Kafka user and you want to track the progress a client is making you can use the returned committed offset. However Streams does not have that capability as several Kafka clients are embedded in Streams client. This KIP proposes to add methods to Kafka Streams that repost the progress Kafka exposes already.

Public Interfaces

package org.apache.kafka.streams;
  
KafkaStreams.java
/**
* Returns the last committed offset for each task.
*/
public Map<TopicPartition, Integer> committedOffsets();

/**
* Returns if a task is idling.
*
* @param taskId the id for the task that is being checked.
*/
public boolean isTaskIdling(TaskId taskId)


Proposed Changes

committedOffsets

This should have the latest committed off set of each task. Each poll will update this.

isTaskIdling

If the task is intentionally not pulling because it is idling this method will report that


Compatibility, Deprecation, and Migration Plan

Since methods are only added and no other methods are modified, this KIP should not

  • affect backward-compatibility
  • deprecate public interfaces
  • need a migration plan other than adding the new metrics to its own monitoring component

Rejected Alternatives

  • reporting these as metrics
  • No labels