Skip to content

test: properly close iterator in assertKeyValues()#68

Merged
erikgrinaker merged 1 commit intomasterfrom
erik/test-iterator-close
Mar 9, 2020
Merged

test: properly close iterator in assertKeyValues()#68
erikgrinaker merged 1 commit intomasterfrom
erik/test-iterator-close

Conversation

@erikgrinaker
Copy link
Contributor

Fixes deadlocks with backends that have locking iterators (namely BoltDB).

@erikgrinaker erikgrinaker merged commit 5db388c into master Mar 9, 2020
@erikgrinaker erikgrinaker deleted the erik/test-iterator-close branch March 9, 2020 21:57
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

nACK

require.NoError(t, iter.Error())
actual[string(iter.Key())] = iter.Value()
}
iter.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

better to move it to 501 (+ defer) because 504 can return early?

Copy link
Contributor Author

@erikgrinaker erikgrinaker Mar 10, 2020

Choose a reason for hiding this comment

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

Sure, good call

nddeluca referenced this pull request in Kava-Labs/tm-db Jan 8, 2024
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.0 to 1.56.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.56.0...v1.56.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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