Repository navigation
26.8 integrations lane: Kafka, MVs, PostgreSQL/dictionaries, ops (FLEECH-606) - #66
Draft
Khatskevich wants to merge 9 commits into
Draft
Khatskevich wants to merge 9 commits into
Khatskevich wants to merge 9 commits into
Conversation
Khatskevich
force-pushed
the
v26.8.34.13-lts-aiven-dev-integration-lane
branch
3 times, most recently
from
November 17, 2026 09:22
32f56bd to
a2d2deb
Compare
tilman-aiven
force-pushed
the
v26.8.34.13-lts-aiven-dev
branch
from
November 18, 2026 09:35
0474c71 to
cd2fed0
Compare
Aiven pauses a Kafka integration by setting its table's kafka_num_consumers to 0, which keeps the table and its views in place. Upstream rejects 0 at CREATE. Drop that lower bound, keep 26.8's new upper bound, and treat 0 as 1 in both getMaxBlockSize implementations so nothing can divide by zero. 26.8's StorageKafka2 already skips empty consumer slots, so a paused Keeper-backed table is a supported state; a direct SELECT on it fails with QUERY_NOT_ALLOWED. Test: aiven_030_kafka_num_consumers_zero (both engines). Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Aiven's Kafka integration tables carry their own TLS files and endpoint identification in table settings. Upstream has kafka_security_protocol and kafka_sasl_mechanism only as strings and no kafka_ssl_* settings, so these tables would not attach. Carry the 26.3 design: enum-typed protocol, mechanism and endpoint identification (default none), plus the three SSL file locations, always applied in updateConfigurationFromConfig. 26.8 added AWS MSK IAM, which signs with the server's own AWS credentials; Aiven does not offer it. The enum has no AWS_MSK_IAM, so CREATE rejects it, and an AWS_MSK_IAM from server config or a named collection's nested key is refused with SUPPORT_IS_DISABLED when the configuration is built. Upstream's MSK setup is no longer called. 26.8 also checks that a table may replace a named collection's librdkafka keys only with SHOW NAMED COLLECTIONS SECRETS, and knows flat settings by name. Register the four kafka_ssl_* settings there, so they cannot replace a collection's CA, client certificate or host-name check without the privilege or past NOT OVERRIDABLE. Known and kept on purpose for now: the always-applied defaults override a named collection's nested kafka.* keys and the server <kafka> section. The dossier lists this under Retirement as the thing to reconsider. Test: aiven_029_kafka_sasl_ssl_settings, aiven_029_kafka_sasl_ssl_settings_named_collection, aiven_029_kafka_aws_msk_iam_refused. Upstream 04218_kafka_aws_msk_iam_auth_settings now fails by design. Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Kevin Michel <kevin.michel@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…gging Aiven integration tables store the registry URL as kafka_format_avro_schema_registry_url, which upstream does not know. Keep it as an alias forwarded to format_avro_schema_registry_url, and add it to Kafka's secret-masking list so its password is hidden in SHOW CREATE and the query log the same way 26.8 hides the canonical name's. The schema-fetch trace log still prints the full URL with credentials; on 26.8 it lives in AvroConfluentSchemaRegistry.cpp. Strip user info from the logged copy. Upstream's basic auth is used as is. Test: aiven_031_kafka_schema_registry_auth. Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Kevin Michel <kevin.michel@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Aiven integrations let users tune the producer behind INSERT INTO a Kafka table. Carry the six kafka_producer_* settings (batch size and count, linger, queue limits, acks) and keep kafka_producer_compression_codec and _level as aliases of upstream's kafka_compression_* settings. 26.8 added a check that a table may replace a named collection's librdkafka keys only with SHOW NAMED COLLECTIONS SECRETS. It knows flat settings by name. The compression aliases are applied after the collection like upstream's kafka_compression_*, so they are listed there. The producer settings are not: they are set before the collection's keys, so the collection wins and they never replace anything. Test: aiven_033_kafka_extra_settings, aiven_033_kafka_extra_settings_named_collection. Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… alias Upstream hardcodes auto.offset.reset = earliest, so a table cannot start a new consumer group at the end of a topic. Add kafka_auto_offset_reset (default earliest, as before) and keep kafka_date_time_input_format as an alias of date_time_input_format, forwarded only when the table sets it. Aiven integration tables store both. Test: aiven_032_kafka_offset_reset_datetime. Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Kevin Michel <kevin.michel@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…or time-based consumer offset reset A new Kafka integration on a long-retention topic can only start at the earliest or latest message. kafka_auto_offset_reset_by_duration_ms makes partitions without a committed offset start at now minus the duration, resolved with offsetsForTimes, in both engines: in StorageKafka's assignment callback (mutating the list cppkafka then assigns) and in StorageKafka2's updateOffsets. On failure it falls back to auto.offset.reset. 0, the default, changes nothing. 26.8 conflicts were context only, next to the new waited_for_assignment and block_start_offsets. Test: aiven_076_kafka_offset_reset_by_duration (setting surface; the resolution needs a broker). Original author: Joe Lynch <joelynch112@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…eeper (rather than ClickHouse Keeper) Aiven runs ClickHouse on Apache ZooKeeper, which lacks the Keeper-only MULTI_READ and CREATE_IF_NOT_EXISTS extensions. Stock 26.8 requires both for coordinated refreshable views: CREATE fails with NOT_IMPLEMENTED, and at startup every existing view is put into a permanent "coordination unavailable" state, so upgrading a ZooKeeper-backed service disables all its refreshable views. Make coordination work without them and neutralize the give-up path at its single check (coordinationFeatureFlagsMissing returns false; its failpoints still work). On ZooKeeper the coordination znodes are created one by one, accepting existing ones; reads fall back to separate requests; and the /running create is an existence check plus a plain create instead of CreateIfNotExists, which ZooKeeper cannot parse and which made it drop the shared session (formerly patch N02, absorbed). On ClickHouse Keeper the code path is upstream's. Test: test_aiven_refreshable_mv_zookeeper (Keeper with every extension off, plus a default-Keeper control). Upstream test_refreshable_mv_no_multi_read cases that expect the view to end Disabled now fail by design. Original author: Tilman Moeller <tilman.moeller@aiven.io> Co-authored-by: Aliaksei Khatskevich <alex.khatskevich@aiven.io> Co-authored-by: Joe Lynch <joe.lynch@aiven.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…shard macro in the target table
A coordinated refreshable MV in a Replicated database expands
default_replica_path without the database's shard name, so on servers
without a global <shard> macro CREATE fails with NO_ELEMENTS_IN_CONFIG.
Pass the Replicated database's shard name for {shard}. Look the database
up with tryGetDatabase so a missing entry cannot fail table load.
The test now pins both Keeper feature flags 26.8 needs for coordination.
Test: test_aiven_refreshable_mv_shard_macro_expansion.
Original author: Tilman Moeller <tilman.moeller@aiven.io>
Co-authored-by: Joe Lynch <joe.lynch@aiven.io>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Khatskevich
force-pushed
the
v26.8.34.13-lts-aiven-dev-integration-lane
branch
from
November 19, 2026 17:05
1cbc5c0 to
c826f7b
Compare
Khatskevich
changed the base branch from
v26.8.34.13-lts-aiven-dev
to
v26.8.34.13-lts-aiven-early-availability
November 19, 2026 17:05
…s of a Replicated database In a Replicated database with several shards, every DDL of a refresh (CREATE of the new table, EXCHANGE, DROP) runs on all shards, while the INSERT stays in one. Upstream 26.8 still lets each shard refresh on its own, so each EXCHANGE empties the target table on the other shards. As on 25.8 and 26.3, all shards share one coordination znode. The replica that starts a refresh leads it: it creates the new table and publishes its UUID, one replica of every shard inserts its shard's rows into it, and the leader does the one EXCHANGE after all shards are done. Re-applied onto 26.8's refresh code rather than resolving 26.3's diff. Includes 078 and both 26.3 fixes: 825f7b0 (take the shard before publishing the refresh directory) and 69f1367 (FLEECH-776: read znodes by field name; back off on repeated errors). The znode parser also reads the fields upstream added in 26.8, and refresh_dir is written where 26.3 servers look for it during a rolling upgrade. Changes from 26.3: helpers take the refresh directory as an argument instead of sharing it between threads; a participant skips a shard already marked finished; the leader removes only its own directory. Dropped the dead post-EXCHANGE wait, tryBecomeGlobalLeader and its failpoint, and the stale-directory cleanup that never matched. Source: b86c0c1, 825f7b0, 69f1367 on v26.3.60.2-lts-aiven. Tests: test_aiven_mv_refresh_sharded; gtest RefreshTaskCoordinationZnode. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Khatskevich
force-pushed
the
v26.8.34.13-lts-aiven-dev-integration-lane
branch
from
November 19, 2026 21:11
45a4b5d to
92f088c
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.
Integrations lane of the 26.8 uplift (FLEECH-606, epic FLEECH-576), on top of
v26.8.34.13-lts-aiven-early-availability. One commit per patch identity, each with its dossier underdocs/aiven/patches/; follow-up fixes are folded into their patch.Ticket 7 — Kafka (done)
f3189241c56030kafka_num_consumers = 0bce825b9b53029SASL/SSL settings as enumsAWS_MSK_IAMrefused (Aiven decision: it signs with the server's AWS identity);kafka_ssl_*registered with upstream's named-collection override checka48613e8f3f031schema-registry URL aliasformat_avro_schema_registry_url; log fix moved toAvroConfluentSchemaRegistry.cppe9ee3f82fde033producer settings3717290762b032per-table offset reset029bf67d584282076offset reset by durationTicket 8 — refreshable MVs (done)
76cfc98a7ce050RMVs on Apache ZooKeeper (absorbsN02)c826f7b21ee049RMV shard macrotryGetDatabase; lands after050, so its test needs no Keeper-flag pinning92f088c5441066RMVs in sharded Replicated databases (absorbs078)825f7b06b05and69f13676f85(FLEECH-776, #67); upstream still empties other shards' targets on every refreshSources: 26.3 commits on
v26.3.60.2-lts-aiven(066:b86c0c1b517,825f7b06b05,69f13676f85).patch-fix(004)was dropped on the rebase: the EA base carries Tilman's own fix of that test.Open for review:
92f088c5441: running. Build 62 (first 066 push): every RMV suite aborted —executeRefreshcalled Keeper without a component (enforce_keeper_component_trackingin CI); fixed and folded into066. Build 60 (before the rebase, without066): passed, integration 44/44.066known limits carried from 26.3:DROP DATABASEon one replica removes the shared coordination znode; a failed shard insert makes the leader wait up to 2 h. Upstreamtest_refreshable_mv(znode path) and sometest_refreshable_mv_no_multi_readcases fail by design.029keeps 26.3's always-applied defaults; they override a named collection's nestedkafka.*keys and the server<kafka>section. Listed under the dossier's Retirement for reconsideration.Verification
aiven_029/030/031/032/033/076_*stateless tests pass; related upstream Kafka/named-collection/masking stateless tests show no regressions (failures were environment-only).066: two local servers as two shards keep each shard's rows across refreshes led from either shard (with and withoutAPPEND); znodes in the 25.8 and 26.3 layouts are read and rewritten; upstream's refreshable-view stateless tests pass.