Skip to content

v0.27.1

Choose a tag to compare

@github-actions github-actions released this 13 Oct 09:41
· 105 commits to main since this release
0f8ea4d

Fixed

  • PITR chain tests no longer report false count mismatches on busy databases (#181). A chain test restores to the newer base's consistent point (t_after), but compared the clones with document counts read before and after that base's dump, which writes racing the dump can move away from the state at that point (20001 documents restored, 20000 expected). Base backups now record each collection's exact count at their t_after in the manifest (exact_at, exact_method, per collection exact or exact_note): a snapshot read at that point (readConcern: snapshot with atClusterTime), with collections created, dropped or renamed since checked in the oplog; where a snapshot read fails, the count is derived from fast counts read afterwards minus the inserts and deletes of the oplog entries since t_after (transactions at their commit). Chain tests compare with these counts exactly, so a divergence of one document still fails them; a collection without an exact count (and every collection of a base of an earlier release) has its count reported as unverified (verification.unverified and a note) instead of failing. Manifests of earlier releases stay readable; no migration. The soak test's chain tests during the load are strict again. See docs/pitr.md.
  • A PITR chain test that could not verify every count no longer looks like a clean pass (#181): it passes with verification.unverified, unverified_reason and unverified_old_base, adds a warning to the restore, raises the readiness reason pitr_chain_test_unverified (warn; each readiness stream carries its newest chain_test), sets the gauge mongorescue_pitr_chain_test_unverified_collections, and the dashboard shows Chain test passed, N collections not verified with the reason and the remedy (take a new base backup) in the PITR panel, readiness and the restore details, in all eight languages.
  • PITR chain tests check that a collection existing at the newer base's consistent point is restored, even when empty, and that one dropped before it is not (exact_absent); the oplog-derived counts leave capped and time-series collections unverified, and a count that cannot be read only leaves its own collection unverified (#181).
  • An active HA instance could lose the lease after a single slow renewal. The renewal request could use all the time to the step-down deadline (with the defaults, ttl 30s and renew 10s, a request sent 10 s after the last renewal could run to the deadline 20 s after it), and after a failed renewal the next attempt waited a renew interval or, when the deadline came first, until the deadline, so a stall late in the interval made the instance step down without a second try. A renewal request now takes at most half the time left (at least half a renew interval, at most one), and a failed renewal is retried every tenth of a renew interval until the deadline (found by the HA integration test, where one MinIO request stalled for 3 s).
  • A standby that acquired the HA lease reported active on /api/v1/health and served the API and sign-ins from its untrusted database for the moment until it closed and reopened as the active instance. A client or load balancer that followed the health check could sign in there, then have its next request refused while the active App opened. The standby App now reports standby and refuses the API until the active App serves; the mongorescue_ha_role series follows it (found by the HA integration test).