Alexey Serbin has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10997


Change subject: WIP: KUDU-2509 fix use-after-free in case of WAL replay error
......................................................................

WIP: KUDU-2509 fix use-after-free in case of WAL replay error

Fixed use-after-free mistake in case of an failure to apply commit
or replicate message from WAL while bootstrapping a tablet.  The
use-after-free condition happened in some rare cases.

In addition, reduced number of memory allocations while reading WAL
entries from disk during tablet bootstrap.  Also did other unsorted
minor changes in tablet_bootstrap.cc and around like replacing
gscoped_ptr with unique_ptr, etc.

WIP: need to add good repro scenario for the bug, which does not seem to
     be very easy.

Change-Id: I11373b1cc34d9e2e0181bee2d3841b49022218ed
---
M src/kudu/consensus/log_util.cc
M src/kudu/consensus/log_util.h
M src/kudu/integration-tests/log_verifier.cc
M src/kudu/tablet/tablet_bootstrap.cc
M src/kudu/tools/tool_action_common.cc
M src/kudu/tools/tool_action_local_replica.cc
6 files changed, 144 insertions(+), 133 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I11373b1cc34d9e2e0181bee2d3841b49022218ed
Gerrit-Change-Number: 10997
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <aser...@cloudera.com>

Reply via email to