seaweedfs/weed/command
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
..
scaffold filer.store.mysql: Use utf8mb4 instead of 3 byte UTF8 (#4094) 2023-01-01 05:07:53 -08:00
autocomplete.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
backup.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
benchmark.go remove volume server tcp client 2022-10-23 13:15:03 -07:00
command.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
compact.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
download.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
export.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer.go [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
filer_backup.go [filer.backup] add retention_duration (#3941) 2022-11-04 00:34:40 -07:00
filer_cat.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_copy.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer_meta_backup.go filer prefer volume server in same data center (#3405) 2022-08-04 17:35:00 -07:00
filer_meta_tail.go also migrate jsonpb 2022-08-17 12:42:03 -07:00
filer_meta_tail_elastic.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_meta_tail_non_elastic.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_remote_gateway.go filer prefer volume server in same data center (#3405) 2022-08-04 17:35:00 -07:00
filer_remote_gateway_buckets.go refactor 2022-09-11 21:53:15 -07:00
filer_remote_sync.go simplify a bit 2022-09-10 14:18:28 -07:00
filer_remote_sync_dir.go fix delete key panic of remote sync dir (#3770) 2022-10-01 02:33:47 -07:00
filer_replication.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_sync.go more detailed logs 2022-12-17 13:18:35 -08:00
filer_sync_jobs.go [sync] override amz storage class, None to delete (#3639) 2022-09-10 14:15:42 -07:00
filer_sync_std.go go fmt 2021-09-01 02:45:42 -07:00
filer_sync_windows.go filer.backup: escape colon from path on windows 2021-05-29 06:45:27 -07:00
fix.go [fix] add param for ignore error (#3918) 2022-10-28 06:59:39 -07:00
fuse.go Fix mount -t weed with extra options (#3807) 2022-10-08 11:25:19 -07:00
iam.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
imports.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
master.go [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
master_follower.go refactor(various): Listner -> Listener readability improvements (#3672) 2022-09-14 11:59:55 -07:00
mount.go mount: accept all extra mount options 2022-09-30 08:40:37 -07:00
mount_darwin.go remove dead code 2022-02-27 03:03:19 -08:00
mount_linux.go add more logs 2022-08-31 23:16:05 -07:00
mount_notsupported.go remove dead code 2022-02-27 03:03:19 -08:00
mount_std.go mount: accept all extra mount options 2022-09-30 08:40:37 -07:00
mq_broker.go wip note 2022-07-30 09:36:27 -07:00
s3.go [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
scaffold.go docs(command): readability fixes (#3686) 2022-09-15 01:33:04 -07:00
scaffold_test.go fix test 2019-11-28 18:44:27 -08:00
server.go [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
shell.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
update.go go fmt 2022-09-14 23:06:44 -07:00
update_full.go go fmt 2022-09-14 23:06:44 -07:00
upload.go remove old raft servers if they don't answer to pings for too long (#3398) 2022-08-23 23:18:21 -07:00
version.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume.go [metrics] Add the ability to control bind ip (#4012) 2022-11-24 10:22:59 -08:00
volume_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
webdav.go add -filer.path to webdav command (#4061) 2022-12-17 20:07:02 -08:00