Repository navigation
Conversation
A geo topic can set its read cache size and readahead, but the shadow of that topic in another datacenter could not. No client creates or updates a shadow, so it read with the server settings of its own cluster, whatever its origin had chosen. The origin now publishes the two values in the topic object. The object gets a new version for that, with a bit per value, since zero is a value. A topic that sets neither publishes neither. The pass that keeps topic objects in step with metadata already stores an object again when its content changes, so an update of the options is published at once. The cluster that adopts the topic gives the shadow the published values. For a shadow it already has, it compares what the object holds with what the shadow stores each time it reads the object again, and proposes a new kind of the shadow operation when they differ. That operation can also remove a value, so a shadow whose origin unsets one falls back to its own cluster's setting. An update on the origin reaches the shadow within about half a minute, with no restart on either side. A value that does not fit the reading cluster is stored as published and capped where it is applied. A peer that cannot be read, or that is another cluster than the shadow came from, changes nothing. No release has shipped geo topics, so the old version of the topic object is no longer read.
Codecov Report❌ Patch coverage is ❌ 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 @@
## read_cache_topic_options #5053 +/- ##
==============================================================
- Coverage 79.31% 79.27% -0.05%
- Complexity 4361 4363 +2
==============================================================
Files 1548 1548
Lines 250405 250613 +208
Branches 178708 178916 +208
==============================================================
+ Hits 198616 198678 +62
- Misses 45722 45866 +144
- Partials 6067 6069 +2
🚀 New features to boost your workflow:
|
Master keeps each stream of the catalog behind an Arc and dropped the shard count from the reconciler test context, so the merge did not compile. set_read_cache now reads the topic first and changes the stream through IdSlab::make_mut, as the other shadow writes do, and the geo topics test builds its context without the removed argument.
This branch has not been deployed
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.
A geo topic can set its read cache size and readahead, but the shadow
of that topic in another datacenter could not. No client creates or
updates a shadow, so it read with the server settings of its own
cluster, whatever its origin had chosen.
The origin now publishes the two values in the topic object. The
object gets a new version for that, with a bit per value, since zero
is a value. A topic that sets neither publishes neither. The pass that
keeps topic objects in step with metadata already stores an object
again when its content changes, so an update of the options is
published at once.
The cluster that adopts the topic gives the shadow the published
values. For a shadow it already has, it compares what the object holds
with what the shadow stores each time it reads the object again, and
proposes a new kind of the shadow operation when they differ. That
operation can also remove a value, so a shadow whose origin unsets one
falls back to its own cluster's setting. An update on the origin
reaches the shadow within about half a minute, with no restart on
either side.
A value that does not fit the reading cluster is stored as published
and capped where it is applied. A peer that cannot be read, or that is
another cluster than the shadow came from, changes nothing.
No release has shipped geo topics, so the old version of the topic
object is no longer read.