Metric frostfs_node_engine_container_objects_total{type="user"} returns 2 (on only one node) on container with REP2 #904

Closed
opened 2024-01-11 13:46:55 +00:00 by anikeev-yadro · 1 comment
Member

Expected Behavior

Metric frostfs_node_engine_container_objects_total{type="user"} should return 1 on two different nodes on container with REP2 policy.

Current Behavior

Metric frostfs_node_engine_container_objects_total{type="user"} returns 2 on only one node. On other nodes this metric in empty.

Steps to Reproduce (for bugs)

1.Create container

anikeev@NB-1670:~/neofs$ ./frostfs-cli.10 --rpc-endpoint 10.78.130.71:8080 --wallet wallet.json container create --policy "REP 2 IN X CBF 2 SELECT 2 FROM * AS X" --await
Enter password >
CID: 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
awaiting...
container has been persisted on sidechain

2.Put complex object

anikeev@NB-1670:~/neofs$ ls -lah /tmp/object100M-1.sample
-rw-r--r-- 1 anikeev anikeev 320M Sep  9  2022 /tmp/object100M-1.sample
anikeev@NB-1670:~/neofs$ ./frostfs-cli.10 --rpc-endpoint 10.78.130.71:8080 -w wallet.json object put --file /tmp/object100M-1.sample --cid 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
Enter password >
 335544310 / 335544310 [======================================================================================================================================================================================================================================================================================================================================================] 100.00% 40s
[/tmp/object100M-1.sample] Object successfully stored
  OID: 22DzZdJ3zG58HsmAY7eE6BnJZLMDsvBpa67Q8nvQDQB6
  CID: 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J

3.See metrics on nodes
Node1

service@aanikeev-node1:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="XdERGa8VW7SdGByzwkEw6i",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="XdERGa8VW7SdGByzwkEw6i",type="phy"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="mRMLLQTe2g1G24kPX15Fv",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="mRMLLQTe2g1G24kPX15Fv",type="phy"} 1

Node2

service@aanikeev-node2:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="BVAxCMN7LfTXL7xGrRoPtP",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="BVAxCMN7LfTXL7xGrRoPtP",type="phy"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="Ec3d5Aa2bfQtdUYVmCpJme",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="Ec3d5Aa2bfQtdUYVmCpJme",type="phy"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="GyNgdYz1pCvM14KFbWQTuH",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="GyNgdYz1pCvM14KFbWQTuH",type="phy"} 1

Node3

service@aanikeev-node3:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="8GF3PTmwCCWsaYSLFqcqME",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="8GF3PTmwCCWsaYSLFqcqME",type="phy"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="X1GjEZE4deoKqRPdWnBzem",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="X1GjEZE4deoKqRPdWnBzem",type="phy"} 1

Node4

service@aanikeev-node4:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="logic"} 4
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="phy"} 4
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="user"} 2
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="QaMAHzL2gF517qWrdYKjZp",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="QaMAHzL2gF517qWrdYKjZp",type="phy"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="VKy6wswmFA3Ca4PfDFfvUj",type="logic"} 1
frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="VKy6wswmFA3Ca4PfDFfvUj",type="phy"} 1

Regression

No

Version

FrostFS Storage node
Version: v0.37.0-rc.1-192-g79bebe4a
GoVersion: go1.20.1

Your Environment

Virtual
4 nodes

## Expected Behavior Metric `frostfs_node_engine_container_objects_total{type="user"}` should return 1 on two different nodes on container with `REP2` policy. ## Current Behavior Metric `frostfs_node_engine_container_objects_total{type="user"}` returns 2 on only one node. On other nodes this metric in empty. ## Steps to Reproduce (for bugs) 1.Create container ``` anikeev@NB-1670:~/neofs$ ./frostfs-cli.10 --rpc-endpoint 10.78.130.71:8080 --wallet wallet.json container create --policy "REP 2 IN X CBF 2 SELECT 2 FROM * AS X" --await Enter password > CID: 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J awaiting... container has been persisted on sidechain ``` 2.Put complex object ``` anikeev@NB-1670:~/neofs$ ls -lah /tmp/object100M-1.sample -rw-r--r-- 1 anikeev anikeev 320M Sep 9 2022 /tmp/object100M-1.sample anikeev@NB-1670:~/neofs$ ./frostfs-cli.10 --rpc-endpoint 10.78.130.71:8080 -w wallet.json object put --file /tmp/object100M-1.sample --cid 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J Enter password > 335544310 / 335544310 [======================================================================================================================================================================================================================================================================================================================================================] 100.00% 40s [/tmp/object100M-1.sample] Object successfully stored OID: 22DzZdJ3zG58HsmAY7eE6BnJZLMDsvBpa67Q8nvQDQB6 CID: 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J ``` 3.See metrics on nodes **Node1** ``` service@aanikeev-node1:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="XdERGa8VW7SdGByzwkEw6i",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="XdERGa8VW7SdGByzwkEw6i",type="phy"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="mRMLLQTe2g1G24kPX15Fv",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="mRMLLQTe2g1G24kPX15Fv",type="phy"} 1 ``` **Node2** ``` service@aanikeev-node2:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="BVAxCMN7LfTXL7xGrRoPtP",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="BVAxCMN7LfTXL7xGrRoPtP",type="phy"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="Ec3d5Aa2bfQtdUYVmCpJme",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="Ec3d5Aa2bfQtdUYVmCpJme",type="phy"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="GyNgdYz1pCvM14KFbWQTuH",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="GyNgdYz1pCvM14KFbWQTuH",type="phy"} 1 ``` **Node3** ``` service@aanikeev-node3:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="8GF3PTmwCCWsaYSLFqcqME",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="8GF3PTmwCCWsaYSLFqcqME",type="phy"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="X1GjEZE4deoKqRPdWnBzem",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="X1GjEZE4deoKqRPdWnBzem",type="phy"} 1 ``` **Node4** ``` service@aanikeev-node4:~$ curl -s localhost:6672 | grep frostfs_node_engine_container_objects_total |grep 9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="logic"} 4 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="phy"} 4 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="9sY5gPH8ByFbGVrkkH1TFG",type="user"} 2 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="QaMAHzL2gF517qWrdYKjZp",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="QaMAHzL2gF517qWrdYKjZp",type="phy"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="VKy6wswmFA3Ca4PfDFfvUj",type="logic"} 1 frostfs_node_engine_container_objects_total{cid="9LPLUFZpEmfidG4n44vi2cjXKXSqWT492tCvLJiJ8W1J",shard_id="VKy6wswmFA3Ca4PfDFfvUj",type="phy"} 1 ``` ## Regression No ## Version ``` FrostFS Storage node Version: v0.37.0-rc.1-192-g79bebe4a GoVersion: go1.20.1 ``` ## Your Environment Virtual 4 nodes
anikeev-yadro added the
bug
triage
labels 2024-01-11 13:46:55 +00:00
dstepanov-yadro self-assigned this 2024-01-11 13:48:16 +00:00
fyrchik added
frostfs-node
observability
and removed
triage
labels 2024-01-11 17:29:53 +00:00
fyrchik added this to the v0.38.0 milestone 2024-01-11 17:30:07 +00:00

Fixed the situation when user counter was incremented twice.

Fixed the situation when user counter was incremented twice.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#904
No description provided.