fibercrypto / fibercrypto/skycoin

Measure db bucket length can take a long time / stall

Open
#2,197 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

On occasion the "Visor init" section will stall or take a long time; the only apparent cause of this is the bucket `Len` measurement. It is likely stalling on the `bkt.Stats` call. Review boltdb docs, consider coreos/bbolt and if necessary we'll need to count the bucket size manually by maintaining a counter.

This stall has appeared on daemons on remote servers and is interfering with deployments and upgrades.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Visor init section that measures a bucket with bkt.Len and investigate the bkt.Stats call. Review the boltdb documentation and coreos/bbolt behavior, then verify that bucket-length measurement no longer stalls remote daemons while still reporting the correct size.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.