Commit 40a27ad
fix(compactor): fix flaky TestCompactor_DeleteLocalSyncFiles on arm64 (#7567)
* fix(compactor): poll on user ownership in TestCompactor_DeleteLocalSyncFiles
TestCompactor_DeleteLocalSyncFiles and TestPartitionCompactor_DeleteLocalSyncFiles
were flaking on arm64 with "Should not be zero, but was 0" at the
require.NotZero(t, c2Users) assertion. The polling condition only checked
CompactionRunsCompleted >= 1, but that counter increments even when the
compactor's first cycle ran with zero owned users due to a transient
ring-view skew at startup. The subsequent listTenantsWithMetaSyncDirectories()
call could therefore return an empty slice.
Poll on the actual condition under test (both the cycle has completed AND
the compactor sees at least one owned user) so the test waits until the
ring has stabilized.
Fixes #7565
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
* fix(compactor): require two completed cycles before sampling local sync dirs
Round 2 review flagged a remaining mid-cycle sampling race: with the
previous predicate CompactionRunsCompleted >= 1, Poll could return after
the first cycle (counter incremented despite c2 owning zero users due to
ring-view skew) while the second cycle's fetcher.NewBaseFetcher was still
creating meta-sync directories. c2Users would then be partial, breaking
require.Equal(t, numUsers, c1Users+c2Users) downstream.
Bumping to >= 2 ensures we sample only after at least one steady-state
cycle has completed end-to-end with the dirs in place.
Refs #7565
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
* fix(compactor): remove redundant NotZero assertion after Poll predicate
The Poll predicate added in the prior commits already requires
len(c2.listTenantsWithMetaSyncDirectories()) > 0, so the subsequent
require.NotZero(t, c2Users) is dead — it can only fire if Poll already
timed out and failed the test with a clearer message.
Addresses @SungJin1212 review feedback on PR #7567.
Refs #7565
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
* ci: retrigger to re-run flaky arm64 integration_querier
The previous CI run had an unrelated arm64 integration_querier flake
(TestQuerierWithBlocksStorageLimits, in pkg integration, not pkg/compactor).
This empty commit re-triggers CI to confirm the flake.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
---------
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
Signed-off-by: Sandy <Yuxuan.Chen@morganstanley.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4aed3a0 commit 40a27ad
3 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1622 | 1622 | | |
1623 | 1623 | | |
1624 | 1624 | | |
1625 | | - | |
1626 | | - | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
1627 | 1634 | | |
1628 | 1635 | | |
1629 | 1636 | | |
1630 | 1637 | | |
1631 | | - | |
1632 | 1638 | | |
1633 | 1639 | | |
1634 | 1640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
1849 | | - | |
1850 | | - | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1851 | 1858 | | |
1852 | 1859 | | |
1853 | 1860 | | |
1854 | 1861 | | |
1855 | | - | |
1856 | 1862 | | |
1857 | 1863 | | |
1858 | 1864 | | |
| |||
0 commit comments