You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Hao Hao (Code Review)" <ge...@cloudera.org> on 2017/12/13 00:37:22 UTC

[kudu-CR] KUDU-1704: add READ OWN WRITES scan mode

Hello David Ribeiro Alves, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

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

to look at the new patch set (#2).

Change subject: KUDU-1704: add READ_OWN_WRITES scan mode
......................................................................

KUDU-1704: add READ_OWN_WRITES scan mode

This patch adds a new read mode READ_OWN_WRITES on tserver. In this mode,
the server will pick an arbitrarily snapshot in the past, subject to
the propagated timestamp bound, and perform a read. Moreover, the chosen
snapshot timestamp is not returned back to the client.

The major difference between READ_AT_SNAPSHOT scan without a timestamp
and READ_OWN_WRITES scan is the latter will choose the newest timestamp
within the staleness bound that allows execution of the reads without
blocking by the in-flight transactions. READ_OWN_WRITES mode is not
repeatable. However, it allows client local read-your-writes.

Change-Id: I84ddb981a1a0f199d4e66f5d5097318f8c785a48
---
M src/kudu/common/common.proto
M src/kudu/tserver/tablet_server-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tablet_service.h
4 files changed, 255 insertions(+), 52 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/04/8804/2
-- 
To view, visit http://gerrit.cloudera.org:8080/8804
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I84ddb981a1a0f199d4e66f5d5097318f8c785a48
Gerrit-Change-Number: 8804
Gerrit-PatchSet: 2
Gerrit-Owner: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <da...@gmail.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins