Reply
Explorer
Posts: 19
Registered: ‎09-13-2017

Re: Data replication in Kudu

Hi adar,

 

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?

 

Best regards,

Tony

 

Cloudera Employee
Posts: 12
Registered: ‎11-12-2013

Re: Data replication in Kudu

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.

Highlighted
Explorer
Posts: 19
Registered: ‎09-13-2017

Re: Data replication in Kudu

Hi adar,

Thanks for your quick reply.

Best regards,
Tony
Announcements