[#239] pool/tree: Update tree service client

Update tree service to fix split tree problem.
Tree intermediate nodes can be duplicated so we must handle this.

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2024-07-11 17:18:28 +03:00
parent e18b916231
commit 7c06cdff2d
9 changed files with 2226 additions and 243 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
REVISION="b3695411d907c3c65485bab04f9ff8479a72906b"
REVISION="00a88b99368d7141380f65d9cb446f1e4771ba01"
echo "tree service revision ${REVISION}"
@ -9,11 +9,6 @@ echo "tree service revision ${REVISION}"
FILES=$(curl -s https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/${REVISION}/pkg/services/tree | sed -n "s,.*\"/TrueCloudLab/frostfs-node/src/commit/${REVISION}/pkg/services/tree/\([^.]*\.pb\.go\)\".*,\1,p")
for file in $FILES; do
if [[ $file == *"frostfs"* ]]; then
echo "skip '$file'"
continue
else
echo "sync '$file' in tree service"
fi
echo "sync '$file' in tree service"
curl -s "https://git.frostfs.info/TrueCloudLab/frostfs-node/raw/commit/${REVISION}/pkg/services/tree/${file}" -o "./pool/tree/service/${file}"
done