-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pool: Drop opening no-op sessions #623
Conversation
Signed-off-by: Leonard Lyubich <[email protected]>
`Table` contains no session token and signature. Signed-off-by: Leonard Lyubich <[email protected]>
7dd7021
to
543ebdc
Compare
|
||
func (x objectSearchOnlyClientWrapper) getClient() (sdkClientInterface, error) { return x.c, nil } | ||
|
||
func TestPool_ObjectSearchInit(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why duplicating prologue in these? Likely we can have less code and still separate subtests for different operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer independent tests for methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a feature of the pool that allows autosession. We removing it here, do we need to handle sessions ourselves again?
Sessions are still there where they're needed. It's just that most requests can be handled fine without sessions. |
Currently, there are only two NeoFS operations supporting sessions: object creation (PUT) and removal (DELETE). The latter is essentially creation of the tombstone object. Sessions are used in cases when client requests trusted storage node to form an object and sign it via so-called private session key. Public part of this key is signed by original client in the attached session token. This makes no sense for any other op because server does nothing on behalf of the client, it just executes his request. Previously, pool of NeoFS clients could open session for any object op incl. reading ones. As said, this broke nothing, but was completely redundant. This drops session opening for any op except PUT/DELETE to increase pool's efficiency and relieve network pressure. Signed-off-by: Leonard Lyubich <[email protected]>
543ebdc
to
12a4bf2
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #623 +/- ##
==========================================
+ Coverage 53.93% 54.13% +0.19%
==========================================
Files 164 164
Lines 19222 19193 -29
==========================================
+ Hits 10368 10390 +22
+ Misses 8415 8358 -57
- Partials 439 445 +6 ☔ View full report in Codecov by Sentry. |
No description provided.