From 0b5ac445b676c123156648d2274d7565d7908dd0 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Tue, 6 May 2025 10:54:38 +0300 Subject: [PATCH] [#1689] engine: Use IO tag critical for engine reload Storage engine reload may cause IO operations (writecache flush), that should not be scheduled in some way. Change-Id: I7486a4646b4dd9bcedd2aa432b749e7f206b8b77 Signed-off-by: Dmitrii Stepanov --- pkg/local_object_storage/engine/control.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/local_object_storage/engine/control.go b/pkg/local_object_storage/engine/control.go index bf1649f6ea..39e532b6b2 100644 --- a/pkg/local_object_storage/engine/control.go +++ b/pkg/local_object_storage/engine/control.go @@ -9,8 +9,10 @@ import ( "sync" "git.frostfs.info/TrueCloudLab/frostfs-node/internal/logs" + "git.frostfs.info/TrueCloudLab/frostfs-node/internal/qos" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/blobstor" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/shard" + "git.frostfs.info/TrueCloudLab/frostfs-qos/tagging" "go.uber.org/zap" "golang.org/x/sync/errgroup" ) @@ -211,6 +213,7 @@ func (rCfg *ReConfiguration) AddShard(id string, opts []shard.Option) { // Reload reloads StorageEngine's configuration in runtime. func (e *StorageEngine) Reload(ctx context.Context, rcfg ReConfiguration) error { + ctx = tagging.ContextWithIOTag(ctx, qos.IOTagCritical.String()) type reloadInfo struct { sh *shard.Shard opts []shard.Option