28 Commits (ce3bc818a877b02585eb27a3d7cbfbb3502e5d88)

Author SHA1 Message Date
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528) 3 years ago
Sunil Thaha a484a83d4a
fix: panic when checkpoint directory is empty (#9687) 3 years ago
beorn7 a1e595edac Fix two trivial lint warnings 3 years ago
johncming b882d2b7c7
tsdb/wal: Avoid writing closed channel. (#9566) 3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra' 3 years ago
Julien Pivotto 73255e15f6 Address golint failures from revive 3 years ago
Ganesh Vernekar ee7e0071d1
Snapshot in-memory chunks on shutdown for faster restarts (#7229) 3 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log 4 years ago
Chris Marchbanks 7c7dafc321
Do not snappy encode if record is too large (#8790) 4 years ago
Chris Marchbanks bedcd88343
Compress records before checking segment size (#8501) 4 years ago
Marco Pracucci 63be30dcee
Fixed WAL corruption on partial writes within a page (#8125) 4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087) 4 years ago
Ganesh Vernekar 2255b6f62f
Refactor WAL.Segments method to be part of the wal package (#6477) 4 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043) 5 years ago
Brad Walker 3348930df5
Replace fileutil.ReadDir with ioutil.ReadDir (#7029) (#7033) 5 years ago
Ben Kochie 269e7c8091
Fix golint issues. 5 years ago
Ganesh Vernekar e64a149984
Close Head in DBReadOnly.FlushWAL (#7022) 5 years ago
zhulongcheng e813f60fd6
tsdb: fix sequence check for WAL segments (#7032) 5 years ago
李国忠 261cbab8e9
remove Unused parameter 'reg' in wal.Open function (#6941) 5 years ago
johncming c30abf1e2b tsdb/wal: remove unused argument. 5 years ago
John McBride 669592a2c4 Exports metric for WAL write errors (#6647) 5 years ago
Dipack P Panjabi ce7bab04dd Compute WAL size and use it during retention size checks (#5886) 5 years ago
johncming 612f9cb361 tsdb/wal: pull out wal metrics separately as tsdb.DB (#5957) 5 years ago
Erfan Besharat 9336c01dfd Add methods to fetch page's buf data in tsdb WAL (#5967) 5 years ago
陈谭军 50d453b3c3 fix-up tsdb-typo (#5954) 5 years ago
johncming 7d43feb03f tsdb/wal: some small refactoring for easier reading (#5930) 5 years ago
Ganesh Vernekar 5ecef3542d
Cleanup after merging tsdb into prometheus 5 years ago
Ganesh Vernekar 7cf09b0395
Moving tsdb into its own subdirectory 5 years ago
YaoZengzeng 104566ae53 enhancement: 1. don't flush the page if it's last fragment of the record 5 years ago
Krasi Georgiev 6f9bbc7253
Open db in Read only mode (#588) 5 years ago
Chris Marchbanks b40cc43958 Provide option to compress WAL records (#609) 6 years ago
beorn7 90a7612df3 Make objectives of Summaries explicit 6 years ago
Brian Brazil be4edbe174
Start a new WAL segement on head truncation. (#605) 6 years ago
Callum Styan 562e93e8e6 Always create a new clean segment when starting the WAL. (#608) 6 years ago
Callum Styan bce663e1d9 Export the current segment index as a metic. (#601) 6 years ago
Krasi Georgiev 96a87845cc
fix wal panic when page flush fails. (#582) 6 years ago
Krasi Georgiev 5512826f13
make Close methods for the querier safe to call more than once. (#581) 6 years ago
Krasi Georgiev 8eeb70fee1
remove Fsync workaround for macos. (#574) 6 years ago
Goutham Veeramachaneni 10d395259b Avoid creation of 0 sized segments. (#527) 6 years ago
Tom Wilkie 77d5a7d47a
LiveReader can get into an infinite loop on corrupt WALs. (#524) 6 years ago
Tom Wilkie bc3b0bd429
Test to corrupt segments mid-WAL, repair and check we can read the correct number of records. (#528) 6 years ago
Callum Styan 89ee5aaed4 clarify which segments are deleted when we find a corrupted segment (#522) 6 years ago
Callum Styan 3929359302
add live reader for WAL (#481) 6 years ago
Krasi Georgiev 8d991bdc1e
Delete temp checkpoint folder on error. (#415) 6 years ago
glutamatt 22e3aeb107 Add WALSegmentSize as an option of tsdb creation (#450) 6 years ago
Krasi Georgiev 2962202ed3
fix windows tests (#469) 6 years ago
Krasi Georgiev 48efdf8b81
refactor NewSegmentsRangeReader to take multi WAL ranges (#449) 6 years ago
Krasi Georgiev 0493efb7c5
repair wal when the record cannot be decoded (#453) 6 years ago
Krasi Georgiev 24520727a4
return an error when the last wal segment record is torn. (#451) 6 years ago
Krasi Georgiev 3385571ddf
buffer-panic when reading a record after recPageTerm (#429) 6 years ago