You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by vv...@apache.org on 2022/09/01 12:42:21 UTC
[kafka] branch demystify-rebalance-schedule-log updated (56a5bb3203 -> 045934a76c)
This is an automated email from the ASF dual-hosted git repository.
vvcephei pushed a change to branch demystify-rebalance-schedule-log
in repository https://gitbox.apache.org/repos/asf/kafka.git
discard 56a5bb3203 MINOR: Demystify rebalance schedule log
new 045934a76c MINOR: Demystify rebalance schedule log
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (56a5bb3203)
\
N -- N -- N refs/heads/demystify-rebalance-schedule-log (045934a76c)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../kafka/streams/processor/internals/StreamsPartitionAssignor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[kafka] 01/01: MINOR: Demystify rebalance schedule log
Posted by vv...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vvcephei pushed a commit to branch demystify-rebalance-schedule-log
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit 045934a76cf122b9254c89f480836ee071164c23
Author: John Roesler <jo...@vvcephei.org>
AuthorDate: Thu Sep 1 07:36:44 2022 -0500
MINOR: Demystify rebalance schedule log
---
.../kafka/streams/processor/internals/StreamsPartitionAssignor.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java b/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java
index 2af2fba718..288d5d21fe 100644
--- a/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java
+++ b/streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java
@@ -54,6 +54,7 @@ import org.apache.kafka.streams.state.HostInfo;
import org.slf4j.Logger;
import java.nio.ByteBuffer;
+import java.time.Instant;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -1355,7 +1356,10 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
log.info("Requested to schedule immediate rebalance for new tasks to be safely revoked from current owner.");
nextScheduledRebalanceMs.set(0L);
} else if (encodedNextScheduledRebalanceMs < Long.MAX_VALUE) {
- log.info("Requested to schedule probing rebalance for {} ms.", encodedNextScheduledRebalanceMs);
+ log.info(
+ "Requested to schedule next probing rebalance at {} to try for a more balanced assignment.",
+ Instant.ofEpochMilli(encodedNextScheduledRebalanceMs) // The Instant#toString format is more readable.
+ );
nextScheduledRebalanceMs.set(encodedNextScheduledRebalanceMs);
} else {
log.info("No followup rebalance was requested, resetting the rebalance schedule.");