lens/explorer: Add timeout for opening database #1420

Merged
fyrchik merged 1 commit from a-savchuk/frostfs-node:metabase-explorer-timeout into master 2024-10-08 08:11:24 +00:00
Member

Close #1415

Signed-off-by: Aleksey Savchuk a.savchuk@yadro.com

Close #1415 Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
a-savchuk added 1 commit 2024-10-08 07:18:11 +00:00
[#1415] lens/explorer: Add timeout for opening database
All checks were successful
DCO action / DCO (pull_request) Successful in 1m8s
Vulncheck / Vulncheck (pull_request) Successful in 2m12s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m23s
Build / Build Components (pull_request) Successful in 2m30s
Tests and linters / Lint (pull_request) Successful in 2m45s
Tests and linters / Run gofumpt (pull_request) Successful in 2m56s
Tests and linters / gopls check (pull_request) Successful in 3m15s
Tests and linters / Staticcheck (pull_request) Successful in 3m31s
Tests and linters / Tests (pull_request) Successful in 4m5s
Tests and linters / Tests with -race (pull_request) Successful in 7m23s
70eac25d4a
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
dstepanov-yadro requested changes 2024-10-08 07:21:11 +00:00
Dismissed
@ -71,6 +72,7 @@ func runTUI(cmd *cobra.Command) error {
func openDB(writable bool) (*bbolt.DB, error) {
db, err := bbolt.Open(vPath, 0o600, &bbolt.Options{
ReadOnly: !writable,
Timeout: 100 * time.Microsecond,

Millisecond I think:)

Millisecond I think:)
Author
Member

Fixed:)

Fixed:)
a-savchuk force-pushed metabase-explorer-timeout from 70eac25d4a to 14c5c466db 2024-10-08 07:22:50 +00:00 Compare
a-savchuk force-pushed metabase-explorer-timeout from 14c5c466db to 9625010563 2024-10-08 07:24:08 +00:00 Compare
a-savchuk changed title from WIP: lens/explorer: Add timeout for opening database to lens/explorer: Add timeout for opening database 2024-10-08 07:27:07 +00:00
dstepanov-yadro approved these changes 2024-10-08 07:31:15 +00:00
a-savchuk force-pushed metabase-explorer-timeout from 9625010563 to 0c49bca19c 2024-10-08 07:39:33 +00:00 Compare
fyrchik approved these changes 2024-10-08 08:11:20 +00:00
fyrchik merged commit 0c49bca19c into master 2024-10-08 08:11:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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#1420
No description provided.