featurebase/test
Seebs cf97a0dcb8 overhaul: switch over to using QueryContext
We switch everything to use QueryContext/QueryRead/etc instead
of Qcx/Tx.

We drop the short_txkey subpackage (it's now handled by either
keys or querycontext).

We drop all the dbshard stuff, and all the tx/txfactory stuff.

We remove all the things that related to the old "Block" concept,
which was mostly used by the anti-entropy code, but had one
fragmentary usage left in the ImportRoaringOverwrite case of
ImportRoaring. That's replaced by using a rewriter that deletes
all bits (not just bits in specific columns) from an existing
thing, but writes in new bits. Actually we could probably do that
better with a custom "eradicate-rewriter" that doesn't try to
be clever, and just eliminates things.

This includes a number of minor bug fixes that were
exposed by getting the testing to work. For example:
* When checking whether an operation "requires write", we
  now consider a Delete a kind of a Write, because it is.
* Several tests were relying on the fact that writes through
  Qcx were being committed whether or not the Qcx was ever
  told to finish. With QueryContext, you actually have to
  reach a Commit() or the writes don't happen (except for
  special cases in Delete).
* Replaced a lot of panics with t.Fatalf in tests.

There's also some minor staticcheck fixes, like deleting the
unused "db" member of a boltdb transaction wrapper.
2023-01-11 12:57:56 -06:00
..
cluster.go overhaul: switch over to using QueryContext 2023-01-11 12:57:56 -06:00
disco.go refactor testing to share clusters more often 2022-09-02 11:40:37 -05:00
field.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
glue.go drop excessively verbose messages used while debugging something long ago 2022-09-23 16:56:27 -05:00
handler.go add copyright notice back in 2021-12-10 11:01:04 -06:00
holder.go overhaul: switch over to using QueryContext 2023-01-11 12:57:56 -06:00
index.go overhaul: switch over to using QueryContext 2023-01-11 12:57:56 -06:00
main_test.go use testhook test cleanup 2022-09-26 12:33:43 -05:00
pilosa.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
pilosa_test.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
transaction.go Add DAX - full list of squashed commits below 2022-11-16 11:19:40 -06:00