You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2018/11/15 23:00:00 UTC
[jira] [Commented] (RATIS-423) Apparent off-by-one when reading
from LogService
[ https://issues.apache.org/jira/browse/RATIS-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16688761#comment-16688761 ]
Josh Elser commented on RATIS-423:
----------------------------------
Closer look.. this was me :)
> Apparent off-by-one when reading from LogService
> ------------------------------------------------
>
> Key: RATIS-423
> URL: https://issues.apache.org/jira/browse/RATIS-423
> Project: Ratis
> Issue Type: Task
> Components: LogService
> Reporter: Josh Elser
> Assignee: Josh Elser
> Priority: Major
>
> {noformat}
> logservice> create josh
> Created log 'josh'
> logservice> put josh a
> logservice> read josh
> First=0, lastId=1
> []
> logservice> put josh b
> logservice> read josh
> First=0, lastId=2
> [0:2
> josha]
> logservice> put josh c
> logservice> read josh
> First=0, lastId=3
> [0:2
> josha, 0:2
> joshb]
> {noformat}
> pardon the crappy formatting on the log data, but it seems like we always read up to the n-1'th record instead of all n records as the shell should do.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)