[
https://issues.apache.org/jira/browse/CASSANDRA-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733833#action_12733833
]
Jonathan Ellis commented on CASSANDRA-213:
------------------------------------------
Some thoughts on bootstrap:
For this ticket let's just get the code we inherited from FB working: split the
sstables up, send the right segments to the new node, (eventually) clean up.
I think that the existing approach of moving or copying the files into a
special to-send directory is the wrong one. Eventually we want the old node to
keep serving requests until the new node has the data. (Not for this ticket
though, I will make another.) At which point moving things around will disrupt
normal operations. But if we split it and leave it in the old data dir, then
we can scan it for its beginning and end keys easily enough to see if it needs
to be part of the sendfile operation.
So for this ticket, I recommend that the bootstrap consist of
0) get rid of the special bootstrap staging area code
1) anticompaction
2) iterate over sstable files and see if they are in the right range
3) send the files
4) assemble the files (index + bloom filter + data) into sstable objects on
the bootstraped node
we have 1 and 3 and a start at 4; we need 2 which is relatively small. and the
other parts will probably need debugging. :)
make sense?
> complete bootstrap code
> -----------------------
>
> Key: CASSANDRA-213
> URL: https://issues.apache.org/jira/browse/CASSANDRA-213
> Project: Cassandra
> Issue Type: New Feature
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Sammy Yu
> Priority: Critical
> Fix For: 0.4
>
>
> The bootstrap code sends files from
> DatabaseDescriptor.getBootstrapFileLocation to the node that is joining the
> ring, but nothing actually puts files into that directory.
> There are probably other bugs / omissions we will find as we flesh this out.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.