You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
107696: asim: ensure consistent sequencing of changes applied to ranges r=kvoli a=wenyihu6
**asim: ensure consistent sequencing of changes applied to a range**
Upon investigating, we identified the non-deterministic behavior was due to the
sequence of changes applied on the ranges within one tick. Changes within a tick
are applied in one go. But the changes are stored in a map, and map iteration
order is non-deterministic. Thus, the sequence of events applied and published
via gossip could vary and could result in different event states. This patch
resolves the issue by changing the storage of changes to be applied from a map
to an array, ensuring consistent iteration and sequence of events. Note the
shift to an array doesn't pose any issues since all changes need to be applied
anyway.
With this fix, the test `TestAsimDeterministic` fails only under race. This is
less concerning since the simulator should run on a single goroutine without
concurrency. Although the cause of the test failure in race conditions in
unclear, fixing this is not a priority.
Part Of: cockroachdb#105904
Release Note: None
----
**asim: add tests for constraints validation, asim determinism**
This patch adds an asim datadriven test case which sets up zone constraints and
ensures its proper application and validation of these constraints.
Part Of: cockroachdb#105904
Release Note: None
----
**asim: sort map by key when iterating**
While investigating cockroachdb#105904, we found that the bug's cause is due to the
simulator's iteration over an unordered map, leading to non-determinism. There
are other occurrences in the simulator's code where unordered map iteration
takes place. To make the code less error-prone, this patch checks the
simulator's code and sorts unordered maps by key when iterating. While it's
uncertain whether this change will solve any underlying non-determinism or
pinpoint exactly where in the code non-determinism might occur, there is no harm
in making the system less error-prone.
Part Of:cockroachdb#105904
Release Note: None
----
Each test were stressed with [runs](https://github.com/cockroachdb/cockroach/blob/cb4f59df66852e24546067d4904a4c981b0cc92e/pkg/kv/kvserver/asim/asim_test.go#L49) set to 10 and with --count = 100.
TestAsimDeterministic (with --count = 5 due to test wait time):
<img width="1053" alt="Screenshot 2023-07-27 at 8 09 50 AM" src="https://github.com/cockroachdb/cockroach/assets/56973754/24870322-0419-4646-9ca5-edf2dd76dd47">
TestAsimDeterministicZoneConf:
<img width="1056" alt="Screenshot 2023-07-27 at 8 08 48 AM" src="https://github.com/cockroachdb/cockroach/assets/56973754/4d4b7918-3318-4535-a82e-2e98f172040c">
TestAsimDeterministicDiskFull:
<img width="1006" alt="Screenshot 2023-07-27 at 8 08 19 AM" src="https://github.com/cockroachdb/cockroach/assets/56973754/fdbc7d77-2b40-432f-a599-cfc1eb3e1575">
example_zone_config:
<img width="992" alt="Screenshot 2023-07-27 at 8 13 19 AM" src="https://github.com/cockroachdb/cockroach/assets/56973754/8b0f018f-9892-4268-a016-634c4ff8f26c">
example_fulldisk:
<img width="1042" alt="Screenshot 2023-07-27 at 8 18 36 AM" src="https://github.com/cockroachdb/cockroach/assets/56973754/fe0fd3cc-1505-4510-8592-3c9b3ea759dc">
107840: ci,ui: always install dependencies with pnpm r=nathanstilwell a=sjbarag
Previously, the 'cluster-ui-release' and 'cluster-ui-release-next' GitHub Actions workflows would fail when no new version needed to be published. When setup-node performs its post-run actions, it attempts to cache the global pnpm store. Unfortunately, that caching step fails when no global pnpm store exists, like during a cache-miss when `pnpm install` never ran. This caused the entire workflow to be marked as failed, adding needless noise to anyone who changed a file in `pkg/ui/workspaces/cluster-ui` without bumping the package version. Always run `pnpm install`, so that the global pnpm store is always populated and cacheable.
Release note: None
Epic: none
107870: sql: fix TestSQLStatsCompactor flaky test r=koorosh a=koorosh
This patch disables auto split and merge of ranges for the test because it causes extra wide scan to be counted by `kvInterceptor`.
Also, it is defined to run test on system tenant only to have an access to `kv` specific cluster setting and because it should have an access to store level.
Release note: None
Resolves: cockroachdb#107067
107964: go.mod: bump datadriven to e384cf455877 r=kvoli,irfansharif a=wenyihu6
```
e384cf4 Merge pull request cockroachdb#45 from wenyihu6/add-float64arr
f4b8e52 add scan implementation for float64, time.Duration, and []float64
```
Release Note: None
Epic: None
107979: roachtest: improve flake detection for typeorm test r=rafiss a=rafiss
fixescockroachdb#100705fixescockroachdb#103182fixescockroachdb#103175fixescockroachdb#103172
Release note: None
107981: changefeedccl: remove two usages of disableDeclarativeSchemaChangesForTest r=miretskiy a=jayshrivastava
This change removes two usages of `disableDeclarativeSchemaChangesForTest` from tests and replaces them with `maybeDisableDeclarativeSchemaChangesForTest` which will use the legacy schema changer 10% of the time.
Release note: None
Informs: cockroachdb#106906
Epic: None
Co-authored-by: wenyihu6 <[email protected]>
Co-authored-by: Sean Barag <[email protected]>
Co-authored-by: Andrii Vorobiov <[email protected]>
Co-authored-by: Rafi Shamim <[email protected]>
Co-authored-by: Jayant Shrivastava <[email protected]>
0 commit comments