Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17510

NPE in cluster configuration REST calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-beta1
    • cli, rest

    Description

      When calling /management/v1/configuration/cluster on the cluster that is not initialized, then we got the NPE and as a result, a 500 error code is returned.

      ItNotInitializedClusterRestTest#clusterConfiguration and ItNotInitializedClusterRestTest#clusterConfigurationUpdate reproduce the issue and have TODO for that.

      I would suggest to return 404 in that case as /management/v1/cluster/topology/logical does. So, there is no such resource on the cluster that is not initialized.

      The cluster config show/update error handling should be updated as well.

      Attachments

        Issue Links

          Activity

            People

              vpakhnushev Vadim Pakhnushev
              aleksandr.pakhomov Aleksandr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h