Repository navigation
Conversation
…afkaShareConsumerMetrics. (#22718) *What* https://issues.apache.org/jira/browse/KAFKA-20750 During testing it was observed that the poll idle ratio metric was showing NaN even when the fetches were happening successfully. This was a case when there were fast polls (sub-millisecond values) leading to a divide by zero error. PR adds a check and sets the value to 0 in such cases. Reviewers: Andrew Schofield <aschofield@confluent.io>
…nown topics should be 0 (#22714) ### Summary When a share group heartbeat detects subscribed-but-uninitialized topic-partitions, the group coordinator builds an `InitializeShareGroupStateParameters` request. Previously it sent `startOffset = -1` (`PartitionFactory.UNINITIALIZED_START_OFFSET`) for *every* partition. `-1` is a sentinel meaning "not yet decided": `SharePartition.startOffsetDuringInitialization()` resolves the real offset from the group's `share.auto.offset.reset` strategy (default `LATEST`). This is correct for a brand-new topic subscription, but incorrect when **new partitions are added to a topic the group already knows about**. Resolving those new partitions via `LATEST` can skip records produced before initialization completes, causing data loss. This change makes newly initialized partitions of an **already-known topic** (present in the group's `initializedTopics` or `initializingTopics`) start at offset `0`, guaranteeing no records are missed. Partitions of a topic seen for the first time keep `-1` so that `share.auto.offset.reset` still applies to fresh subscriptions. ### Change In `GroupMetadataManager`: - `maybeCreateInitializeShareGroupStateRequest` computes the set of already-known topics (`initializedTopics ∪ initializingTopics`) from the current persisted metadata. This is read before the heartbeat's records are replayed, so a brand-new topic is correctly absent. - `buildInitializeShareGroupStateRequest` selects the start offset per topic: `0` for an already-known topic, `-1` for a first-sighting topic. ### Testing - Added `testShareGroupHeartbeatInitializeMixedNewAndExpandedTopics`: a single heartbeat that both adds a brand-new topic and expands an already-initialized topic produces one request where the new topic uses `-1` and the expanded topic's new partitions use `0` — verifying the decision is per-topic, not per-request. Reviewers: Sushant Mahajan <smahajan@confluent.io>, Apoorv Mittal <apoorvmittal10@gmail.com>
## Summary Wires up the KIP-1265 mechanism for explicit declaration and automated enforcement of Apache Kafka's public API surface. Adds two annotations (`@InterfaceAudience.Public` / `.Private`, modelled on Hadoop and orthogonal to the existing `@InterfaceStability`), an auditable escape hatch (`@SuppressKafkaInternalApiUsage`), a Gradle checker that cross-validates the javadoc HTML against the bytecode annotations and cascades through public method signatures (including class-header extends/implements + generic supertype arguments), and a Gradle/Maven checker plugin for external plugin developers. Every javadoc'd class across the 10 docsJar modules is annotated, and `./gradlew docsJar` now finalizes with the checker on every project — 0 violations, 53 suppressions, every suppression carrying a reason the next reviewer can audit. JIRA: [KAFKA-20032](https://issues.apache.org/jira/browse/KAFKA-20032) · KIP: [KIP-1265](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1265%3A+Mechanism+for+automatic+detection+of+internal+API+usage) ## What's in this PR ### Annotations (in `o.a.k.common.annotation`) - `@InterfaceAudience.Public` / `.Private` — marker annotations, RUNTIME retention, `@Documented`, `@Target(TYPE)`. The audience dimension is orthogonal to `@InterfaceStability`; a class may carry both. - `@SuppressKafkaInternalApiUsage("reason")` — class/method/field/constructor target, RUNTIME retention. Required reason text is surfaced in every checker report so each escape hatch is reviewable inline. ### Audience inheritance A class's effective audience is its own direct `@InterfaceAudience` annotation if present, otherwise the audience of its nearest annotated enclosing class. Default everywhere is `@Private` per the KIP. A nested class can override an inherited `@Public` with explicit `@InterfaceAudience.Private`. This matches Hadoop's model and aligns with how javadoc treats nested classes — they're documented under the outer's page, so requiring a separate annotation on every public nested class would be redundant noise. Inheritance also handles protected and package-private nested classes correctly: they appear in javadoc only as part of the outer's docs, so the checker only enforces direct `@Public` for the `MISSING_JAVADOC` check, while cascade reference checks accept inherited `@Public` for any nested type. Net effect: ~640 javadoc'd classes are covered by ~550 top-level annotations, with the rest carried by inheritance. ### Producer-side checker (`kafkaPublicApiChecker` — runs as part of `docsJar`) Cross-validates each module's javadoc jar against its bytecode-level annotations. Reports four categories of finding: - `MISSING_PUBLICAPI_ANNOTATION` — a class is in the javadoc HTML but isn't effectively `@Public`. - `MISSING_JAVADOC` — a class carries a direct `@Public` but no HTML page in the javadoc jar. - Method/field cascade (`INVALID_RETURN_TYPE` / `INVALID_PARAMETER_TYPE` / `INVALID_EXCEPTION_TYPE` / `INVALID_FIELD_TYPE`) — a public member signature on a `@Public` class leaks an internal type. Position-aware: the same generic walker that catches `Map<String, InternalFoo>` in a return type emits `INVALID_RETURN_TYPE`, a parameter-position leak emits `INVALID_PARAMETER_TYPE`, and a throws-clause leak emits `INVALID_EXCEPTION_TYPE`. Findings are deduped by (violation-type, owner, member, referenced-type) so the descriptor walk and the generic-signature walk don't double-report the same leak. - Supertype cascade (`INVALID_SUPERTYPE`) — a `@Public` class extends or implements an internal type the consumer can name (skipped for package-private supertypes that a consumer can't even reference). Also covers generic supertype arguments via the JVM signature attribute, so `extends Windows<InternalWindow>` is caught. Cascade findings whose containing member or class carries `@SuppressKafkaInternalApiUsage` divert to a separate suppressions section with the supplied reason; the report lists any suppression missing a reason as a warning. ### Consumer-side checker (`kafkaInternalApiChecker` plugin) Gradle and Maven plugins (`o.a.k:kafka-internal-api-checker-gradle-plugin`, `o.a.k:kafka-internal-api-checker-maven-plugin`) for external plugin developers — walk compiled bytecode (Java/Scala/Kotlin, uniformly) and flag references to any `org.apache.kafka.*` type that isn't `@Public`. Violations are grouped in the report by the consumer class (the file a developer needs to open), with the leaked Kafka type carried in the description. The same `@SuppressKafkaInternalApiUsage` annotation applies to known/intentional consumer-side exposures. Skip the check for one invocation via `-PkafkaInternalApiChecker.skip` (Gradle) or `-Dkafka.internal-api-checker.enabled=false` (Maven). A symmetric `-PkafkaPublicApiChecker.skip` exists for the producer-side checker. ### Cross-module support Per-module checks include sibling Kafka jars as `referenceJarFiles` — reference classes contribute to the surface so cross-module `@Public` resolution works (e.g. `:storage:storage-api` referencing `o.a.k.common.TopicIdPartition` from `:clients`), but they don't participate in the module's own `MISSING_JAVADOC` or cascade iteration. Gradle wires this via `configurations.compileClasspath.incoming.artifactView { componentFilter { it instanceof ProjectComponentIdentifier } … }` filtered to the JAR artifact variant. ## Coverage `./gradlew docsJar` triggers the checker on every subproject. Per-module results across the 10 docsJar modules: | Module | Violations | Suppressions | |---|---:|---:| | `:clients` | 0 | 18 | | `:streams` | 0 | 27 | | `:streams:test-utils` | 0 | 2 | | `:streams:streams-scala` | 0 | 0 | | `:connect:api` | 0 | 0 | | `:connect:mirror-client` | 0 | 6 | | `:connect:test-plugins` | 0 | 0 | | `:storage:storage-api` | 0 | 0 | | `:tools:tools-api` | 0 | 0 | | `:group-coordinator:group-coordinator-api` | 0 | 0 | | **Total** | **0** | **53** | ## Suppressions in this PR Every suppression carries a `KIP-1265: …` reason in the source and is rendered in the checker report. They mark cascade leaks that can't be cleanly resolved without API-shape changes the KIP scope doesn't cover. Grouped by pattern: - **Internal `Time`/`Metrics` injection on public ctors** — `Metrics`, `KafkaMetric`, `KafkaStreams`, the JWT retrievers/validator, and the mirror-client constructors take internal `o.a.k.common.utils.Time` (or `Metrics`) for test injection. - **Internal partition-assignor supertypes** — `StickyAssignor`, `CooperativeStickyAssignor`, `RangeAssignor`, `RoundRobinAssignor` extend internal `AbstractStickyAssignor` / `AbstractPartitionAssignor`. Reachable only through the existing `extends`; the methods themselves are stable. - **OAuthBearer plugin supertypes** — `JwtRetriever`, `JwtValidator` implement internal `OAuthBearerConfigurable`. - **Streams windowing generic supertypes** — `TimeWindows`, `UnlimitedWindows` extend `Windows<TimeWindow>` / `Windows<UnlimitedWindow>`; `TimeWindowedSerializer`, `SessionWindowedSerializer` implement internal `WindowedSerializer`. - **`QueryableStoreType` / `QueryableStoreTypes`** — `create(StateStoreProvider)` and its five nested overrides take an internal type. - **`:streams:test-utils`** — `MockProcessorContext.recordCollector()` returns internal `RecordCollector`; the class also implements `RecordCollector.Supplier`. These are deliberate, reviewable, and easy to grep. Follow-up KIPs can decide per-case whether to promote the internal type or refactor the member signature. ## Genuine public-API leaks surfaced and fixed The checker found cases where the *de-facto* public surface didn't match the published javadoc: 1. **`o.a.k.common.config.types.Password`** — already `public class`, returned by `AbstractConfig.getPassword()` which is `@Public`, but the `…common.config.types.*` package was missing from the `:clients` javadoc include list. Brought it into the include list and annotated `Password` with `@Public`. 2. **`SampledStat.Sample`** — `protected static class` returned by two public methods (`current(long)`, `oldest(long)`) of `@Public abstract SampledStat`. Subclasses extending `SampledStat` have always been able to touch this type; the annotation now makes the de-facto contract explicit. Visibility unchanged. ## Implementation notes The checker lives in its own composite-included Gradle build at `api-checker/` so its Maven runtime dependencies stay off Kafka's main build classpath and each published artifact carries only the classes its consumers need. Three subprojects: - **`api-checker/core`** — ASM-based scanner + validators + reporter (no Gradle / Maven dependencies). `PublicApiChecker` is the facade. `ApiSurfaceScanner` does a two-pass static `scan(projectJars, referenceJars) → ApiSurface`. `CascadeValidator` runs the extends/implements + member-signature cascade. `JavadocConsistencyValidator` cross-checks the javadoc HTML. `PluginDeveloperApiUsageScanner` is the consumer-side walker. - **`api-checker/gradle-plugins`** — published as `kafka-internal-api-checker-gradle-plugin`. Also hosts the internal `org.apache.kafka.public-api-checker` plugin Kafka's own build applies (its marker publication is disabled — Kafka-internal only). - **`api-checker/maven-plugin`** — published as `kafka-internal-api-checker-maven-plugin`. A `PluginXmlParityTest` locks the generated `plugin.xml` Mojo descriptor against the configuration fields on the Mojo class, so adding a new parameter without exposing it (or vice versa) fails CI. **No classloading anywhere.** All bytecode reading goes through ASM, so a class with broken transitive deps on the checker's classpath (gRPC stubs, telemetry shims, etc.) can't trip `LinkageError` / `NoClassDefFoundError`. **Reproducible reports.** Reports omit wall-clock timestamps and sort by class then member, so two runs over the same inputs produce byte-identical files (clean diffs in CI, clean review comparisons). **Documented scanner gaps.** The consumer-side bytecode scanner walks every callable instruction, field type, declared exception, and generic signature, but four reference kinds are intentionally not followed (documented at `docs/apis/internal-api-checker.md`): parameter annotations, JSR 308 type-use annotations, class literals appearing *only* inside annotation element values, and Java's compile-time inlining of `public static final` primitive/`String` constants. In practice these don't show up in plugin/connector code, but a "0 violations" report does not strictly exclude them. ## Test plan - [x] `./gradlew docsJar` — every module's `kafkaPublicApiChecker` runs and reports 0 violations. - [x] Per-module reports inspected: 0 violations, 53 auditable suppressions across `:clients` (18), `:streams` (27), `:streams:test-utils` (2), and `:connect:mirror-client` (6). - [x] `./gradlew :api-checker:core:check :api-checker:gradle-plugins:check :api-checker:maven-plugin:check` — checkstyle + unit tests clean. - [x] End-to-end Gradle and Maven consumer tests (sample plugin app referencing `KafkaProducer`, `ProducerRecord`, `Callback`, `RecordMetadata`, `StringSerializer`) produce the expected violations and suppressions. A deliberate-failure variant referencing `org.apache.kafka.clients.producer.internals.ProducerInterceptors` is flagged as `INTERNAL_API_USAGE` by both plugins and grouped in the report under the consumer class, not the leaked Kafka type. - [x] `-PkafkaPublicApiChecker.skip` / `-PkafkaInternalApiChecker.skip` gates verified to short-circuit at configuration time. - [x] Existing Kafka tests continue to pass. Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Expand coverage for KIP-892 by parameterizing integration tests Reviewers: TengYao Chi <frankvicky@apache.org>
Extend test to ensure there is an inflight request before completing. Final validation is about getting no records, so extend to ensure the case is a request sent an no records returned (and not that there was no request sent at all, which would lead to no records returned too but would be a false positive) Reviewers: TengYao Chi <frankvicky@apache.org>
See the discussion: apache/kafka#22201 (comment) Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…#22707) ReplicaManagerLogReader.readAsync fetches data from remote storage, if enabled. The response is async. Current code does not bound this call to remote storage. This PR uses the existing `remoteFetchMaxWaitMs` to alleviate the situation by scheduling a timed killer task into the replica manager's timer wheel. A new integ test has been added to ShareConsumerDLQTest to verify e-2-e tiering based DLQ. Reviewers: Apoorv Mittal <apoorvmittal10@gmail.com>, Abhinav Dixit <adixit@confluent.io>
Part of KIP-1071. After an assignment is computed, we need to refine it to apply warmup tasks. This PR adds the basic control flow into the refiner method; The actual refiner logic will be added in a follow up PR; for now, we just return the unmodified assignment. The refiner needs access to the whole group assignment, not just the assignment of a single member. Thus, the PR contains some minor refactoring for this. Reviewers: Sean Quah <squah@confluent.io>
…yteStoreAdapter (#22742) IQv2 range queries throw a `ClassCastException` when the underlying state store is not RocksDB (e.g. an in-memory store), because `KeyValueToTimestampedKeyValueByteStoreAdapter` unconditionally cast the query iterator result to `RocksDbIterator` before wrapping it. With a transactional store the result is a `StagedMergeIterator`, so the cast fails. The adapter exists only to convert plain key/value bytes into the timestamped format for any key-value store, so coupling its inner iterator to a specific store implementation is unnecessary. Widening the field and constructor parameter to `ManagedKeyValueIterator<Bytes, byte[]>` — the interface every store iterator already implements — removes the erroneous cast and makes the adapter work regardless of the underlying store type. Part of a series of fixes for interactive-query position consistency with transactional state stores. Reviewers: Bill Bejeck <bbejeck@apache.org> Co-authored-by: Bill Bejeck <bbejeck@apache.org>
…ion buffer (#22743) `InMemoryKeyValueStore`, when transactional, did not correctly track its `Position` across the transaction boundary, which broke interactive-query position consistency in two ways. **Staging.** `put`/`putAll` applied position updates directly to the store's committed `Position` instead of holding them pending alongside the staged writes, so the position advanced before the corresponding data was committed. Position updates are now accumulated in a `pendingPosition` on `InMemoryTransactionBuffer` during staging and merged into the committed position only in `commitStagedWrites`. `discardPendingBatch` (previously a no-op) resets `pendingPosition` so aborted batches leave no trace. Under READ_UNCOMMITTED, `query` merges the pending deltas so staged writes remain visible, mirroring `RocksDBStore`. **Changelog consistency vector.** `getPosition()` returned only the committed position. Because `ChangeLoggingKeyValueBytesStore` stamps each changelog record's consistency vector with `getPosition()` at put time, a transactional store's changelog records carried a stale (empty) vector, and the position could not be rebuilt when the store was restored from its changelog on restart. `getPosition()` now returns the uncommitted position (committed merged with the buffer's pending deltas), matching the behaviour `RocksDBStore` already had. Adds a unit test covering the uncommitted-position behaviour. End-to-end restart coverage is added separately via the parameterized `PositionRestartIntegrationTest`. Part of a series of fixes for interactive-query position consistency with transactional state stores. Reviewers: Bill Bejeck <bbejeck@apache.org>
…n buffer (#22744) `InMemoryWindowStore`, when transactional, did not correctly track its `Position` across the transaction boundary, breaking interactive-query position consistency in two ways. **Staging.** `put` called `StoreQueryUtils.updatePosition` directly on the store's committed `Position`, making uncommitted records queryable by position and violating the isolation guarantee. Position updates are now accumulated in a `pendingPosition` field on `InMemoryWindowTransactionBuffer` under the existing `snapshotLock`, and `mergePendingPositionInto` merges them into the committed position at commit time. `discardPendingBatch` resets the pending position on abort. Under READ_UNCOMMITTED, `query` merges the pending deltas so staged writes remain visible, mirroring `RocksDBStore`. **Changelog consistency vector.** `getPosition()` returned only the committed position. Because `ChangeLoggingWindowBytesStore` stamps each changelog record's consistency vector with `getPosition()` at put time, a transactional store's changelog records carried a stale (empty) vector, so the position could not be rebuilt when the store was restored from its changelog. `getPosition()` now returns the uncommitted position, matching the behaviour `RocksDBStore` already had. End-to-end restart coverage is added separately via the parameterized `PositionRestartIntegrationTest`. Part of a series of fixes for interactive-query position consistency with transactional state stores. Reviewers: Bill Bejeck <bbejeck@apache.org>
…on buffer (#22745) `InMemorySessionStore`, when transactional, did not correctly track its `Position` across the transaction boundary, breaking interactive-query position consistency in two ways. The root cause is the same as the parallel fix for `InMemoryKeyValueStore`. **Staging.** `put` called `StoreQueryUtils.updatePosition` directly on the store's committed `Position` on every write, bypassing the transaction boundary, so IQv2 position-bound queries could observe position advances corresponding to records not yet visible. Position updates are now staged into a `pendingPosition` field on `InMemorySessionTransactionBuffer` under the existing `snapshotLock`, and merged into the committed position at commit time via `mergePendingPositionInto`. `discardPendingBatch` resets the pending position on abort. Under READ_UNCOMMITTED, `query` merges the pending deltas so staged writes remain visible, mirroring `RocksDBStore`. **Changelog consistency vector.** `getPosition()` returned only the committed position. Because `ChangeLoggingSessionBytesStore` stamps each changelog record's consistency vector with `getPosition()` at put time, a transactional store's changelog records carried a stale (empty) vector, so the position could not be rebuilt when the store was restored from its changelog. `getPosition()` now returns the uncommitted position, matching the behaviour `RocksDBStore` already had. End-to-end restart coverage is added separately via the parameterized `PositionRestartIntegrationTest`. Part of a series of fixes for interactive-query position consistency with transactional state stores. Reviewers: Bill Bejeck <bbejeck@apache.org> Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Under EOS, a transactional `RocksDBStore` persisted its `Position` in a separate `WriteBatch` flush from the one that persisted the changelog offsets. A crash between the two flushes could leave the on-disk position inconsistent with the stored offsets, so on restart the store could report a position that does not match the data it actually holds. This change merges the two `commit()` overloads into a single method that takes both the in-memory `Position` and the changelog offsets. When offsets are present, the position (merged with any uncommitted deltas) is written into the *same* staged `WriteBatch` as the offset entries before `commitStagedWrites()` runs, so the data, offsets, and position all become durable atomically. The in-memory position is advanced only after the flush succeeds, so a failure leaves both in-memory and on-disk state consistent with the previous commit. Tests that previously passed an empty changelog-offsets map — which now takes the wipe-offsets path — are updated to pass a sentinel offset so the position is persisted as intended. Part of a series of fixes for interactive-query position consistency with transactional state stores. Reviewers: Bill Bejeck <bbejeck@apache.org> Co-authored-by: Bill Bejeck <bbejeck@apache.org>
A StreamsHeartbeatRequest must not contain duplicate task-offset entries, and should be rejected as invalid request. We also need to avoid to mutate in-memory state for an invalid request. Reviewers: David Jacot <david.jacot@gmail.com>
…ions (#22720) When all partitions in a share session are unassigned with no pending acknowledgements to be sent, no ShareFetch request was being sent. This patch sends a ShareFetch to remove the partitions from the share session in this situation. Reviewers: Shivsundar R <shr@confluent.io>, Apoorv Mittal <apoorvmittal10@gmail.com>
To address GHSA-j3rv-43j4-c7qm GHSA-rmj7-2vxq-3g9f Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…tional mode (#22750) Extends `PositionRestartIntegrationTest` to run every store type and configuration with transactional state stores both enabled and disabled. This exercises interactive-query position consistency and, crucially, position recovery on restart for transactional stores — the end-to-end coverage for the series of transactional state-store position fixes (KAFKA-20760). Also adds unit tests for `InMemoryWindowStore` and `InMemorySessionStore`, mirroring the existing `InMemoryKeyValueStore` test: each verifies that a transactional store exposes its staged (uncommitted) position via a READ_UNCOMMITTED query and via `getPosition()` before commit, and its committed position after commit. Reviewers: Bill Bejeck <bbejeck@apache.org> Co-authored-by: Bill Bejeck <bbejeck@apache.org>
…led hangs in closing (#22733)
Since `testUnsubscribeDoesNotCommitOffsetsEvenWithAutoCommitEnabled`
enables auto-commit, closing the consumer in the `@AfterEach`
teardown triggers `autoCommitOnClose()`, which calls
`commitSyncAllConsumed()` and blocks waiting on the resulting
`SyncCommitEvent` future:
```java
private void autoCommitOnClose(final Timer timer) {
if (groupMetadata.get().isEmpty() || applicationEventHandler ==
null)
return;
if (autoCommitEnabled) commitSyncAllConsumed(timer); //
sends a blocking SyncCommitEvent
applicationEventHandler.add(new CommitOnCloseEvent());
}
```
Because the test mocks applicationEventHandler and never completes
this event,
close() blocks until the timeout.
This patch completes the commit event during close by calling
completeCommitSyncApplicationEventSuccessfully() at the end of the test
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…ommandAuthorizationTest (#22591) Migrate `AuthorizerIntegrationTest` to `ClusterInstance`, and rename to `ConsumerGroupCommandAuthorizationTest`. Reviewers: Ken Huang <s7133700@gmail.com>, Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
…hutdown (#22328) This PR fixes a `ConsumerTask` shutdown race by skipping poll once the task is closed before partition assignment, preventing the spurious “consumer not subscribed/assigned” error. Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…2512) Part of the implementation of https://cwiki.apache.org/confluence/display/KAFKA/KIP-1242%3A+Detection+and+handling+of+misrouted+connections. Support coordinator connections and mark ApiVersions v5 API as stable. Reviewers: TaiJuWu <tjwu1217@gmail.com>, David Jacot <david.jacot@gmail.com>, Rajini Sivaram <rajinisivaram@googlemail.com>
Adds support for nested structures to the `ValueToKey` transformer. [KIP-821: Connect Transforms support for nested structures](https://cwiki.apache.org/confluence/display/KAFKA/KIP-821%3A+Connect+Transforms+support+for+nested+structures) Signed-off-by: Hector Geraldino <hgeraldino@gmail.com> Reviewers: Mickael Maison <mickael.maison@gmail.com>
…ARN (Java client) (#19456)
KAFKA-19117 Issue description:
We experienced an outage in our application due to a built up Kafka lag,
which we eventually discovered to be the problem with Kafka Clients
being throttled.
Even when using the confluent cluster, the dashboard does point to
exceeding the quota of the principal.
It will be nice, if the log message on the client side is a WARNING.
This helps those who don't have visibility to cluster, and just look at
the problem from the client side, setup alerts etc. (instead of enabling
TRACE to figure out where the problem is)
NetworkClient#maybeThrottle in the class NetworkClient:
Changed from: `log.trace("Connection to node {} is throttled for {} ms
until timestamp {}", nodeId, throttleTimeMs, now + throttleTimeMs); `
to
`log.warn("Connection to node {} is throttled for {} ms until timestamp
{}", nodeId, throttleTimeMs, now + throttleTimeMs);`
Reviewers: Kirk True <kirk@kirktrue.pro>, Chia-Ping Tsai
<chia7712@gmail.com>, PoAn Yang <payang@apache.org>
Reviewers: Ken Huang <s7133700@gmail.com>, Mickael Maison <mickael.maison@gmail.com>
Reviewers: Ken Huang <s7133700@gmail.com>, Mickael Maison <mickael.maison@gmail.com> Co-authored-by: haiyang.luo <haiyang.luo@ly.com>
…re (#22035) This PR makes two improvements: **1. Fail-fast liveness check in `ApplicationEventHandler.add()`:** Before enqueuing an event, we now verify the background thread is still alive via `Thread.isAlive()`. If the thread has terminated, a `KafkaException` is thrown immediately with an actionable message directing the user to check earlier logs for the root cause. This prevents the application thread from silently enqueuing events that will never be processed, or blocking indefinitely on `future.get()`. **2. Event processing safety net in `ConsumerNetworkThread.processApplicationEvents()`:** When an exception happens in `ApplicationEventProcessor.process()`, the outer catch block now completes the event's `CompletableFuture` exceptionally with the actual error. Previously, the error was only logged and the future was left dangling — the caller would eventually receive a generic `TimeoutException` from the reaper instead of the real cause of the failure. Reviewers - @lianetm @kirktrue Reviewers: Lianet Magrans <lmagrans@confluent.io>
…der.readAsync. (#22753) The `read` call in `readAsync` was not protected by a try catch block which could throw an exception in a non-async fashion to the caller. This PR surrounds the call in try-catch and adds appropriate tests. Reviewers: Apoorv Mittal <apoorvmittal10@gmail.com>
…y-value stores (KIP-1356) (#22666) This PR is the **first increment of KIP-1356** — the key/value point query — for `TimestampedKeyValueStoreWithHeaders`. The range/window/session header query types described in the KIP will follow in subsequent PRs. ## Summary 1. **`TimestampedKeyWithHeadersQuery<K, V>`** (new, `@Evolving`, `org.apache.kafka.streams.query`) — the headers-aware parallel of `TimestampedKeyQuery`, returning a `ReadOnlyRecord` that carries the key, value, timestamp, and headers. 2. **Native header store serves basic IQv2 queries.** `RocksDBTimestampedStoreWithHeaders` no longer overrides `query(...)` to return `UNKNOWN_QUERY_TYPE`; it inherits `RocksDBStore.query()`, so the existing query types (`KeyQuery`, `RangeQuery`, …) behave identically on both build paths. 3. **Header store caching participates in IQv2 point queries.** `CachingKeyValueStoreWithHeaders` no longer overrides `query(...)` to bypass the cache; it inherits `CachingKeyValueStore.query()`, so point queries consult the record cache (read-your-writes) and honor `skipCache`. 4. **`skipCache` is honored for the new query.** `MeteredTimestampedKeyValueStoreWithHeaders` forwards `isSkipCache()` from `TimestampedKeyWithHeadersQuery` onto the raw `KeyQuery` it builds, so the caching layer can honor it. (Making `skipCache()` work for the existing `KeyQuery`/`TimestampedKeyQuery` on the metered stores is a pre-existing, cross-cutting no-op fix — out of scope here, to be addressed in a follow-up [JIRA](https://issues.apache.org/jira/browse/KAFKA-20776).) The metered header store services `TimestampedKeyWithHeadersQuery` by forwarding a raw byte-level `KeyQuery` to the wrapped store and deserializing the stored `ValueTimestampHeaders` into a `Record` (a `ReadOnlyRecord`); an absent or tombstoned key yields a `null` result. ## Testing - `MeteredTimestampedKeyValueStoreWithHeadersTest` — `skipCache` is propagated to the forwarded `KeyQuery` for `TimestampedKeyWithHeadersQuery`. - `RocksDBTimestampedStoreWithHeadersTest` — the native store serves `KeyQuery` (previously `UNKNOWN_QUERY_TYPE`); a genuinely unsupported query and `RangeQuery` still returns `UNKNOWN_QUERY_TYPE`. - `TimestampedKeyValueStoreBuilderWithHeadersTest` — IQv2 query handling parameterized over build path (native / adapter / in-memory) × caching on/off, plus a native-vs-adapter result-parity test. - `IQv2HeadersStoreIntegrationTest` — end-to-end value/timestamp/headers round-trip, empty-headers, tombstone/absent, `UNKNOWN_QUERY_TYPE` against a non-headers store, and a caching-enabled cache-hit (read-your-writes) case. Reviewers: Alieh Saeedi <asaeedi@confluent.io>, TengYao Chi <frankvicky@apache.org>
Add flaky tag and ref to open jira (has been showing up on PRs) Reviewers: Andrew Schofield <aschofield@confluent.io>
This patch updates the CreateTopics partition count validation. Changes: * Update the validation comment to state that a request may create at most `MAX_PARTITIONS_PER_BATCH` partitions. * Use a `long` counter to prevent integer overflow when accumulating partition counts from the request. * Move the limit check inside the loop so that oversized requests fail as soon as the limit is exceeded. Test: * Add `testTotalNumberOfPartitionsValidationDoesNotOverflow` to cover a CreateTopics request large enough to overflow an `int`. Reviewers: Mickael Maison <mickael.maison@gmail.com>
… (#22747) Fixes [KAFKA-20765](https://issues.apache.org/jira/browse/KAFKA-20765). ## The issue In the async consumer (`AsyncKafkaConsumer`), when an in-flight OffsetFetch fails with `STALE_MEMBER_EPOCH` and a refreshed member epoch is already known, `CommitRequestManager` correctly classifies the error as retriable — but the retry can enter a tight, non-progressing loop instead of being re-sent: 1. Two callers fetch committed offsets for the same partitions. The second request is deduplicated by `PendingRequests.addOffsetFetchRequest` and *chained* onto the first (in-flight) one. 2. The in-flight request fails with `STALE_MEMBER_EPOCH` (e.g. another member joined and the coordinator bumped the group epoch while the request was in flight — routine under the KIP-1071 streams protocol during staggered startup). 3. The chained request's completion callback runs *before* the original request is removed from the in-flight buffer (CompletableFuture dependents run LIFO, and buffer removal is itself a completion callback). Its retry is handed back to `addOffsetFetchRequest`, which finds the original request still in the buffer — `sameRequest()` compares only the requested partitions — and chains the retry onto it. 4. But that request's future is **already completed** (with the same stale-epoch error), so chaining completes the retry's future immediately and synchronously. The error handler sees `STALE_MEMBER_EPOCH` again, retries again, chains again… a synchronous spin that only ends when the stack blows up. Consequences (all observed in a system test run and reproduced in the unit test): - `WARN "A duplicated, inflight, request was identified, but unable to find it in the outbound buffer"` repeated hundreds of times within milliseconds, - `java.lang.StackOverflowError` surfacing in SLF4J's `toString()` of `OffsetFetchRequestState`, - no OffsetFetch with the new epoch ever goes on the wire from this path (the epoch is stamped at send time — the one stage the loop never reaches), - the application-level future is never completed (orphaned). In Kafka Streams with the streams rebalance protocol (KIP-1071) this blocks the stream thread in committed-offset initialization for the full `default.api.timeout.ms`, exceeds `max.poll.interval.ms`, and gets the member evicted (observed in `streams_broker_down_resilience_test` with staggered startup). Plain `group.protocol=consumer` apps are exposed to the same spin; KIP-1071 just triggers the preconditions far more easily. ## The fix In `PendingRequests.addOffsetFetchRequest`, requests whose future is already completed are no longer considered duplicates. A completed request cannot deliver a result to anyone; it only appears in the buffers transiently while its completion callbacks run. With the check in place, the retry falls through to being enqueued and re-sent, picking up the current member epoch at send time. Also included: - A unit test that deterministically reproduces the loop (fails without the fix with the exact production signatures) and verifies the retry is sent with the new epoch and completes both callers' futures. - Log cleanup: the stale-epoch ERROR no longer claims the request "cannot be retried" when a retry is about to happen (only logged when the member has no epoch anymore), and the per-chained-caller "duplicated, inflight" WARN is now an accurate debug message (it fires for every deduplicated request, success or failure — expected, not an anomaly). ## Testing `./gradlew :clients:test --tests "org.apache.kafka.clients.consumer.internals.CommitRequestManagerTest"` — all pass, including the new `testDuplicatedOffsetFetchFailsWithStaleEpochAndRetriesWithNewEpoch`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewers: Lianet Magrans <lmagrans@confluent.io> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…) (#23070)
Small review-follow-ups on top of the merged KIP-909 work (#21080,
#22897):
- **`BootstrapConfiguration.enabled(...)`**: wrap the host/port check
with `try/catch IllegalArgumentException` so a malformed port (e.g.
`host:99999999999999999999` that overflows `Integer.parseInt`) surfaces
as `ConfigException("Invalid port in ...")`, matching the pre-existing
behaviour in `ClientUtils.parseAndValidateAddresses`. Without this a
`NumberFormatException` would leak out of client construction.
- **`ClientUtils.parseAndValidateAddresses(AbstractConfig)`**: removed.
This overload had no callers after the KIP-909 changes. The remaining
two overloads (`(List<String>, String)` and `(List<String>,
ClientDnsLookup)`) are still used by `BrokerApiVersionsCommand` and
`ConnectionStressWorker`, which construct `NetworkClient` directly with
`BootstrapConfiguration.DISABLED` and pre-resolved addresses.
- **`CommonClientConfigs.BOOTSTRAP_RESOLVE_TIMEOUT_MS_DOC`**: reworded
from "resolve for the bootstrap server address" to "resolve DNS for the
bootstrap server address" for clarity.
- **`KafkaProducerTest`**: replaced `new
ConsumerGroupMetadata("test-group")` with
`mock(ConsumerGroupMetadata.class)` +
`when(...groupId()).thenReturn("test-group")` — the constructor is
`@Deprecated(forRemoval)`.
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
… (#22016) This fix solves the `NoSuchFieldError` thrown by the native broker if the topic `compression.type` is `zstd`, but the producer sends the message uncompressed. The fix adds the missing `ZstdOutputStreamNoFinalizer` class with its `dstPos` and `srcPos` fields to the JNI config, so when the native `resetCStream` method is called in `ZstdOutputStreamNoFinalizer`, GraalVM can resolve the fields at runtime instead of throwing `NoSuchFieldError`. Reviewers: PoAn Yang [payang@apache.org](mailto:payang@apache.org), Chia-Ping Tsai <chia7712@gmail.com>
…tively (#22999) This PR ensures that KafkaStreams fails with a clear error message if a bad task assignment is received from the broker. Reviewers: Zheguang Zhao <zheguang.zhao@gmail.com>, Lianet Magrans <lmagrans@confluent.io>
…MetadataRefreshThenNegotiatesV6() (#23079) Removes `autoTickMs` from `MockTime` since the background thread can burn through the timeout budget. https://develocity.apache.org/scans/tests?search.rootProjectNames=kafka&search.timeZoneId=America%2FChicago&tests.container=org.apache.kafka.clients.producer.KafkaProducerTest&tests.test=testSendOffsetsToTransactionTriggersMetadataRefreshThenNegotiatesV6() Reviewers: Bill Bejeck <bbejeck@apache.org>
…Type (#22883) This PR fixes a problem if someone sets up CIDR-based ACLs and an idempotent producer connects from an IP within the CIDR range, the `authorizeByResourceType` check would fail to match the CIDR ACL, and the producer would get `CLUSTER_AUTHORIZATION_FAILED`. It is a narrow edge case but its bug. Reviewers: Mickael Maison <mickael.maison@gmail.com>, Manikumar Reddy <manikumar.reddy@gmail.com> --------- Signed-off-by: see-quick <maros.orsak159@gmail.com>
…3112) Similar to apache/kafka#23074, the writeState handler in the ShareCoordinator, directly writes the `deliveryCompleteCount` into the state. This might result in deliveryCompleteCount regressing momentarily if an out or order request with a lower delivery complete count than the actual value updates the state. This PR remedies the issue by leveraging the start offset - based on the start offset value in the incoming request, we should choose the delivery complete count value: - incoming(startOffset) > current(startOffset) - take incoming delivery complete count - incoming(startOffset) == current(startOffset) - take Max(incoming delivery complete count, current delivery complete count) - incoming(startOffset) < current(startOffset) - take current delivery count We cannot compare the delivery complete counts directly as they are non non-monotonic sequences. Reviewers: Andrew Schofield <aschofield@confluent.io>
There were 2 occurrences where topicId (a Uuid) was being compared using operator comparison (`!=`). This is an issue since Uuid is a user defined type defining its own equals. This PR remedies the issue and adds a test to catch regressions. Co-authored-by: varunv-cflt <vvelamuri@confluent.io> Reviewers: Apoorv Mittal <apoorvmittal10@gmail.com>
… (#23101) Added missing null check on listener registration for regex subscription. The bug would have unregistered any previously set listener in the consumer. Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Lianet Magrans <lmagrans@confluent.io>
Asynchronous offset commits may throw an unexpected WakeupException. This was addressed for some code paths previously in apache/kafka#12626, but left out for the `awaitMetadataUpdate()` code path. This patch fixes the problem by passing through a flag to `awaitMetadataUpdate()` to indicate whether wakeups should be disabled. This is used to disable wakeups in the context of asynchronous offset commits. All other uses leave wakeups enabled. Reviewers: Nikita Shupletsov <nikita@shupletsov.ca>, Lianet Magrans <lmagrans@confluent.io>
…ies but not processing delays (#22452) The record-e2e-latency metric at terminal nodes is computed incorrectly, using a cached timestamp which is take before actual processing happens. This PR ensures, that we are taking a new timestamp after processing completed. To avoid per-record system calls, we take a single timestamp after a batch of records completed. During processing, we capture record.timestamp values (eg, min, max, etc) allowing us to compute the latency per record at the end of a batch. Reviewers: Lucy Liu <lucliu@confluent.io>, Matthias J. Sax <matthias@confluent.io>
…ol (#23013) This PR ensures that we are assembling the latest task-(end)-offset sum snapshot only for the "streams" protocol, but not for "classic". For "classic" the snapshot is never read, so it's unnecessary to maintain it. It further ensure that we refresh the task-(end)-offset sum snapshot even if the main loop is not ready to process active tasks. The async state-updater thread might still make progress restoring standby and warmup tasks, so we should continue reporting the most recent metadata. Reviewers: Bill Bejeck <bbejeck@apache.org>
Broker side StickyTaskAssignor does not assign standby tasks correctly, because it does not cycle through all group member correctly to find the right candidate to host it. Reviewers: Mingi Cho (github:ChoMinGi), Bill Bejeck <bbejeck@apache.org>
Collaborator
Author
|
Tests run locally on Java 17:
Before the plugin bump, 29 cluster tests failed with Merging needs a repository administrator to clear Require signed commits and Require linear history in the |
gqmelo
force-pushed
the
sync/upstream-20261123
branch
from
November 25, 2026 11:48
ff1c561 to
44d8ab1
Compare
Merge apache/kafka trunk up to the merge base of apache/trunk and apache/4.4 (836 upstream commits), and bump the version to 4.4.0-inkless-SNAPSHOT. Conflict resolutions of note: - ConfigurationControlManager: thread upstream's new `forwarded` flag through the inkless postConfigValidation overloads. - ControllerApis: port the inkless handlers to org.apache.kafka.network.Request. - KafkaConfig: drop quotaConfig and log getters moved to AbstractKafkaConfig; keep logDisklessEnable. - LogConfig: adopt the renamed remote-log defaults, keep diskless.enable. - TestUtils.createTopicWithAdmin: adopt util.Map topicConfig, keep topicType. - PlaintextConsumerTest.scala: upstream deleted it; keep only the inkless testOffsetRelatedWhenTimeoutZero. - AbstractCreateTopicsRequestTest.scala: accept upstream deletion. Assisted-by: Claude Opus 5.5
- build.gradle: Gradle 9.6 resolves project() inside dependencies {} to a
ProjectDependency, so read the storage:inkless test output through
rootProject; storage:inkless uses testFixtures(project(':clients')).
- Follow the move of org.apache.kafka.common.utils classes to
org.apache.kafka.common.utils.internals.
- Follow the move of the quota classes to org.apache.kafka.server.quota.
- QuotaFactory (now Java): read the consolidation fetch rate limit
through getLong.
- ReplicaManager: LogManager is now Java, so convert getLog results to
Scala Options at the inkless call sites.
Assisted-by: Claude Opus 5.5
- Mark AlterDisklessSwitchOptions, AlterDisklessSwitchResult and DescribeTopicPartitionsResult with @InterfaceAudience.Public for the KIP-1265 public API checker. DescribeTopicPartitionsResult exposes the raw protocol response by design, so its members carry @SuppressKafkaInternalApiUsage. - Suppress MethodLength for RemoteLogManager: upstream's remote-storage seed call and the inkless reclaim floor push cleanupExpiredRemoteLogSegments past 170 lines. - Reorder imports after the utils.internals move (spotlessApply). Assisted-by: Claude Opus 5.5
- Pass the new `forwarded` argument to createTopics, incrementalAlterConfig(s) and legacyAlterConfigs. - Build MetadataDelta through MetadataDelta.Builder. - Use the *ImageFixtures test fixtures instead of the *ImageTest classes. - Use java.util.Set callbacks in ControllerApis tests and org.apache.kafka.network.Request in place of RequestChannel.Request. - LogManager is now Java: use Optional results and positional getOrCreateLog/getLog arguments. - Replace the deleted kafka.log.LogTestUtils with UnifiedLog.create and a local createLogConfig helper. - Move the inkless describeTopicPartitions tests to KafkaAdminClientTopicTest, where upstream moved the topic tests. - Follow the AbortedTxn, TxnOffsetCommitRequest.Builder and ServerTestUtils.clearYammerMetrics moves. - Use util.Map topic configs in KafkaServerTestHarness. Assisted-by: Claude Opus 5.5
- ReplicaManagerInklessTest: the Java LogManager has a separate getLog(tp) overload, so stub it directly; the Scala default argument used to route getLog(tp) through getLog(tp, isFuture). Compare getLog results as Scala Options. - KafkaApisTest: give the diskless topic a topic ID. TxnOffsetCommit now resolves topics by ID and rejects topics that resolve to ZERO_UUID. Assisted-by: Claude Opus 5.5
Kafka 4.4 moved ByteBufferInputStream to org.apache.kafka.common.utils.internals. Plugin 1.0.0 still references the old class, so the remote storage manager fails at broker startup with NoClassDefFoundError. Release 1.2.1 supports Kafka 4.4. 1.2.1 adds runtime dependencies on io.confluent artifacts for Iceberg support. They aren't on Maven Central and the tests don't use Iceberg, so exclude them. Assisted-by: Claude Opus 5.5
… benchmark Upstream replaced the public MetadataDelta constructor with MetadataDelta.Builder. `make build` doesn't compile jmh-benchmarks, so the CI `check` task caught the remaining call site in InklessMetadataViewTopicFlagBenchmark. Assisted-by: Claude Opus 5.5
#896 landed on main after the sync branched. Its test calls getOrCreateLog with Scala named arguments, which the Java LogManager doesn't support, so pass them positionally. Assisted-by: Claude Opus 5.5
Upstream 4.4 adds the `:api-checker` included build, and the root build script loads its plugin. Gradle compiles that plugin with the running JDK, so its bytecode differs between JDK 25 and JDK 17. The classpath of generateJooqClasses then changes, and Gradle reruns the task under JDK 17 in the CI docs step. JDK 17 drops the "this-escape" warning from the generated @SuppressWarnings annotations, which leaves the committed jOOQ sources dirty. The docs targets read the committed jOOQ sources, and CI checks those sources in a separate JDK 25 step, so `make docs` skips the generation. Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
gqmelo
force-pushed
the
sync/upstream-20261123
branch
from
November 30, 2026 10:42
4e367d3 to
6e358fb
Compare
Bring in #913, which merged into main after the branch was rebuilt. Both sides add `.github/dependabot.yml`: upstream 4.4 with a daily github-actions entry (apache/kafka#21872), and #913 with a weekly Gradle entry for the `:storage:inkless` dependencies. Keep both entries, and set the upstream entry's `open-pull-requests-limit` to 0. That stops the GitHub Actions version-update PRs and keeps the file one line away from upstream, so later syncs are less likely to conflict on it. Dependabot security updates aren't limited by this setting. Assisted-by: Claude Opus 5.5
gqmelo
force-pushed
the
sync/upstream-20261123
branch
from
November 30, 2026 12:53
66be3e0 to
583fd40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync
mainwith Apache Kafka trunk up to3afec2a52d, the commit whereapache/4.4branches off trunk (main-sync.sh --before-version 4.4). This merges 836 upstream commits and moves the version to4.4.0-inkless-SNAPSHOT. The next step createsinkless-4.4frommain.Land with Create a merge commit. Squash or rebase would break the merge base that the next sync reads.
Commits
The branch starts from the current
mainand has one upstream merge commit, followed by the adaptations:merge: apache/kafka trunk 3afec2a52d (before 4.4.0-SNAPSHOT): the 50 conflicted files (about 95 hunks) needed manual resolution.sync(compile): adapt build and main sources to upstream 4.4 refactorssync(compile): pass upstream 4.4 build checkssync(test): adapt tests to upstream 4.4 test API changessync(test): fix inkless unit tests for upstream 4.4 behaviorsync(test): bump tiered-storage-for-apache-kafka to 1.2.1sync(compile): build MetadataDelta through its builder in the inkless benchmarksync(test): adapt the #896 test to the Java LogManagerfix(inkless:build): skip jOOQ generation in make docssync(test): pass `forwarded` in the #899 and #905 testssync(verify): add the session log for the 4.4 cut sync#896, #899, and #905 merged into
mainwhile this PR was open. Their tests use APIs that upstream 4.4 changes, so commits 8 and 10 adapt them.Review focus
ConfigurationControlManager: upstream added aforwardedflag to the alter-config paths. Git's auto-merge dropped it in the overloads that delegate to the inklesspostConfigValidationhook. The flag is now threaded through, andQuorumControllerpasses both.ControllerApis: the inkless handlers use the neworg.apache.kafka.network.Requesttype.KafkaConfig:quotaConfigand the log getters moved to the JavaAbstractKafkaConfig.logDisklessEnablestays inKafkaConfig.AlterDisklessSwitchOptions,AlterDisklessSwitchResult, andDescribeTopicPartitionsResulthave@InterfaceAudience.Public.DescribeTopicPartitionsResultexposes the raw protocol response by design. Its constructor andrawResponsehave@SuppressKafkaInternalApiUsage.checkstyle/suppressions.xml:RemoteLogManager.javajoins theMethodLengthsuppression. Upstream's new remote-storage seed call plus the inkless reclaim floor pushcleanupExpiredRemoteLogSegmentsto 174 lines.org.apache.kafka.common.utils.ByteBufferInputStream, which Kafka 4.4 moved toutils.internals. The remote storage manager then fails at broker startup. Release 1.2.1 supports Kafka 4.4. Itsio.confluentdependencies (Iceberg support) aren't on Maven Central. Thecoretest dependencies on the plugin exclude them.make docsskipsgenerateJooqClasses: upstream's new:api-checkerincluded build compiles its plugin with the running JDK, so CI's switch from JDK 25 to JDK 17 changes the task classpath. Gradle then reruns the jOOQ generation in the docs step. JDK 17 drops the"this-escape"warning from the generated annotations and leaves the committed sources dirty. CI still checks the jOOQ sources in its own JDK 25 step.PlaintextConsumerTest.scalakeeps only the inklesstestOffsetRelatedWhenTimeoutZero, which also runs on diskless topics. This PR deletesAbstractCreateTopicsRequestTest.scala, because upstream rewrote it in Java and the inkless change was only a timeout bump.KafkaAdminClientTest: upstream split the class, so the inklessdescribeTopicPartitionstests moved toKafkaAdminClientTopicTest.The rest follows upstream package moves:
common.utilsclasses to.internals, the quota classes toserver.quota,LogManagerto Java,*ImageTestconstants to*ImageFixtures, and the Gradle 9.6project()change independencies {}. The full conflict and fix log is ininkless-sync/sessions/SESSION-2026-11-23.md.Testing
Inkless CIpassed on the previous head,4e367d3462: the compile and check job, and the JUnit jobs on Java 17 and Java 25. Since then, the branch has picked up the 11 commits that merged intomainafterward and the test adaptation for fix(inkless:controller): reject a topic type flag that isn't true or false #899 and fix(inkless:switch): rebuild a follower below the seal when the leader's local log starts past it [KC-872] #905. CI on the current head is still running.checktask and the full CI JUnit chain frominkless.ymlpass. The CI jOOQ and docs steps leave the tree clean.NoClassDefFoundError: org/apache/kafka/common/utils/ByteBufferInputStreamfrom the 1.0.0 remote storage manager. They pass with 1.2.1.Merging
A repository administrator has to clear Require signed commits and Require linear history in the
mainruleset for the merge, then restore them. Some upstream commits have no signature. For the steps, seeinkless-sync/MAIN-SYNC-ACTION-PLAN.md, step 10.🤖 Generated with Claude Code