You are viewing a plain text version of this content. The canonical link for it is here.
Posted to distributedlog-commits@bookkeeper.apache.org by "xiaohao liang (JIRA)" <ji...@apache.org> on 2017/03/23 03:47:41 UTC
[jira] [Comment Edited] (DL-194) I want to truncate the log until
"Transaction ID" (not DLSN). How can I do ?
[ https://issues.apache.org/jira/browse/DL-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937638#comment-15937638 ]
xiaohao liang edited comment on DL-194 at 3/23/17 3:47 AM:
-----------------------------------------------------------
Thanks for your quick feedback! [~sijie@apache.org]
:-)
Addtional, Is the function blocking the AsyncLogWriter::write() ?
so, we need new function ?
was (Author: xiaohaoliang):
Thanks for your quick feedback! [~sijie@apache.org]
:-)
> 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
> Fix For: 0.5.0
>
>
> 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)