Commit Graph

40 Commits

Author SHA1 Message Date
Joseph Doherty
c466127d09 batch37 task7 port wave T1 mapped tests and verify statuses 2026-03-01 00:08:35 -05:00
Joseph Doherty
a9ccb66e35 batch37 task6 implement group E pre-ack snapshot and restore 2026-02-28 23:54:28 -05:00
Joseph Doherty
a805af1bea batch37 task5 implement group D consumer registry and interest state 2026-02-28 23:47:48 -05:00
Joseph Doherty
6290b17a82 batch37 task4 implement group C message carriers and consumer signaling 2026-02-28 23:45:07 -05:00
Joseph Doherty
07b494544d batch37 task3 implement group B direct-get and pipeline 2026-02-28 23:42:47 -05:00
Joseph Doherty
f0ea92b8dd batch37 task2 implement group A message header methods 2026-02-28 23:37:09 -05:00
Joseph Doherty
f38c0e6b6e batch36 task5-6 group-d-e and test waves t3-t4 2026-02-28 23:20:30 -05:00
Joseph Doherty
856cd17554 batch36 task4 stream mirror lifecycle helpers 2026-02-28 23:02:51 -05:00
Joseph Doherty
3c974fbe55 batch36 task3 group-b primitives checkpoint 2026-02-28 22:59:08 -05:00
Joseph Doherty
82c2f4ed1c batch36 task2 implement group-a lifecycle primitives 2026-02-28 22:52:06 -05:00
Joseph Doherty
14e79f33ee batch31: implement raft group A catchup foundations 2026-02-28 20:41:21 -05:00
Joseph Doherty
8bc4dfa58c feat(batch30): implement raft group-c run loop behaviors 2026-02-28 20:17:45 -05:00
Joseph Doherty
ed1b62d6a3 feat(batch30): implement raft group-b snapshot helpers 2026-02-28 20:09:24 -05:00
Joseph Doherty
492030bd4b feat(batch30): implement raft group-a server integration 2026-02-28 20:06:17 -05:00
Joseph Doherty
89a6479458 test(batch17): resolve tracked tests with pass evidence or explicit deferrals 2026-02-28 19:45:46 -05:00
Joseph Doherty
f36bc3111b feat(batch15): complete group 1 msgblock/consumerfilestore 2026-02-28 17:03:31 -05:00
Joseph Doherty
cda4c0c5b6 feat(batch13): port filestore all-last-seqs and filter-is-all helpers 2026-02-28 14:49:00 -05:00
Joseph Doherty
3d2638dfaa feat(batch13): port filestore filtered-pending query helpers 2026-02-28 14:45:14 -05:00
Joseph Doherty
430ba17f42 feat(batch13): port filestore skip-first-block query helpers 2026-02-28 14:36:58 -05:00
Joseph Doherty
50a11f5182 test(batch8): resolve jetstream direct get up-to-time mapping 2026-02-28 11:58:16 -05:00
Joseph Doherty
59085ba9ea feat(batch8): implement store enum parity group B 2026-02-28 11:53:44 -05:00
Joseph Doherty
cfb49ef477 feat(batch8): implement store codec/helpers parity group A 2026-02-28 11:49:13 -05:00
Joseph Doherty
0ad5ccaf05 feat(batch5): verify mapped jetstream error tests 2026-02-28 09:15:04 -05:00
Joseph Doherty
dc90025a37 feat(batch5): implement jetstream error constructors group11 2026-02-28 09:05:27 -05:00
Joseph Doherty
a15c8131cc feat(batch5): implement jetstream error constructors group10 2026-02-28 09:00:03 -05:00
Joseph Doherty
eee3a431dd feat(batch5): implement jetstream error constructors group09 2026-02-28 08:55:28 -05:00
Joseph Doherty
b96d3ae182 feat(batch5): implement jetstream error constructors group08 2026-02-28 08:51:21 -05:00
Joseph Doherty
a587e8e347 feat(batch5): implement jetstream error constructors group07 2026-02-28 08:47:21 -05:00
Joseph Doherty
aab2814201 feat(batch5): implement jetstream error constructors group06 2026-02-28 08:43:42 -05:00
Joseph Doherty
bc085a7da1 feat(batch5): implement jetstream error constructors group05 2026-02-28 08:40:12 -05:00
Joseph Doherty
e914b468b6 feat(batch5): implement jetstream error constructors group04 2026-02-28 08:36:38 -05:00
Joseph Doherty
802e3d6576 feat(batch5): implement jetstream error constructors group03 2026-02-28 08:32:48 -05:00
Joseph Doherty
35488a2b68 feat(batch5): implement jetstream error constructors group02 2026-02-28 08:29:20 -05:00
Joseph Doherty
9f30fe6033 feat(batch5): implement jetstream error helpers and group01 constructors 2026-02-28 08:25:56 -05:00
Joseph Doherty
c2a73b49f7 feat(batch2): verify memstore remainder features 2026-02-28 07:17:01 -05:00
Joseph Doherty
a660e38575 Implement deferred WaitQueue, DiskAvailability, and NoOpCache behavior with tests 2026-02-27 09:58:37 -05:00
Joseph Doherty
8849265780 Eliminate PortTracker stub backlog by implementing Raft/file-store/stream/server/client/OCSP stubs and adding coverage. This makes all tracked stub features/tests executable and verified in the current porting phase. 2026-02-27 08:56:26 -05:00
Joseph Doherty
9552f6e7e9 fix(p7-09): move DirectoryStoreTests to Accounts/, add missing PriorityPolicy test case 2026-02-26 20:10:04 -05:00
Joseph Doherty
f0faaffe69 feat(p7-09): JetStream unit tests — versioning (12), dirstore (12), batching/errors deferred (66)
Port session P7-09: add tests from jetstream_versioning_test.go (T:1791–1808),
dirstore_test.go (T:285–296), jetstream_batching_test.go (T:716–744),
jetstream_errors_test.go (T:1381–1384), and accounts_test.go (T:80–110).

