frostfs-node/pkg/local_object_storage/engine
Leonard Lyubich ec04e787aa [#922] storage engine: Support operation blocking
There is a need to disable execution of local data operation on storage
engine in runtime. If storage engine ops are blocked, node will act like
always but all local object operations will be denied.

Implement `BlockExecution` / `ResumeExecution` methods on `StorageEngine`
which blocks / resumes the execution of data ops. Wait for the completion of
all operations executed at the time of the call. Return error passed to
`BlockExecution` from all data-related methods until `ResumeExecution` call.
Make `Close` to block operations as well.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-11-12 17:28:38 +03:00
..
container.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
control.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
delete.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
engine.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
engine_test.go [#674] storage engine: Fix unit test failed on shard pool NPE 2021-10-14 10:20:39 +03:00
exists.go [#922] storage engine: Remove unused Exists method 2021-11-12 17:28:38 +03:00
get.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
head.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
head_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
info.go [#189] localstorage: Implement DumpInfo method 2020-12-11 17:19:37 +03:00
inhume.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
inhume_test.go [#570] *: Use generator of test container IDs from API Go lib 2021-05-31 20:45:15 +03:00
metrics.go [#426] Put prometheus behind pkg/metrics 2021-03-17 10:58:00 +03:00
put.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
range.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
select.go [#922] storage engine: Support operation blocking 2021-11-12 17:28:38 +03:00
shards.go [#674] storage engine: Use per-shard worker pools for PUT operation 2021-10-14 10:20:39 +03:00