01-02-2018 05:09 PM
I think I already get the answer from your post. Maybe the following explanation can clarify my original question.
When I insert data into kudu, only write to a majority's write-ahead logs. The internal flushing and/or compacting for each tablet will generate a set of CFiles as replicas.
And all scan only need to scan the replica (a set of CFiles which contain the base data and the delta data) and the MemRowset to return the query result. Is this right?
But for the tablet coping, it will only copy the wal or both the wal and the replica will be copied?
01-03-2018 01:07 PM
Quick note: Kudu calls the "set of CFiles which contain the base data and the delta data" a DiskRowSet.
But your understanding is correct: during a scan, the contents of the MemRowSet and some DiskRowSets are scanned for data. During a tablet copy, both the WAL segments and the CFiles are copied.