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

db->CompactRange(nullptr, nullptr) sometime case a coredump #565

Closed
superwood opened this issue Apr 2, 2015 · 3 comments
Closed

db->CompactRange(nullptr, nullptr) sometime case a coredump #565

superwood opened this issue Apr 2, 2015 · 3 comments
Assignees

Comments

@superwood
Copy link

db->CompactRange(nullptr, nullptr) sometime case a coredump. And there are long time for reopen db . there are gdb info:
#0 0x000000376ac32925 in raise () from /lib64/libc.so.6
#1 0x000000376ac34105 in abort () from /lib64/libc.so.6
#2 0x000000376ac2ba4e in __assert_fail_base () from /lib64/libc.so.6
#3 0x000000376ac2bb10 in __assert_fail () from /lib64/libc.so.6
#4 0x000000000047dda2 in rocksdb::DBImpl::RunManualCompaction (this=this@entry=0x1828800, cfd=cfd@entry=0x17b0a80, input_level=input_level@entry=4,

output_level=output_level@entry=4, output_path_id=output_path_id@entry=0, begin=begin@entry=0x0, end=end@entry=0x0) at db/db_impl.cc:1881

#5 0x0000000000491a7d in rocksdb::DBImpl::CompactRange (this=0x1828800, column_family=, begin=0x0, end=0x0, reduce_level=false,

target_level=-1, target_path_id=0) at db/db_impl.cc:1671

#6 0x00000000005217bd in rocksdb::StackableDB::CompactRange (this=this@entry=0x1738630, column_family=, begin=,

end=end@entry=0x0, reduce_level=reduce_level@entry=false, target_level=-1, target_path_id=target_path_id@entry=0)
at ./include/rocksdb/utilities/stackable_db.h:132

#7 0x000000000049a00c in rocksdb::DB::CompactRange (this=0x1738630, begin=, end=0x0, reduce_level=false, target_level=,

target_path_id=0) at ./include/rocksdb/db.h:360
@siying siying self-assigned this Apr 6, 2015
@siying
Copy link
Contributor

siying commented Apr 6, 2015

@superwood can you tell us what was the last commit in your build? I want to find the line based on line number.

@superwood
Copy link
Author

the last commit:

commit 1fdd726
Author: Igor Canadi icanadi@fb.com
Date: Wed Oct 8 10:04:12 2014 -0700

Hotfix RocksDB 3.5

Summary: We'll release this as 3.5.1

Test Plan: Tested in master

Reviewers: tnovak, yhchiang, sdong, ljin

Reviewed By: ljin

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D24639

@igorcanadi
Copy link
Collaborator

This issue was fixed by 2fb1fea in September of last year. Any reason you're not running newer version of RocksDB?

Also, when running in production, please compile rocksdb by using make release. That will turn off assertions and greatly improve performance.

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

3 participants