You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: kafka-streams-StreamTask.adoc
+50-13
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,9 @@ Used when `StreamTask` is requested for the following:
41
41
42
42
| consumedOffsets
43
43
| [[consumedOffsets]] Offsets by https://kafka.apache.org/20/javadoc/org/apache/kafka/common/TopicPartition.html[TopicPartitions] (`Map<TopicPartition, Long>`) that `StreamTask` has <<process, processed>> successfully
`commit` prints out the following DEBUG message to the logs:
375
+
376
+
```
377
+
Committing
378
+
```
379
+
380
+
`commit` <<flushState, flushState>>.
381
+
382
+
(only when <<kafka-streams-AbstractTask.adoc#eosEnabled, exactly-once support>> is disabled) `commit` requests the <<stateMgr, ProcessorStateManager>> to <<kafka-streams-ProcessorStateManager.adoc#checkpoint, checkpoint>> with the <<activeTaskCheckpointableOffsets, checkpointable offsets>>.
383
+
384
+
`commit` <<commitOffsets, commitOffsets>> with the input `startNewTransaction` flag.
385
+
386
+
`commit` turns the <<commitRequested, commitRequested>> internal flag off.
387
+
388
+
In the end, `commit` requests the <<taskMetrics, TaskMetrics>> for the <<taskCommitTimeSensor, taskCommitTimeSensor>> and records the duration (i.e. the time since `commit` was executed).
389
+
390
+
NOTE: `commit` is used when `StreamTask` is requested to <<commit, commit>> (that turns the input `startNewTransaction` flag on) and <<suspend, suspend>> (with the input `startNewTransaction` flag off).
NOTE: `activeTaskCheckpointableOffsets` is part of the <<kafka-streams-AbstractTask.adoc#activeTaskCheckpointableOffsets, AbstractTask Contract>> to return the checkpointable offsets.
Copy file name to clipboardexpand all lines: kafka-streams-StreamThread.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -605,7 +605,7 @@ Committing all active tasks [activeTaskIds] and standby tasks [standbyTaskIds] s
605
605
606
606
Only if there are still running active and standby tasks, `maybeCommit` does the following:
607
607
608
-
. Requests the <<streamsMetrics, StreamsMetricsThreadImpl>> for <<kafka-streams-StreamsMetricsThreadImpl.adoc#commitTimeSensor, commitTimeSensor>> and records the commit time (as the latency of committing all the tasks by their number)
608
+
. Requests the <<streamsMetrics, StreamsMetricsThreadImpl>> for the <<kafka-streams-StreamsMetricsThreadImpl.adoc#commitTimeSensor, commitTimeSensor>> and records the commit time (as the latency of committing all the tasks by their number)
609
609
610
610
. Requests the <<taskManager, TaskManager>> to <<kafka-streams-TaskManager.adoc#maybePurgeCommitedRecords, maybePurgeCommitedRecords>>
0 commit comments