Gang Yan created GEODE-7148:
-------------------------------

             Summary: inconsistent output between 
"/management/experimental/members/" and 
"/management/experimental/members/memberid" in REST API V2
                 Key: GEODE-7148
                 URL: https://issues.apache.org/jira/browse/GEODE-7148
             Project: Geode
          Issue Type: Bug
          Components: management
            Reporter: Gang Yan


the output of "/management/experimental/members/" and 
"/management/experimental/members/memberid" in REST API V2 are inconsistent.

 

output for "/management/experimental/members/":

 
{code:json}
{
    "statusCode": "OK",
    "result": [
        {
            "configuration": {
                "class": 
"org.apache.geode.management.configuration.MemberConfig"
            },
            "runtimeInfo": [
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "g1-g2-s3",
                    "id": "10.118.20.61(g1-g2-s3:12432)<v4>:41004",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-g2-s3",
                    "groups": "g1,g2",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-g2-s3/g1-g2-s3.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-g2-s3",
                    "locators": "10.118.20.61[58099],10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 104,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-g2-s3/cache.xml",
                    "host": "10.118.20.61",
                    "processId": 12432,
                    "locatorPort": 0,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "hostedRegions": [
                        "Foo6",
                        "r_sg_1",
                        "REGION6",
                        "r_mG_1_2",
                        "customers4",
                        "customers13"
                    ],
                    "webSSL": false,
                    "secured": false,
                    "cacheServerInfo": [
                        {
                            "port": 58188,
                            "maxConnections": 800,
                            "maxThreads": 0,
                            "running": true
                        }
                    ],
                    "server": true,
                    "coordinator": false
                },
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "g2-s2",
                    "id": "10.118.20.61(g2-s2:12428)<v3>:41003",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g2-s2",
                    "groups": "g2",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g2-s2/g2-s2.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g2-s2",
                    "locators": "10.118.20.61[58099],10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 183,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g2-s2/cache.xml",
                    "host": "10.118.20.61",
                    "processId": 12428,
                    "locatorPort": 0,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "hostedRegions": [
                        "Foo6",
                        "REGION6",
                        "r_mG_1_2",
                        "customers13"
                    ],
                    "webSSL": false,
                    "secured": false,
                    "cacheServerInfo": [
                        {
                            "port": 58159,
                            "maxConnections": 800,
                            "maxThreads": 0,
                            "running": true
                        }
                    ],
                    "server": true,
                    "coordinator": false
                },
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "yawn-jolly-pan",
                    "id": 
"10.118.20.61(yawn-jolly-pan:12404:locator)<ec><v0>:41000",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/yawn-jolly-pan",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/yawn-jolly-pan/yawn-jolly-pan.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/yawn-jolly-pan",
                    "locators": "10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 639,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/yawn-jolly-pan",
                    "host": "10.118.20.61",
                    "processId": 12404,
                    "locatorPort": 58077,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "webSSL": false,
                    "secured": false,
                    "server": false,
                    "coordinator": true
                },
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "g1-s1",
                    "id": "10.118.20.61(g1-s1:12423)<v2>:41002",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1",
                    "groups": "g1",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1/g1-s1.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1",
                    "locators": "10.118.20.61[58099],10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 77,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1/cache.xml",
                    "host": "10.118.20.61",
                    "processId": 12423,
                    "locatorPort": 0,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "hostedRegions": [
                        "Foo6",
                        "r_sg_1",
                        "r_mG_1_2",
                        "customers4",
                        "customers13"
                    ],
                    "webSSL": false,
                    "secured": false,
                    "cacheServerInfo": [
                        {
                            "port": 58133,
                            "maxConnections": 800,
                            "maxThreads": 0,
                            "running": true
                        }
                    ],
                    "server": true,
                    "coordinator": false
                },
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "s4",
                    "id": "10.118.20.61(s4:12437)<v5>:41005",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/s4",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/s4/s4.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/s4",
                    "locators": "10.118.20.61[58099],10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 147,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/s4/cache.xml",
                    "host": "10.118.20.61",
                    "processId": 12437,
                    "locatorPort": 0,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "hostedRegions": [
                        "Foo6",
                        "customers13"
                    ],
                    "webSSL": false,
                    "secured": false,
                    "cacheServerInfo": [
                        {
                            "port": 58222,
                            "maxConnections": 800,
                            "maxThreads": 0,
                            "running": true
                        }
                    ],
                    "server": true,
                    "coordinator": false
                },
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "elevate-important-bun",
                    "id": 
"10.118.20.61(elevate-important-bun:12417:locator)<ec><v1>:41001",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/elevate-important-bun",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/elevate-important-bun/elevate-important-bun.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/elevate-important-bun",
                    "locators": "10.118.20.61[58077],10.118.20.61[58099]",
                    "status": "online",
                    "heapUsage": 255,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/elevate-important-bun",
                    "host": "10.118.20.61",
                    "processId": 12417,
                    "locatorPort": 58099,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "webSSL": false,
                    "secured": false,
                    "server": false,
                    "coordinator": false
                }
            ]
        }
    ]
}
{code}
output of "/management/experimental/members/memberid" :
{code:json}
{
    "statusCode": "OK",
    "result": [
        {
            "configuration": {
                "class": 
"org.apache.geode.management.configuration.MemberConfig",
                "id": "g1-s1",
                "uri": "/management/experimental/members/g1-s1"
            },
            "runtimeInfo": [
                {
                    "class": 
"org.apache.geode.management.runtime.MemberInformation",
                    "memberName": "g1-s1",
                    "id": "10.118.20.61(g1-s1:12423)<v2>:41002",
                    "workingDirPath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1",
                    "groups": "g1",
                    "logFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1/g1-s1.log",
                    "statArchiveFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1",
                    "locators": "10.118.20.61[58099],10.118.20.61[58077]",
                    "status": "online",
                    "heapUsage": 79,
                    "maxHeapSize": 7282,
                    "initHeapSize": 512,
                    "cacheXmlFilePath": 
"/Users/gyan/IdeaProjects/geode_dev/geode-assembly/build/install/apache-geode/bin/g1-s1/cache.xml",
                    "host": "10.118.20.61",
                    "processId": 12423,
                    "locatorPort": 0,
                    "httpServicePort": 7070,
                    "clientCount": 0,
                    "cpuUsage": 0.0,
                    "hostedRegions": [
                        "Foo6",
                        "r_sg_1",
                        "r_mG_1_2",
                        "customers4",
                        "customers13"
                    ],
                    "webSSL": false,
                    "secured": false,
                    "cacheServerInfo": [
                        {
                            "port": 58133,
                            "maxConnections": 800,
                            "maxThreads": 0,
                            "running": true
                        }
                    ],
                    "server": true,
                    "coordinator": false
                }
            ]
        }
    ]
}
{code}
 

it is better to have same look for these both as  
"/management/experimental/members/memberid"

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to