mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 05:15:00 +08:00
9405eaefdb
Run two servers with volumes and fillers: server -dir=Server1alpha -master.port=11000 -filer -filer.port=11001 -volume.port=11002 server -dir=Server1sigma -master.port=11006 -filer -filer.port=11007 -volume.port=11008 Run Active-Passive filler.sync: filer.sync -a localhost:11007 -b localhost:11001 -isActivePassive Upload file to 11007 port: curl -F file=@/Desktop/9.xml "http://localhost:11007/testFacebook/" If we request a file on two servers now, everything will be correct, even if we add data to the file and upload it again: curl "http://localhost:11007/testFacebook/9.xml" EQUALS curl "http://localhost:11001/testFacebook/9.xml" However, if we change the already existing data in the file (for example, we change the first line in the file, reducing its length), then this file on the second server will not be valid and will not be equivalent to the first file Снимок экрана 2022-02-07 в 14 21 11 This problem occurs on line 202 in the filer_sink.go file. In particular, this is due to incorrect mapping of chunk names in the DoMinusChunks function. The names of deletedChunks do not match the chunks of existingEntry.Chunks, since the first chunks come from another server and have a different addressing (name) compared to the addressing on the server where the file is being overwritten. Deleted chunks are not actually deleted on the server to which the file is replicated. |
||
---|---|---|
.. | ||
abstract_sql | ||
cassandra | ||
elastic/v7 | ||
etcd | ||
hbase | ||
leveldb | ||
leveldb2 | ||
leveldb3 | ||
mongodb | ||
mysql | ||
mysql2 | ||
postgres | ||
postgres2 | ||
redis | ||
redis2 | ||
redis3 | ||
rocksdb | ||
sqlite | ||
configuration.go | ||
entry_codec.go | ||
entry.go | ||
filechunk_manifest_test.go | ||
filechunk_manifest.go | ||
filechunks2_test.go | ||
filechunks_read_test.go | ||
filechunks_read.go | ||
filechunks_test.go | ||
filechunks.go | ||
filer_buckets.go | ||
filer_conf_test.go | ||
filer_conf.go | ||
filer_delete_entry.go | ||
filer_deletion.go | ||
filer_notify_append.go | ||
filer_notify_test.go | ||
filer_notify.go | ||
filer_on_meta_event.go | ||
filer_rename.go | ||
filer_search.go | ||
filer.go | ||
filerstore_hardlink.go | ||
filerstore_translate_path.go | ||
filerstore_wrapper.go | ||
filerstore.go | ||
meta_aggregator.go | ||
meta_replay.go | ||
read_remote.go | ||
read_write.go | ||
reader_at_test.go | ||
reader_at.go | ||
reader_pattern.go | ||
remote_mapping.go | ||
remote_storage_test.go | ||
remote_storage.go | ||
s3iam_conf_test.go | ||
s3iam_conf.go | ||
stream.go | ||
topics.go |