-
Notifications
You must be signed in to change notification settings - Fork 312
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
fix(bulkload): bulkload cause many node coredump #2077
base: master
Are you sure you want to change the base?
fix(bulkload): bulkload cause many node coredump #2077
Conversation
34cede1
to
fdd04eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruojieranyishen Thanks for the update!
a7608ec
to
020b105
Compare
40ae94b
to
46d15af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ruojieranyishen Thanks for the contribution!
@ruojieranyishen Please resolve the conflicts. |
…sst_file (apache#2006) replica_bulk_loader::clear_bulk_load_states function cannot cancel already downloading sst task, which access `_metadata.files` references. But clear_bulk_load_states function will clear `_metadata.files`. It's cause core dump. I use a copy of `_metadata.files` to solve this problem.
71c5392
to
8fc37fd
Compare
@acelyc111 Sorry, I thought I had passed the CI a few days ago. I want to submit some code in Pegasus-spark. Do I need to migrate Pegasus-spark to this project? |
Welcome to do this! |
What problem does this PR solve?
Related issue:
#2006
What is changed and how does it work?
Avoid using _metadata.files reference ,and add a read_lock
Tests
Because bulkload imports a large amount of data.
Test 1: bulkload files miss four sst files.
After fix : Table ingest_p4_10G partition1 is missing files, and the table ballot does not increase after bulkload.
Test 2: Bulkload Download stage restart a node
After fix : No continuous core dumps on multiple nodes.
Side effects
Locking
_metadata.files
may incur a performance penalty.