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

Crash in db_bench if using custom environments and fillseqdeterministic #6986

Open
mrambacher opened this issue Jun 16, 2020 · 0 comments
Open

Comments

@mrambacher
Copy link
Contributor

If using a custom environment in db_bench, the program may crash on exit. The problem is caused if we have an open environment and a database at exit. In this case, the environment is destroyed (via the std::shared_ptr env_guard) prior to the database being destroyed. The database may have some background jobs still running (for things like compaction) that dereference the environment that was just deleted.

To reproduce this, I was running db_bench against an AWS/RocksDB Cloud environment and running with --benchmark=fillseq,fillseqdeterministic.

Note that it does not happen if fillseqdeterministic is executed by itself (since the command exits before opening the database).

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

No branches or pull requests

1 participant