Skip to content

feat(server): fix the offset durability of geo topics at persisted - #5074

Open
numinnex wants to merge 4 commits into
sweep_orphan_store_objectsfrom
geo_persisted_consumer_offsets
Open

numinnex wants to merge 4 commits into
sweep_orphan_store_objectsfrom
geo_persisted_consumer_offsets

Conversation

@numinnex

@numinnex numinnex commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

A geo topic fixed the durability of its messages at persisted and left
the durability of its consumer offsets at replicated. A replica counts
its recovered log as complete only when both are persisted, so after
every node of a cluster stopped at once each replica marked its log
untrusted, and the partition elected no primary until the last node
was back. A geo topic exists for the case where a whole datacenter
goes down, and one node that never returned kept its partitions down.

The geo mode now fixes both. A create that names either option is not
refused: the value is ignored and persisted is stored as derived,
since every client sends replicated unless told otherwise. A shadow
topic takes the same from the mode of its origin, where it ran
replicated for both and reported persisted.

A geo topic fixed the durability of its messages at persisted and left
the durability of its consumer offsets at replicated. A replica counts
its recovered log as complete only when both are persisted, so after
every node of a cluster stopped at once each replica marked its log
untrusted, and the partition elected no primary until the last node
was back. A geo topic exists for the case where a whole datacenter goes
down, and one node that never returned kept its partitions down.

The geo mode now fixes both. A create that names either option is not
refused: the value is ignored and persisted is stored as derived, since
every client sends replicated unless told otherwise. A shadow topic
takes the same from the mode of its origin, where it ran replicated for
both and reported persisted.
@numinnex
numinnex added this pull request to stack #5048 November 24, 2026 14:11
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.23077% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (sweep_orphan_store_objects@5e54e20). Learn more about missing BASE report.

Files with missing lines Patch % Lines
core/common/src/types/options/catalog.rs 98.21% 0 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                      Coverage Diff                      @@
##             sweep_orphan_store_objects    #5074   +/-   ##
=============================================================
  Coverage                              ?   92.20%           
  Complexity                            ?     4361           
=============================================================
  Files                                 ?     1584           
  Lines                                 ?   425570           
  Branches                              ?   354057           
=============================================================
  Hits                                  ?   392413           
  Misses                                ?    27631           
  Partials                              ?     5526           
Components Coverage Δ
Rust Core 93.53% <0.00%> (?)
Java SDK 80.99% <0.00%> (?)
C# SDK 86.31% <0.00%> (?)
Python SDK 85.39% <0.00%> (?)
PHP SDK 90.42% <0.00%> (?)
Node SDK 97.27% <0.00%> (?)
Go SDK 73.81% <0.00%> (?)
C++ SDK 85.44% <0.00%> (?)
Files with missing lines Coverage Δ
core/common/src/types/options/durability.rs 100.00% <ø> (ø)
core/common/src/types/options/geo_mode.rs 100.00% <ø> (ø)
core/common/src/types/options/mod.rs 95.71% <ø> (ø)
core/metadata/src/impls/metadata.rs 94.83% <100.00%> (ø)
core/metadata/src/stm/stream.rs 97.29% <100.00%> (ø)
core/server/src/shadow_topics.rs 90.43% <100.00%> (ø)
core/common/src/types/options/catalog.rs 97.56% <98.21%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review PR is waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant