seaweedfs/weed
Chris Lu d4566d4aaa
more solid weed mount (#4089)
* compare chunks by timestamp

* fix slab clearing error

* fix test compilation

* move oldest chunk to sealed, instead of by fullness

* lock on fh.entryViewCache

* remove verbose logs

* revert slat clearing

* less logs

* less logs

* track write and read by timestamp

* remove useless logic

* add entry lock on file handle release

* use mem chunk only, swap file chunk has problems

* comment out code that maybe used later

* add debug mode to compare data read and write

* more efficient readResolvedChunks with linked list

* small optimization

* fix test compilation

* minor fix on writer

* add SeparateGarbageChunks

* group chunks into sections

* turn off debug mode

* fix tests

* fix tests

* tmp enable swap file chunk

* Revert "tmp enable swap file chunk"

This reverts commit 985137ec47.

* simple refactoring

* simple refactoring

* do not re-use swap file chunk. Sealed chunks should not be re-used.

* comment out debugging facilities

* either mem chunk or swap file chunk is fine now

* remove orderedMutex  as *semaphore.Weighted

not found impactful

* optimize size calculation for changing large files

* optimize performance to avoid going through the long list of chunks

* still problems with swap file chunk

* rename

* tiny optimization

* swap file chunk save only successfully read data

* fix

* enable both mem and swap file chunk

* resolve chunks with range

* rename

* fix chunk interval list

* also change file handle chunk group when adding chunks

* pick in-active chunk with time-decayed counter

* fix compilation

* avoid nil with empty fh.entry

* refactoring

* rename

* rename

* refactor visible intervals to *list.List

* refactor chunkViews to *list.List

* add IntervalList for generic interval list

* change visible interval to use IntervalList in generics

* cahnge chunkViews to *IntervalList[*ChunkView]

* use NewFileChunkSection to create

* rename variables

* refactor

* fix renaming leftover

* renaming

* renaming

* add insert interval

* interval list adds lock

* incrementally add chunks to readers

Fixes:
1. set start and stop offset for the value object
2. clone the value object
3. use pointer instead of copy-by-value when passing to interval.Value
4. use insert interval since adding chunk could be out of order

* fix tests compilation

* fix tests compilation
2023-01-02 23:20:45 -08:00
..
cluster remove old raft servers if they don't answer to pings for too long (#3398) 2022-08-23 23:18:21 -07:00
command more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
ftpd move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
glog rotate log files 2022-12-11 21:05:58 -08:00
iamapi refactor: Directory readability (#3665) 2022-09-14 10:11:31 -07:00
images go fmt 2022-09-14 23:06:44 -07:00
mount more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
mq avoid race conditions for OnPeerUpdate (#3525) 2022-08-26 10:18:49 -07:00
notification go fmt 2022-09-14 23:06:44 -07:00
operation more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
pb support enable/disable vacuum (#4087) 2022-12-28 01:36:44 -08:00
query move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
remote_storage Replace dashes with underscores in x-amz-meta headers (#3965) 2022-11-10 07:09:53 -08:00
replication more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
s3api Fix ide warning (#4082) 2022-12-26 00:03:47 -08:00
security go fmt 2022-09-14 23:06:44 -07:00
sequence move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
server more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
shell more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
static Change filer UI icon from picture to icon font. 2022-04-08 15:07:56 +08:00
stats [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
storage Include name/mime in ReadAllNeedles (#4005) 2022-11-23 15:59:38 -08:00
topology support enable/disable vacuum (#4087) 2022-12-28 01:36:44 -08:00
util 3.37 2022-12-11 21:08:06 -08:00
wdclient remove volume server tcp client 2022-10-23 13:15:03 -07:00
Makefile Update Makefile - use binary in current directory (#4027) 2022-12-01 14:09:14 -08:00
weed.go rotate log files 2022-12-11 21:05:58 -08:00