You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kudu.apache.org by "Todd Lipcon (Code Review)" <ge...@cloudera.org> on 2016/03/03 22:56:59 UTC

[kudu-CR] tablet: avoid opening CFile writers for empty flushes

Hello Mike Percy,

I'd like you to do a code review.  Please visit

    http://gerrit.cloudera.org:8080/2441

to review the following change.

Change subject: tablet: avoid opening CFile writers for empty flushes
......................................................................

tablet: avoid opening CFile writers for empty flushes

I was looking at some failures of alter_table-randomized-test and
noticed that bootstrap is very slow in this test case. One of the
reasons is that the test triggers a lot of flushes of empty rowsets
as it replays alter tables. In one failed test run, there were 1395
instances of 'all input rows were GCed!'. These empty flushes were
wasting some IO to open cfile writers, write headers, and then delete
them.

This patch refactors some common code in the flush path between
AlterTable and normal flushes, and adds a short circuit for the case
of flushing an empty MRS.

Change-Id: I629f6a283f9963c0bb8e9be72d6aa4210f0aec72
---
M src/kudu/tablet/tablet.cc
M src/kudu/tablet/tablet.h
2 files changed, 45 insertions(+), 51 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/41/2441/1
-- 
To view, visit http://gerrit.cloudera.org:8080/2441
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I629f6a283f9963c0bb8e9be72d6aa4210f0aec72
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Todd Lipcon <to...@apache.org>
Gerrit-Reviewer: Mike Percy <mp...@apache.org>