distributedlog-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiaohao liang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DL-194) I want to truncate the log until "Transaction ID" (not DLSN). How can I do ?
Date Thu, 23 Mar 2017 02:42:41 GMT
xiaohao liang created DL-194:
--------------------------------

             Summary: I want to truncate the log until "Transaction ID" (not DLSN).  How can
I do ? 
                 Key: DL-194
                 URL: https://issues.apache.org/jira/browse/DL-194
             Project: DistributedLog
          Issue Type: Improvement
            Reporter: xiaohao liang


Now , I want to truncate the log until "Transaction ID" (not DLSN), 
I find that :

```java
DLSN truncateDLSN = ...;
Future<DLSN> truncateFuture = writer.truncate(truncateDLSN);
// wait for truncation result
Await.result(truncateFuture);
```

http://distributedlog.incubator.apache.org/docs/latest/user_guide/api/core.html#asynclogwriter


So,ow can I do ? 





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message