Skip to content

Testcase for GH-554 - #555

Closed
lngr wants to merge 1 commit into
JasperFx:masterfrom
lngr:bug/554-linq-query-any-count
Closed

Testcase for GH-554#555
lngr wants to merge 1 commit into
JasperFx:masterfrom
lngr:bug/554-linq-query-any-count

Conversation

@lngr

@lngr lngr commented Oct 12, 2016

Copy link
Copy Markdown
Contributor

Testcase for the query failures described in #554

@lngr lngr closed this Oct 14, 2016
jeremydmiller added a commit that referenced this pull request Jul 22, 2026
…tdown drain (#5024) (#5025)

Bumps JasperFx.Events 2.33.1 -> 2.34.0 to consume #555 (the two remaining
tenant-scoped explorer read paths) and #557 (the extended-progression
shutdown-drain fix), then implements/proves both from Marten's side.

#5021 — the second pair of explorer reads #503 left untenanted:
- Override IEventStore.QueryByTagsAsync(tags, tenantId, ct) in
  DocumentStore.EventStoreExplorer.cs with the same two-model scoping PR #5020
  established for the stream reads: a conjoined single-database store bounds the
  outer mt_events scan with an e.tenant_id predicate on the AllowAnyTenant explorer
  session (the tag sub-selects match by the globally-unique seq_id, so the outer
  predicate discards cross-tenant seq_ids); a database-per-tenant / sharded store
  opens the session against the tenant's own database. Null delegates to the
  tenant-less overload, byte-identical to today.
- Honour EventQuery.TenantId in QueryEventStore.QueryEventsAsync: a set tenant scopes
  the query with TenantIsOneOf (overriding the session's own filter); a null tenant is
  left untouched so the pre-existing per-tenant paging contract is unchanged.
- Explorer tests: same tag / same event under two tenants on a conjoined store reads
  each tenant's slice in isolation.

#5024 Phase 3 — consume + prove the #557 shutdown fix:
- Bug_5024_extended_progression_survives_shutdown drives the real live-then-stopped
  daemon path (#5023 deliberately stopped doing this to de-flake #5008): start a live
  daemon, catch it up, StopAllAsync(), then issue an explicit WriteExtendedProgression
  and assert the row is NOT clobbered by a late "Stopped" heartbeat (Symptom 1) and no
  ObjectDisposedException reached the log on shutdown (Symptom 2). Deterministic
  because the upstream drain is now awaited; green across repeated runs.


Claude-Session: https://claude.ai/code/session_01JQ9NHbg31EWJmrQK9EN6i8

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant