CCF icon indicating copy to clipboard operation
CCF copied to clipboard

Add test for historical query given branch ledger

Open eddyashton opened this issue 4 years ago • 1 comments

Could be implemented as an end to end test

  1. Start a three nodes network.
  2. Isolate the primary.
  3. Run transactions against both the old primary and the new, enough to produce a chunk on each side.
  4. Copy the chunk from the old primary to one of the nodes in the partition
  5. Attempt to run a historical query on that node in the range covered by the chunk, and confirm that it fails

Originally posted by @achamayou in https://github.com/microsoft/CCF/issues/3041#issuecomment-934210296

May also be possible to implement in the unit test, though would require plumbing to set the views for the stub ledger/store.

eddyashton avatar Oct 05 '21 12:10 eddyashton

This seems equivalent to checking that we only serve from committed transactions, and so doesn't warrant a separate test. @eddyashton to confirm.

achamayou avatar May 15 '23 09:05 achamayou