@ -346,7 +346,7 @@ public final class QuorumController implements Controller {
@@ -346,7 +346,7 @@ public final class QuorumController implements Controller {
@ -44,6 +44,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -44,6 +44,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
@ -58,6 +60,7 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -58,6 +60,7 @@ public class QuorumControllerMetrics implements AutoCloseable {
@ -73,7 +76,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -73,7 +76,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
publicQuorumControllerMetrics(
Optional<MetricsRegistry>registry,
Timetime
Timetime,
booleanzkMigrationState
){
this.registry=registry;
this.active=false;
@ -109,6 +113,18 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -109,6 +113,18 @@ public class QuorumControllerMetrics implements AutoCloseable {
@ -151,6 +167,14 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -151,6 +167,14 @@ public class QuorumControllerMetrics implements AutoCloseable {
returnlastAppliedRecordTimestamp.get();
}
publicvoidupdateDualWriteOffset(longoffset){
dualWriteOffset.set(offset);
}
publiclongdualWriteOffset(){
returndualWriteOffset.get();
}
publicvoidincrementTimedOutHeartbeats(){
timedOutHeartbeats.addAndGet(1);
}
@ -172,7 +196,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
@@ -172,7 +196,8 @@ public class QuorumControllerMetrics implements AutoCloseable {
@ -97,6 +98,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@@ -97,6 +98,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@ -119,6 +121,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@@ -119,6 +121,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
FaultHandlerfaultHandler,
QuorumFeaturesquorumFeatures,
KafkaConfigSchemaconfigSchema,
QuorumControllerMetricscontrollerMetrics,
Timetime
){
this.nodeId=nodeId;
@ -127,6 +130,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@@ -127,6 +130,7 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@ -149,9 +153,10 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@@ -149,9 +153,10 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@ -497,6 +502,9 @@ public class KRaftMigrationDriver implements MetadataPublisher {
@@ -497,6 +502,9 @@ public class KRaftMigrationDriver implements MetadataPublisher {
// Persist the offset of the metadata that was written to ZK