Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7579

improvement: list indexes in REST API need to show all the runtime index info

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: management, rest (admin)
    • Labels:
      None

      Description

      1. Steps to reproduce
        gfsh commands:
        start server --server-port=0 --group=g5 --name=g5-s5
        start server --server-port=0 --group=g6 --name=g6-s6
        create region --name=/regionTest --type=PARTITION --group=g5
        create region --name=/regionTest --type=PARTITION_PROXY --group=g6
        create index --name=regionTest.name1 --expression=name --region=/regionTest --group=g5
        create index --name=regionTest.name1 --expression=name2 --region=/regionTest --group=g6
        create index --name=regionTest.name2 --expression=name --region=/regionTest --group=g6

      and then run "list indexes", we will find there are 4 indexes
      gfsh>list indexes
      Member Name | Member ID | Region Path | Name | Type | Indexed Expression | From Clause | Valid Index
      ----------- | ------------------------- | ----------- | ---------------- | ----- | ------------------ | ----------- | -----------
      g5-s5 | 10.118.20.154(g5-s5:967.. | /regionTest | regionTest.name1 | RANGE | name | /regionTest | true
      g5-s5 | 10.118.20.154(g5-s5:967.. | /regionTest | regionTest.name2 | RANGE | name | /regionTest | true
      g6-s6 | 10.118.20.154(g6-s6:967.. | /regionTest | regionTest.name1 | RANGE | name2 | /regionTest | false
      g6-s6 | 10.118.20.154(g6-s6:967.. | /regionTest | regionTest.name2 | RANGE | name | /regionTest | false

      but in REST API, [GET]"/management/v1/indexes", there are only 3 indexes:

      {
      "statusCode": "OK",
      "result": [
      {
      "configuration":

      { "group": "g6", "name": "regionTest.name1", "expression": "name2", "regionPath": "/regionTest", "indexType": "RANGE" }

      ,
      "runtimeInfo": [

      { "memberName": "g6-s6" }

      ],
      "links":

      { "self": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes/regionTest.name1", "list": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes", "region": "http://127.0.0.1:7070/management/v1/regions/regionTest" }

      },
      {
      "configuration":

      { "group": "g6", "name": "regionTest.name2", "expression": "name", "regionPath": "/regionTest", "indexType": "RANGE" }

      ,
      "runtimeInfo": [

      { "memberName": "g6-s6" }

      ],
      "links":

      { "self": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes/regionTest.name2", "list": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes", "region": "http://127.0.0.1:7070/management/v1/regions/regionTest" }

      },
      {
      "configuration":

      { "group": "g5", "name": "regionTest.name1", "expression": "name", "regionPath": "/regionTest", "indexType": "RANGE" }

      ,
      "runtimeInfo": [

      { "memberName": "g5-s5" }

      ],
      "links":

      { "self": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes/regionTest.name1", "list": "http://127.0.0.1:7070/management/v1/regions/regionTest/indexes", "region": "http://127.0.0.1:7070/management/v1/regions/regionTest" }

      }
      ]
      }

      in REST AP [GET]"/management/v1/indexes", the users can not find "g5-s5 | 10.118.20.154(g5-s5:967.. | /regionTest | regionTest.name2 | RANGE | name | /regionTest | true"

      need to show this in REST API [GET]"/management/v1/indexes".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                echobravo Ernest Burghardt
                Reporter:
                gyan Gang Yan
              • 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 - 3h 40m
                  3h 40m