Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert DB is open before createStreamKeyRaw #9014

Closed
wants to merge 17 commits into from

Conversation

gfukushima
Copy link
Contributor

PR Description

This PR adds a validation before create a stream to avoid the SIGSEGV we were getting on shutdown using RocksDB.

Fixed Issue(s)

Fixes #8939

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
Signed-off-by: Gabriel Fukushima <[email protected]>
@@ -160,6 +165,7 @@ public Stream<ColumnEntry<Bytes, Bytes>> streamRaw(final KvStoreColumn<?, ?> col
@Override
@MustBeClosed
public Stream<Bytes> streamKeysRaw(final KvStoreColumn<?, ?> column) {
assertOpen();
Copy link
Contributor

Choose a reason for hiding this comment

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

this is checked in createStreamRaw, we can let it go through here i think...

@@ -60,6 +64,7 @@ public class RocksDbInstance implements KvStoreAccessor {

@Override
public <T> Optional<T> get(final KvStoreVariable<T> variable) {
assertOpen();
Copy link
Contributor

Choose a reason for hiding this comment

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

this one shouldnt be needed? it's asserted in getRaw...

@gfukushima
Copy link
Contributor Author

closing this as a few improvements here were merged on other PRs

@gfukushima gfukushima closed this Jan 31, 2025
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.

JVM crash when restarting teku (24.10.3) running rocksDB
3 participants