Syncronize token expiration behaviour between session key storage and SDK #1229
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1229
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Session token considered expired at the same epoch on client and server side.
SDK declares that token is declined, when current epoch is strictly greater than token expiration epoch.
Current Behavior
Session key storage uses greater or equal comparison to check expiration.
Possible Solution
Use the same comparison in Node and SDK.
Steps to Reproduce (for bugs)
Context
SDK Pool component tries to update token with 1 epoch before expiration, but with this issue it tries to update at the exact expiration epoch, which produce some
session token not found
andsession token is expired
errors on client side.Regression
Don't think so.
Your Environment
frostfs-node v0.38.6