Alex Vanin
1a2b8ab59d
[ #1278 ] neofs-node: Cache IRFetcher
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit e4a8ed589b
)
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-03-30 14:35:31 +03:00
Alex Vanin
5180e467f8
[ #1278 ] neofs-node: Use global cached netmap source in services
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit be6ae3c066
)
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-03-30 14:34:34 +03:00
Evgenii Stratonikov
a193db3a3d
[ #1204 ] shard: Save ID in the metabase
...
`AddShard` must return shard id, so we temporarily open metabase
there.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-03-30 11:08:24 +03:00
Evgenii Stratonikov
49ae91d720
Release v0.27.6
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-03-28 14:26:08 +03:00
Evgenii Stratonikov
b087d7ead3
[ #1261 ] neofs-cli: Fix help message for acl extended create
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit ae8e38cace
)
2022-03-28 13:55:17 +03:00
Alex Vanin
e4f357561e
[ #1259 ] neofs-cli: Use more cmd.PrintErr*()
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit c8b585b991
)
2022-03-28 13:55:13 +03:00
Alex Vanin
437687f78d
[ #1259 ] neofs-cli: Return non-zero exit code in acl extended create
command failures
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit 44138adacf
)
2022-03-28 13:55:11 +03:00
Alex Vanin
1cfa1763e9
[ #1200 ] cli: Mention filter key prefixes in eACL creation command
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit 09db5e387d
)
2022-03-28 13:54:55 +03:00
Alex Vanin
3de3c102fc
[ #1270 ] neofs-node: Add timeout for grpc GracefulStop()
...
GracefulStop() may be blocked until all server-side streams
are finished. There is no control over such streams yet, so
application may be frozen in shutdown stage.
Naive solution is to add timeout for GracefulStop(). At this
point healthy connection will be finished and unhealthy
connections will be terminated by Stop().
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit 683439970a
)
2022-03-28 13:54:20 +03:00
Evgenii Stratonikov
679df13924
[ #1236 ] neofs-node: Neofs-node: Remove mutex from ttlNetCache
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit f0ec35478a
)
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
73d367e287
[ #1236 ] neofs-node: Remove mutex from lruNetCache
...
We already use thread-safe LRU and mutex shouldn't be taken while making
network requests.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 22b1208a20
)
2022-03-28 13:48:44 +03:00
Pavel Karpy
5f54fd5dc8
[ #1223 ] amd: Fix subnet node command
...
Added `-w` flag.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
(cherry picked from commit 697c12a5e9
)
2022-03-28 13:48:44 +03:00
Alex Vanin
fe3be92c89
[ #1230 ] replicator: Improve error log
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
(cherry picked from commit e38d7dda6b
)
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
2977552a19
[ #1186 ] engine: Allow to skip metabase in GetRange
...
Similarly to `Get`. Also fix a bug where `ErrNotFound` is returned
instead of `ErrRangeOutOfBounds`.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 1fe9cd4d36
)
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
48b5d2cb91
[ #1186 ] blobstor: Fix comment
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 2b5550ccf6
)
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
baad9d06a1
[ #1186 ] blobstor: Unify errors for Get
and GetRangeBig
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit b33fb0f739
)
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
b5bcf90fa1
[ #1186 ] engine: Read object directly from blobstor in case of conflicts
...
Metabase is expected to contain actual information about objects stored
in shard. If the object is present in metabase but is missing from
blobstor, peform an additional attempt to fetch it directly without
consulting metabase. Such a situation is unexpected, so error counter
is increased for the shard which has the object in the metabase. We
don't increase error counter for the shard which has the object in
blobstor, because some garbage can be expected there. In this
implementation there is no overhead for objects which are really
missing, i.e. are not present in any metabase.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 69e1e6ca20
)
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-03-28 13:48:44 +03:00
Evgenii Stratonikov
ce169491ed
[ #1188 ] metabase: log PUT / DELETE operations
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 6e6f3648d2
)
2022-03-28 13:48:44 +03:00
ZhangTao1596
58f2354057
[ #1180 ] ir/internal: Fix audit range hash type
...
Signed-off-by: ZhangTao1596 <zhangtao@ngd.neo.org>
(cherry picked from commit dd0e10d306
)
2022-03-28 13:03:12 +03:00
Evgenii Stratonikov
25b827e0fd
[ #1090 ] neofs-adm: Add history of commands to a storage configurator
...
It also persists between sessions.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit b3b3b8b20f
)
2022-03-28 13:01:45 +03:00
Evgenii Stratonikov
00180a7ecf
[ #1090 ] neofs-adm: add interactive configurator for storage node
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
(cherry picked from commit 8263582dde
)
2022-03-28 13:01:45 +03:00
Pavel Karpy
1f825a467a
[ #1136 ] cli: Allow usage of empty wallet passwords
...
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
(cherry picked from commit c7a8c762e0
)
2022-03-28 13:01:33 +03:00
Alex Vanin
35dec2f494
Release v0.27.5
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-01-31 14:32:44 +03:00
Evgenii Stratonikov
a6cb608dc6
[ #1023 ] .golangci.yml: remove outdated govet
settings
...
Placement policy has been moved to SDK recently.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
476528361e
[ #1023 ] *: fix linter errors
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
eb99b65134
[ #1023 ] morph/event: remove notaryRequest
from subnet.Delete
...
Subnet removal is done by owner.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
9d3609d4c1
[ #1023 ] neofs-node/reputation: remove epoch
from common parameters
...
It is unused and is present in both of `Announce*TrustPrm`.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
f96bb8d3b8
[ #1023 ] innerring/subnet: fix subnet removal event processing
...
Caught by `unused` linter.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
a82ac0edcd
[ #1023 ] services/object: remove TTL from Get
parameters
...
It was unused an should be provided as a `CallOption` instead.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
312071b9bd
[ #1023 ] .golangci.yml: add unused
linter
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 13:01:58 +03:00
Evgenii Stratonikov
5a03a14940
[ #1094 ] metabase: move Select
filters sanity check outside of transaction
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
651adf46c6
[ #1094 ] blobovnicza: calculate size in Init
properly
...
If pre-existing blobovnicza is initialized, it's size should be updated
even if all buckets are in place.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
418b553920
[ #1094 ] shard: remove TODO for shard mode description
...
It was added back in 2fb379b7
when we had many shard modes. Now we have
only two and comments for constants are rather descriptive.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
ed7c732676
[ #1094 ] shard: unify collection of expired objects
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
fbb95cff14
[ #1094 ] services/object: remove some FIXME comments
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
1bdbd6ed22
[ #1094 ] eacl/v2: preallocate slice in headersFromObject
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:40 +03:00
Evgenii Stratonikov
3407fef799
[ #1086 ] neofs-cli: add command for shard restore
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:14 +03:00
Evgenii Stratonikov
18cfd8b042
[ #1086 ] services/control: implement RestoreShard
RPC
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:14 +03:00
Evgenii Stratonikov
2ec4a3c897
[ #1086 ] neofs-cli: add command for shard dump
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:14 +03:00
Evgenii Stratonikov
0e60b1d6c9
[ #1086 ] services/control: implement DumpShard
RPC
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:14 +03:00
Evgenii Stratonikov
aa53418119
[ #1086 ] services/control: fix comments
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-31 12:36:14 +03:00
Pavel Karpy
679c922e0c
[ #1120 ] cli: Fix printing config file in verbose
mode
...
It was broken since `initConfig` was made before every execution of the
command and flags have not been read by cobra yet, so it was impossible to
print config file path if `verbose` flag was set in command line not in
config file.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-31 11:24:16 +03:00
Alex Vanin
08e83a2bc7
[ #1092 ] neofs-cli: Add 'acl extended create' command
...
Follows neofs-cli refactor scheme from #1074
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-01-28 10:39:18 +03:00
Evgenii Stratonikov
e976a55358
config: replace use_write_cache
with writecache.enabled
...
This is the way things are done with `grpc.tls` and in neo-go.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-27 16:44:56 +03:00
Leonard Lyubich
20b3ff84b3
[ #1110 ] ir/container: Fix check of SetEACL
operation
...
In previous implementation IR incorrectly verified `SetEACL` event of
`Container` contract. The incorrect behavior could be reproduced in two
ways:
1. Create container using session, and perform `SetEACL` operation
with a key that is different from the session one.
2. Create container using session, and perform `SetEACL` w/o a
session, but sign it using session key from the `Put` operation.
The problem was in the `checkSetEACL` validation method of IR container
processor. It always used session token used for container creation
during session ownership check.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-01-27 16:37:24 +03:00
Pavel Karpy
6f338c660c
[ #1038 ] adm: Do not cut data
args in NNS
...
This reverts commit 185a2827cc
.
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
2022-01-27 12:08:36 +03:00
Evgenii Stratonikov
adb80bebb2
[ #1085 ] shard: rename Evacuate
to Dump
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-26 15:28:13 +03:00
Evgenii Stratonikov
d06425c852
[ #1085 ] shard: allow to ignore errors in Evacuate
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-26 15:28:13 +03:00
Evgenii Stratonikov
36eebb5932
[ #1085 ] writecache: allow to ignore errors during iteration
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-26 15:28:13 +03:00
Evgenii Stratonikov
cd75638ce3
[ #1085 ] blobstor: allow to ignore errors during iteration
...
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-01-26 15:28:13 +03:00