Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-888

SamzaContainer initializes ExponentialSleepStrategy with randInt that is inclusive of 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.1
    • None

    Description

      SamzaContainer initializes ExponentialSleepStrategy with randInt for initialDelay, when reading the JobModel.

      randInt is inclusive of 0. initialDelay cannot be 0 in a backoff approach. The assert check in ExponentialSleepStrategy ends up failing the container occasionally. This should be fixed to not include 0 for initialDelay.

      As a side note: This also causes occasional build failure because the unit test for reading JobModel fails. Hence, it is important to fix this.

      Attachments

        1. SAMZA-888-0.patch
          0.8 kB
          Navina Ramesh

        Activity

          People

            TaoFeng Tao Feng
            navina Navina Ramesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: