Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-423

Apparent off-by-one when reading from LogService

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • LogService
    • None

    Description

      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]
      

      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.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: