Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7.0
    • core
    • None

    Description

      ScriptBasedClusterAction is using NPE for flow control.

      public Cluster execute(ClusterSpec clusterSpec, Cluster cluster) throws IOException, InterruptedException {
      ...
      for (String role : instanceTemplate.getRoles()) {
      try

      { handlerMap.get(role).beforeAction(event); }

      catch (NullPointerException e)

      { throw new IllegalArgumentException("No handler for role " + role); }

      }
      ...
      }

      I just lost about an hour trying to find out why the actionhandler was not being registered while the NPE came from the beforeAction() call.

      Attachments

        1. WHIRR-394.patch
          8 kB
          Andrei Savu
        2. WHIRR-394.patch
          6 kB
          Andrei Savu
        3. WHIRR-394.patch
          0.9 kB
          David Alves

        Activity

          People

            dr-alves David Alves
            dr-alves David Alves
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment