-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
69262: streamingccl: unrevert graceful cutover of stream ingestion r=pbardea a=adityamaru In #68918 we reverted a change that taught stream ingestion processors to wait for a cutover on losing connection to the client. This was the first part of introducing the concept of generations to c2c streaming. The change was reverted due to a leaked goroutine during stress testing. This change does not alter any of the core logic but simply makes the test more reliable by adding a `Streaming` testing knob. This allows us to intercept when the stream ingestion processor receives an Event and perform the necessary testing. Fixes: #68701 Fixes: #68795 Release justification (non-production code changes): Revert a revert of previously checked in logic by fixing the testing infrastructure that was leaking the goroutine. 69470: sql: Fix SHOW ZONE CONFIGURATIONS with very long constraints r=arulajmani a=ajstorm Previously, in the presence of very long constraints fields, SHOW ZONE CONFIGURATIONS would output the constraints with `\n` characters mixed in. This was due to the fact that the yaml.v2 library contained an 80 character line limit. We recently pulled in some commits to our fork of the yaml library which allows the line length to be configurable. With that change, we can now configure the line length to be unlimited in the case where we're showing the zone configuration, and get around the ugliness of the `\n` characters. Release note (sql change): Fixes a bug in SHOW ZONE CONFIGURATIONS where long constraints fields may show `\n` characters. Release justification: Low risk change to existing functionality. Co-authored-by: Anne Zhu <anne.zhu@cockroachlabs.com> Co-authored-by: Adam Storm <storm@cockroachlabs.com>
- Loading branch information
Showing
17 changed files
with
261 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
33 changes: 33 additions & 0 deletions
33
pkg/ccl/logictestccl/testdata/logic_test/multi_region_zone_configs_long_regions
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# LogicTest: multiregion-3node-3superlongregions | ||
|
||
query TTTT | ||
SHOW REGIONS | ||
---- | ||
veryveryveryveryveryveryverylongregion1 {} {} {} | ||
veryveryveryveryveryveryverylongregion2 {} {} {} | ||
veryveryveryveryveryveryverylongregion3 {} {} {} | ||
|
||
statement ok | ||
SELECT crdb_internal.validate_multi_region_zone_configs() | ||
|
||
statement ok | ||
CREATE DATABASE "mr-zone-configs" primary region "veryveryveryveryveryveryverylongregion1" regions "veryveryveryveryveryveryverylongregion2","veryveryveryveryveryveryverylongregion3" | ||
|
||
statement ok | ||
use "mr-zone-configs" | ||
|
||
statement ok | ||
SELECT crdb_internal.validate_multi_region_zone_configs() | ||
|
||
query TT | ||
SHOW ZONE CONFIGURATION FOR DATABASE "mr-zone-configs" | ||
---- | ||
DATABASE "mr-zone-configs" ALTER DATABASE "mr-zone-configs" CONFIGURE ZONE USING | ||
range_min_bytes = 134217728, | ||
range_max_bytes = 536870912, | ||
gc.ttlseconds = 90000, | ||
num_replicas = 5, | ||
num_voters = 3, | ||
constraints = '{+region=veryveryveryveryveryveryverylongregion1: 1, +region=veryveryveryveryveryveryverylongregion2: 1, +region=veryveryveryveryveryveryverylongregion3: 1}', | ||
voter_constraints = '[+region=veryveryveryveryveryveryverylongregion1]', | ||
lease_preferences = '[[+region=veryveryveryveryveryveryverylongregion1]]' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.