You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/01/08 00:00:00 UTC
[jira] [Commented] (GEODE-7579) improvement: list indexes in REST
API need to show all the runtime index info
[ https://issues.apache.org/jira/browse/GEODE-7579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17010180#comment-17010180 ]
ASF subversion and git services commented on GEODE-7579:
--------------------------------------------------------
Commit f1e5d8f9a06eb5fb08a38d580e12fa3b89ee32ef in geode's branch refs/heads/develop from Jinmei Liao
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=f1e5d8f ]
GEODE-7579: introduce RegionAware (#4546)
* GEODE-7579: Make Index configuration RegionAware
* Index configuration is ReqionAware, but not groupable
* index's group depends on what region it's defined with
* display member status in the exception
> improvement: list indexes in REST API need to show all the runtime index info
> -----------------------------------------------------------------------------
>
> Key: GEODE-7579
> URL: https://issues.apache.org/jira/browse/GEODE-7579
> Project: Geode
> Issue Type: Improvement
> Components: management, rest (admin)
> Reporter: Gang Yan
> Priority: Minor
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> # 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".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)