seaweedfs/weed/filer
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
..
abstract_sql refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
arangodb refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
cassandra refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
elastic/v7 go fmt 2022-09-14 23:06:44 -07:00
etcd refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
hbase refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
leveldb refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
leveldb2 refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
leveldb3 refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
mongodb refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
mysql filer.store.mysql: Use utf8mb4 instead of 3 byte UTF8 (#4094) 2023-01-01 05:07:53 -08:00
mysql2 filer.store.mysql: Use utf8mb4 instead of 3 byte UTF8 (#4094) 2023-01-01 05:07:53 -08:00
postgres Allow postgresql to use standard environment variables for connection (#3413) 2022-08-07 00:58:53 -07:00
postgres2 go fmt 2022-09-14 23:06:44 -07:00
redis refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
redis2 refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
redis3 refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
redis_lua refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
rocksdb refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
sqlite serialize sqlite operations 2022-10-12 00:03:27 -07:00
store_test move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
tikv move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
ydb refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
configuration.go filer store: skip disabled location specific filer store initialization 2022-11-13 23:30:23 -08:00
entry.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
entry_codec.go also migrate jsonpb 2022-08-17 12:42:03 -07:00
filechunk_group.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunk_group_test.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunk_manifest.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunk_manifest_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filechunk_section.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunks.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunks2_test.go refactor filer proto chunk variable from mtime to modified_ts_ns 2022-10-28 12:53:19 -07:00
filechunks_read.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunks_read_test.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filechunks_test.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer.go refactor: Directory readability (#3665) 2022-09-14 10:11:31 -07:00
filer_buckets.go filer: remove replication, collection, disk_type info from entry metadata 2022-06-06 00:39:35 -07:00
filer_conf.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_conf_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_delete_entry.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_deletion.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_hardlink.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_notify.go metadata skip reading un-available logs 2022-12-19 11:30:50 -08:00
filer_notify_append.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
filer_notify_test.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_on_meta_event.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
filer_rename.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_search.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_hardlink.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_translate_path.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_wrapper.go Fix hardlink counting (#4042) 2022-12-08 10:50:57 -08:00
interval_list.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
interval_list_test.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
meta_aggregator.go avoid data race on doSubscribeToOneFiler/ma.filer.UniqueFilerEpoch (#3566) 2022-09-01 09:01:47 -07:00
meta_replay.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
read_remote.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
read_write.go refactor filer_pb.Entry and filer.Entry to use GetChunks() 2022-11-15 06:33:36 -08:00
reader_at.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
reader_at_test.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
reader_cache.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
reader_pattern.go Fix a few data races when reading files in mount (#3527) 2022-08-26 16:41:37 -07:00
remote_mapping.go move proto package 2022-08-17 12:05:07 -07:00
remote_storage.go move proto package 2022-08-17 12:05:07 -07:00
remote_storage_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
s3iam_conf.go associate Account and Identity by accountId (#3754) 2022-09-28 13:25:59 -07:00
s3iam_conf_test.go s3: fix configuring IAM for the same user 2022-08-30 09:37:52 -07:00
stream.go more solid weed mount (#4089) 2023-01-02 23:20:45 -08:00
topics.go rename filer2 to filer 2020-09-01 00:21:19 -07:00