mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* filer/mongodb: report a failed read as an error, not as a missing entry FindEntry logged any read error other than ErrNoDocuments and returned filer_pb.ErrNotFound, so a lookup that could not reach MongoDB answered that an existing entry was gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer/arangodb: report a failed read as an error, not as a missing entry FindEntry logged any ReadDocument error other than not-found and returned filer_pb.ErrNotFound, so a lookup that could not reach ArangoDB answered that an existing entry was gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * filer/rocksdb: report a failed read as an error, not as a missing entry FindEntry and KvGet checked for a missing value before the read error, and the value is nil after any failed read, so every read error came back as not found. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3: a versioned read whose lookup fails is not NoSuchKey In a versioned bucket, GetObject, HeadObject and GetObjectAttributes answered NoSuchKey for any error from getLatestObjectVersion, so a filer or store outage told clients that existing objects were gone. They now classify the error the way CopyObject's source lookup does: NoSuchKey only when the object is missing, 503 for transient failures and 500 otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * s3: keep the cause when the latest version file cannot be read doGetLatestObjectVersion formatted a failed read of the version file the pointer names with %v, so a transient failure there answered 500 instead of 503. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Prepare the compilation environment on linux
-
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
-
sudo apt-get update -qq
-
sudo apt-get install gcc-6 g++-6 libsnappy-dev zlib1g-dev libbz2-dev -qq
-
export CXX="g++-6" CC="gcc-6"
-
wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags2_2.0-1.1ubuntu1_amd64.deb
-
sudo dpkg -i libgflags2_2.0-1.1ubuntu1_amd64.deb
-
wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags-dev_2.0-1.1ubuntu1_amd64.deb
-
sudo dpkg -i libgflags-dev_2.0-1.1ubuntu1_amd64.deb
Prepare the compilation environment on mac os
brew install snappy
install rocksdb:
export ROCKSDB_HOME=/Users/chris/dev/rocksdb
git clone https://github.com/facebook/rocksdb.git $ROCKSDB_HOME
pushd $ROCKSDB_HOME
make clean
make install-static
popd
install gorocksdb
export CGO_CFLAGS="-I$ROCKSDB_HOME/include"
export CGO_LDFLAGS="-L$ROCKSDB_HOME -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd"
go get github.com/tecbot/gorocksdb
compile with rocksdb
cd ~/go/src/github.com/seaweedfs/seaweedfs/weed
go install -tags rocksdb