- JetStreamVersioningTests: 12 active unit tests + 6 deferred (server-required)
- DirectoryStoreTests: 12 filesystem tests using fake JWTs (no NKeys dependency)
- JetStreamBatchingTests: 29 deferred stubs (all require running JetStream cluster)
- JetStreamErrorsTests: 4 deferred stubs (NewJS* factories not yet ported)
- accounts_test.go T:80–110: 31 deferred (all use RunServerWithConfig)

Fix DirJwtStore.cs expiration bugs:
  - Use DateTimeOffset.UtcNow.UtcTicks (not Unix-relative ticks) for expiry comparison
  - Replace in-place JwtItem mutation with new-object replacement so DrainStale
    can detect stale heap entries via ReferenceEquals check

Add JetStreamVersioning.cs methods: SetStaticStreamMetadata,
SetDynamicStreamMetadata, CopyStreamMetadata, SetStaticConsumerMetadata,
SetDynamicConsumerMetadata, SetDynamicConsumerInfoMetadata, CopyConsumerMetadata.

Tests: 725 pass, 53 skipped/deferred, 0 failures.
DB: +24 complete, +66 deferred.
2026-02-26 20:02:00 -05:00
Joseph Doherty
0950580967 feat(p7-06): port memstore & store interface tests (38 tests)
Add JetStreamMemoryStoreTests (27 tests, T:2023-2056) and
StorageEngineTests (11 tests, T:2943-2957) covering the JetStream
memory store and IStreamStore interface. Fix 10 bugs in MemStore.cs
discovered during test authoring: FirstSeq constructor, Truncate(0)
SubjectTree reset, PurgeEx subject-filtered implementation,
UpdateConfig MaxMsgsPer enforcement, FilteredStateLocked partial
range scan, StoreRawMsgLocked DiscardNewPer, MultiLastSeqs maxSeq
fallback scan + LastNeedsUpdate recalculation, AllLastSeqs
LastNeedsUpdate recalculation, LoadLastLocked LazySubjectState
recalculation, GetSeqFromTime ts==last equality, and timestamp
precision (100-ns throughout). 20 tests deferred (internal fields,
benchmarks, TTL, filestore-only). All 701 unit tests pass.
2026-02-26 19:35:58 -05:00