1
0
Fork 0

17 Commits (master)

Author SHA1 Message Date
Philip O'Toole 3ddeebbba4 Improve Store restart test 8 months ago
Philip O'Toole 5c5b226303 Working 9 months ago
Philip O'Toole 1262de501a Set trailing logs for user-requested snapshot 9 months ago
Philip O'Toole ad916270d2 Bring go mod import path into compliance 9 months ago
Philip O'Toole e6b703a0c0 Remove ability to trigger chunked-loading
The low-level Raft system still recognizes the Chunk command, so that
this system can interop with older versions, which might still have a
Chunk command in logs.
9 months ago
Philip O'Toole 0ef35f1cbc Fix restart issue after chunked-loading 9 months ago
Philip O'Toole b931e387be First pass at removing in-memory support 1 year ago
Philip O'Toole 02b7ea7955 Close Store so temp storage can be cleaned up 1 year ago
Philip O'Toole e47c7a1b7b Stress-test snapshotting 1 year ago
Philip O'Toole 21dff4a68c Remove on-disk-startup control
With the move to WAL and "synchronous mode" to OFF, on-disk startup
times are very close to in-memory. There is no need for this control
anymore and it complicates the start-up code.
1 year ago
Philip O'Toole e845e0c243 Fix remaining expression test cases 1 year ago
Eng Zer Jun 93eebc6e77
test: fix failing store_restart.test.go on Windows
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Eng Zer Jun 5141eff5fc
test: use `T.TempDir` to create temporary test directory
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Philip O'Toole 58adcb87c9 Fix Store unit tests 3 years ago
Philip O'Toole 6509070ce8 More STRONG queries to deal with races 3 years ago
Philip O'Toole f3a9b79b34 Close obsolete Listeners during Store testing 3 years ago
Philip O'Toole 33bee34f89 More Store restart testing 3 years ago