Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ Cancellable schedule(final Duration interval,
final Punctuator callback);

/**
* Request a commit.
* Request a commit. Note that calling {@code commit()} is only a request for a commit, but it does not execute one.
* Hence, when {@code commit()} returns, no commit was executed yet. However, Kafka Streams will commit as soon
* as possible, instead of waiting for next {@code commit.interval.ms} to pass.
*/
void commit();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -805,12 +805,14 @@ static Map<Subtopology, Set<TaskId>> getTopologyGroupTaskMap() {
return Collections.singletonMap(SUBTOPOLOGY_0, Collections.singleton(new TaskId(1, 1)));
}

static void verifyStandbySatisfyRackReplica(final Set<TaskId> taskIds,
static void verifyStandbySatisfyRackReplica(
final Set<TaskId> taskIds,
Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated side cleanup to fix formatting

final Map<UUID, String> racksForProcess,
final Map<UUID, ClientState> clientStateMap,
final Integer replica,
final boolean relaxRackCheck,
final Map<UUID, Integer> standbyTaskCount) {
final Map<UUID, Integer> standbyTaskCount
) {
if (standbyTaskCount != null) {
for (final Entry<UUID, ClientState> entry : clientStateMap.entrySet()) {
final int expected = standbyTaskCount.get(entry.getKey());
Expand Down