Sijie Guo created DL-63:
---------------------------
Summary: Epoch write support
Key: DL-63
URL: https://issues.apache.org/jira/browse/DL-63
Project: DistributedLog
Issue Type: Bug
Reporter: Sijie Guo
Discussion mail thread:
http://mail-archives.apache.org/mod_mbox/incubator-distributedlog-dev/201610.mbox/browser
{quote}
- when a log stream is owned, the proxy use the last transaction id as the
epoch
- when a client connects (handshake with the proxy), it will get the epoch
for the stream.
- the writes issued by this client will carry the epoch to the proxy.
- add a new rpc - fenceThenGetLastDLSN - it would force the proxy to bump
the epoch.
- if fenceThenGetLastDLSN happened, all the outstanding writes with old
epoch will be rejected with exceptions (e.g. EpochFenced).
- The DLSN returned from fenceThenGetLastDLSN can be used as the bound for
deduplications on failures.
{quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)