The replica cache integration tests fail on develop since snapshots measure their age with a monotonic counter #437
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#437
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run 1618 (push to
develop, merge of #434, commitd0323bcd) failed in Test .NET:PostgreSqlReplicaCacheTests.RewriteCache_AfterTheTimeToLive_ReloadsFromTheReplicaMySqlReplicaCacheTests.RewriteCache_AfterTheTimeToLive_ReloadsFromTheReplicaMongoDbReplicaCacheTests.RewriteCache_AfterTheTimeToLive_ReloadsFromTheReplicaall with
A time-to-live reload must read the replica.(ReplicaCacheTestsBase.csline 226).Cause
#224 changed
RefreshingSnapshotto measure the age of a value withTimeProvider.GetTimestamp/GetElapsedTime. TheSteppingTimeProviderinReplicaCacheTestsBaseonly overridesGetUtcNow, so stepping it no longer ages the snapshot and the time-to-live reload never starts. The failure is deterministic, not a flake.The pull-request pipeline of #434 did not see it: these tests carry
RequiresDockerand only run on a push to a long-lived branch.Fix
SteppingTimeProvideroverridesTimestampFrequencyandGetTimestampfrom the same hand-stepped clock, as theManualTimeProviderfakes changed in #224 do. Test-only change; the product code is correct.