Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-756

startUpdate fails with "Instance count must be positive."

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • Scheduler
    • None

    Description

      When a noop update is requested (i.e. all instances are already in desired state), the UpdateFactory.newUpdate fails checkArgument validation in:

           checkArgument(
                !instructions.getDesiredState().getInstances().isEmpty(),
                "Instance count must be positive.");
      

      Recommend fixing it with https://reviews.apache.org/r/25481, which replaces that validation with the one in SchedulerThriftInterface before any diff applied.

      Attachments

        Activity

          People

            maximk Maxim Khutornenko
            maximk Maxim Khutornenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: