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

LogReader#readBulk should validate that a positive number of records was provided

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • LogService

    Description

      Presently, you can ask the LogReader for 0 records via the method #readBulk(int). That's pretty silly.

      We should validate that the user is strictly asking for one or more records from the LogReader.

      Same goes for the LogReader#readBulk(List) variant – we should require that the provided list be at least size one.

      Attachments

        1. RATIS-425-v1.patch
          3 kB
          Vladimir Rodionov

        Activity

          People

            vrodionov Vladimir Rodionov
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: