Add timeout for opening database in frostfs-lens meta explore #1415

Closed
opened 2024-10-06 11:40:04 +00:00 by a-savchuk · 1 comment
Member

When running frostfs-lens meta explore, the command hangs if the database is already open by another process, and there's no clear indication of why the command is stalled.

Describe the solution you'd like

  • Use the Timeout option when opening the database
  • Add a CLI option --timeout to configure the wait time, e.g. --timeout=10s
  • Set a default value for the --timeout option
## Is your feature request related to a problem? Please describe. When running `frostfs-lens meta explore`, the command hangs if the database is already open by another process, and there's no clear indication of why the command is stalled. ## Describe the solution you'd like - Use the `Timeout` option when opening the database - Add a CLI option `--timeout` to configure the wait time, e.g. `--timeout=10s` - Set a default value for the `--timeout` option
a-savchuk added the
enhancement
frostfs-lens
good first issue
triage
labels 2024-10-06 11:40:04 +00:00
fyrchik added the
P3
label 2024-10-07 07:12:33 +00:00
fyrchik added this to the v0.44.0 milestone 2024-10-07 07:12:37 +00:00
a-savchuk was assigned by fyrchik 2024-10-07 07:12:42 +00:00
Owner

No need to parametrize this, it is a timeout for obtaining a lock on the database.
Take constant from other places in code (100ms).

No need to parametrize this, it is a timeout for obtaining a lock on the database. Take constant from other places in code (100ms).
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#1415
No description provided.