Skip to content

close boltDBIterator#3627

Merged
melekes merged 2 commits intodevelopfrom
anton/fix-bbolt-iterator
May 6, 2019
Merged

close boltDBIterator#3627
melekes merged 2 commits intodevelopfrom
anton/fix-bbolt-iterator

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented May 6, 2019

Refs #3610 (comment)

If we do not close, other txs will be stuck forever.

  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGELOG_PENDING.md

Refs #3610 (comment)

If we do not close, other txs will be stuck forever.
@melekes melekes requested review from ebuchman and xla as code owners May 6, 2019 15:20
@melekes
Copy link
Contributor Author

melekes commented May 6, 2019

We should probably write more tests, but this can be done later in this particular case.

@codecov-io
Copy link

codecov-io commented May 6, 2019

Codecov Report

Merging #3627 into develop will increase coverage by 0.18%.
The diff coverage is 77.77%.

@@             Coverage Diff             @@
##           develop    #3627      +/-   ##
===========================================
+ Coverage    63.31%   63.49%   +0.18%     
===========================================
  Files          218      218              
  Lines        18253    18341      +88     
===========================================
+ Hits         11557    11646      +89     
+ Misses        5737     5732       -5     
- Partials       959      963       +4
Impacted Files Coverage Δ
libs/db/boltdb.go 62.94% <77.77%> (-0.54%) ⬇️
privval/socket_listeners.go 89.65% <0%> (-3.45%) ⬇️
config/config.go 65.56% <0%> (-0.04%) ⬇️
node/id.go 0% <0%> (ø) ⬆️
consensus/state.go 79.97% <0%> (+0.23%) ⬆️
blockchain/pool.go 80.59% <0%> (+0.65%) ⬆️
blockchain/reactor.go 72.42% <0%> (+0.93%) ⬆️
consensus/reactor.go 72.72% <0%> (+1.41%) ⬆️
p2p/pex/pex_reactor.go 84.56% <0%> (+3.56%) ⬆️
libs/events/events.go 98.05% <0%> (+4.85%) ⬆️

@liamsi
Copy link
Contributor

liamsi commented May 6, 2019


// WARNING: Any concurrent writes (Set, SetSync) will block until the Iterator
// is closed.
// WARNING: Any concurrent writes (Set, SetSync) or reads will block until the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a Delete not also a write op? I think, I'd remove (Set, SetSync) from the comment, or, add all write ops and read ops, too.

@melekes melekes merged commit 60b8334 into develop May 6, 2019
@melekes melekes deleted the anton/fix-bbolt-iterator branch May 6, 2019 17:37
@melekes melekes mentioned this pull request May 7, 2019
36 tasks
@melekes melekes mentioned this pull request May 30, 2019
44 tasks
brapse pushed a commit to brapse/tendermint that referenced this pull request Jun 5, 2019
Refs tendermint#3610 (comment)

If we do not close, other txs will be stuck forever.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants