aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_vacuum_test.go
AgeCommit message (Collapse)AuthorFilesLines
2025-06-19pass volume version when creating a volumechrislu1-2/+2
2022-11-14Lazy loading (#3958)Guo Lei1-2/+2
* types packages is imported more than onece * lazy-loading * fix bugs * fix bugs * fix unit tests * fix test error * rename function * unload ldb after initial startup * Don't load ldb when starting volume server if ldbtimeout is set. * remove uncessary unloadldb * Update weed/command/server.go Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> * Update weed/command/volume.go Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: guol-fnst <goul-fnst@fujitsu.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2022-08-23optimiz commitig compact (#3388)Guo Lei1-6/+31
* optimiz vacuuming volume * fix bugx * rename parameters * fix conflict * change copyDataBasedOnIndexFile to an instance method * close needlemap * optimiz commiting Vacuum volume for leveldb index * fix bugs * fix leveldb loading bugs * refactor * fix leveldb loading bug * add leveldb recovery * add test case for levelDB * modify test case to cover all the new branches * use one tmpNm instead of two instances * refactor * refactor * move setWatermark to the end * add test for watermark and updating leveldb * fix error logic * refactor, add test * check nil before close needlemapeer add test case fix metric bug * add tests, fix bugs * adjust log level remove wrong test case refactor * avoid duplicate updating metric for leveldb index
2022-08-09delete minor unreachable code (#3423)Abirdcfly1-1/+0
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-3/+3
2022-02-14test: use `T.TempDir` to create temporary test directoryEng Zer Jun1-6/+1
The directory created by `T.TempDir` is automatically removed when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.TempDir Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-10-24volume vacuum: avoid timeout with streaming progress reportChris Lu1-1/+1
fix https://github.com/chrislusf/seaweedfs/issues/2396
2021-10-14refactor: move from io/ioutil to io and os packageEng Zer Jun1-3/+2
The io/ioutil package has been deprecated as of Go 1.16, see https://golang.org/doc/go1.16#ioutil. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-08-13Only when tailing volume, the zero-ed cookie should skip checking.Chris Lu1-1/+1
This only happens when checkCookie == false and fsync == false.
2021-08-08volume: support concurrent download data size limitChris Lu1-1/+1
2020-11-27volume: add "-dir.idx" option for separate index storageChris Lu1-2/+2
fix https://github.com/chrislusf/seaweedfs/issues/1265
2020-08-19fix testsChris Lu1-1/+1
2020-08-18refactoring to typed SizeChris Lu1-2/+2
Go is amazing with refactoring!
2020-05-07fix volume vacuum test unitzhangsong1-2/+2
2020-04-11volume server: accept fsync=true in write requestsChris Lu1-1/+1
2020-03-11volume: follow compactionBytePerSecondChris Lu1-1/+1
related to https://github.com/chrislusf/seaweedfs/issues/1108
2019-12-24compaction changed to .idx based deletionChris Lu1-1/+1
2019-12-23shell: add ec.decode commandChris Lu1-2/+3
2019-09-12Change joeslay paths to chrislusf pathsj.laycock1-2/+2
2019-09-05use 0 instead of false for max memory flagj.laycock1-2/+2
2019-09-03Rename mem_map to mMap, remove some in_memory variables being passed around, ↵j.laycock1-2/+2
added MemoryMapped member to volume struct
2019-09-02Swap imports to use joeslayj.laycock1-2/+2
2019-05-03volume: add option to limit compaction speedChris Lu1-3/+7
2019-04-21volume: support http status 304 for the same file idChris Lu1-1/+1
2019-04-18refactoringChris Lu1-8/+10
2019-03-25WIPChris Lu1-1/+1
2018-12-31reduce file seek when writingChris Lu1-1/+1
2018-12-22compact map fix bug when iteratingChris Lu1-1/+1
2018-07-21go fmtChris Lu1-1/+1
2018-07-08fix all testsChris Lu1-2/+3
2018-07-07adjust log levelChris Lu1-2/+2
2018-06-24add support for extra super block infoChris Lu1-2/+2
2018-06-23increase test sizeChris Lu1-2/+2
2018-06-23fix error for deleted files during compactionChris Lu1-26/+38
deletion during commit may cause trouble when make up the difference during commitCompact()
2018-06-23add compaction testChris Lu1-0/+97
2016-10-07comment UT case霍晓栋1-12/+12
2016-10-07comment UT case霍晓栋1-0/+2
2016-10-07makediff func with UT case霍晓栋1-0/+53