frostfs-cli object put with static session returned error: "return code: 2 output: panic: send on closed channel" (complex object) #263

Closed
opened 2023-04-18 06:11:40 +00:00 by anikeev-yadro · 1 comment
Member

**Autotest: **testsuites.session_token.test_static_object_session_token.TestObjectStaticSession#test_static_session_put_verb

Expected Behavior

frostfs-cli object put with static session should put object without error.

Current Behavior

frostfs-cli object put with static session returned error: return code: 2 output: panic: send on closed channel
The same test with simple object wors correctly.

Steps to Reproduce (for bugs)

1.Create container

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.160.45:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ab89deb1-2331-4cda-abfa-b82063dc5c5a.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X'
RETCODE: 0

STDOUT:
container ID: 6UuUVCQyAhrJmZyeqh5XZrLewT9bQLCxmsJV4KBLmREy
awaiting...
container has been persisted on sidechain

STDERR:

Start / End / Elapsed	 05:12:35.886370 / 05:12:45.298555 / 0:00:09.412185

2.Create session
image
3.Sign session token

COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml util sign session-token --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ab89deb1-2331-4cda-abfa-b82063dc5c5a.json' --from '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/0c2d4433-9513-4ec8-88fb-0cadadfdb9d2' --to '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3'
RETCODE: 0

STDOUT:
signed session token saved in /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3

STDERR:

Start / End / Elapsed	 05:15:46.770607 / 05:15:47.163061 / 0:00:00.392454

4.Try to PUT object

05:18:03 [INFO] Command: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.160.182:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/f3ba1d9e-5976-4cdb-84bd-dae2853d6172.json' --cid '6UuUVCQyAhrJmZyeqh5XZrLewT9bQLCxmsJV4KBLmREy' --file '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ef8e0456-877d-4688-9a01-697b0a4ebe2a' --no-progress --session '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3'
Error:
return code: 2 
Output: panic: send on closed channel

goroutine 53 [running]:
git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/pkg/tracing.(*clientStream).RecvMsg(0xc00165de00, {0xd418c0?, 0xc00046a700?})
	git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/pkg/tracing/grpc_internal.go:117 +0xbf
git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.streamWrapper.ReadMessage.func1()
	git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:22 +0x2d
git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.(*streamWrapper).withTimeout.func1()
	git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:44 +0x29
created by git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.(*streamWrapper).withTimeout
	git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:43 +0xaa

Version

0.0.1-405-g7d39fecc

Your Environment

virtual

**Autotest: **testsuites.session_token.test_static_object_session_token.TestObjectStaticSession#test_static_session_put_verb ## Expected Behavior `frostfs-cli object put` with static session should put object without error. ## Current Behavior `frostfs-cli object put` with static session returned error: `return code: 2 output: panic: send on closed channel` The same test with simple object wors correctly. ## Steps to Reproduce (for bugs) 1.Create container ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml container create --rpc-endpoint '172.26.160.45:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ab89deb1-2331-4cda-abfa-b82063dc5c5a.json' --await --policy 'REP 2 IN X CBF 1 SELECT 4 FROM * AS X' RETCODE: 0 STDOUT: container ID: 6UuUVCQyAhrJmZyeqh5XZrLewT9bQLCxmsJV4KBLmREy awaiting... container has been persisted on sidechain STDERR: Start / End / Elapsed 05:12:35.886370 / 05:12:45.298555 / 0:00:09.412185 ``` 2.Create session ![image](/attachments/4b9e92eb-764d-48fd-9244-07e5f279590a) 3.Sign session token ``` COMMAND: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml util sign session-token --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ab89deb1-2331-4cda-abfa-b82063dc5c5a.json' --from '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/0c2d4433-9513-4ec8-88fb-0cadadfdb9d2' --to '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3' RETCODE: 0 STDOUT: signed session token saved in /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3 STDERR: Start / End / Elapsed 05:15:46.770607 / 05:15:47.163061 / 0:00:00.392454 ``` 4.Try to PUT object ``` 05:18:03 [INFO] Command: frostfs-cli --config /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/wallet_config.yml object put --rpc-endpoint '172.26.160.182:8080' --wallet '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/f3ba1d9e-5976-4cdb-84bd-dae2853d6172.json' --cid '6UuUVCQyAhrJmZyeqh5XZrLewT9bQLCxmsJV4KBLmREy' --file '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/ef8e0456-877d-4688-9a01-697b0a4ebe2a' --no-progress --session '/jenkins/workspace/sbercloud_functional_tests_nightly/tmp.289l7kWUyo/frostfs-testcases/TemporaryDir/a8d7d511-0bba-44bd-a8ed-cebc3e6e1fa3' Error: return code: 2 Output: panic: send on closed channel goroutine 53 [running]: git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/pkg/tracing.(*clientStream).RecvMsg(0xc00165de00, {0xd418c0?, 0xc00046a700?}) git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/pkg/tracing/grpc_internal.go:117 +0xbf git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.streamWrapper.ReadMessage.func1() git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:22 +0x2d git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.(*streamWrapper).withTimeout.func1() git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:44 +0x29 created by git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/rpc/client.(*streamWrapper).withTimeout git.frostfs.info/TrueCloudLab/frostfs-api-go/v2@v2.15.0/rpc/client/stream_wrapper.go:43 +0xaa ``` ## Version ``` 0.0.1-405-g7d39fecc ``` ## Your Environment virtual
anikeev-yadro added the
triage
label 2023-04-18 06:11:40 +00:00
dstepanov-yadro was assigned by fyrchik 2023-04-18 06:36:54 +00:00

Resolved

Resolved
fyrchik added this to the v0.37.0 milestone 2023-04-19 10:55:03 +00:00
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#263
No description provided.