Gang Yan created GEODE-7825:
-------------------------------

             Summary: can see exception info when I try to run rebalance by 
REST API
                 Key: GEODE-7825
                 URL: https://issues.apache.org/jira/browse/GEODE-7825
             Project: Geode
          Issue Type: Bug
          Components: management, rest (admin)
            Reporter: Gang Yan


as a user,  when I try to run rebalance by [POST] 
"http://127.0.0.1:7070/management/v1/operations/rebalances";
, sometimes can  get the following response:


{code:java}
{
    "statusCode": "ACCEPTED",
    "statusMessage": "Operation started.  Use the URI to check its status.",
    "links": {
        "self": 
"http://127.0.0.1:7070/management/v1/operations/rebalances/7c39a7f0-6b7e-4177-9269-bfa7ce42808d";,
        "list": "http://127.0.0.1:7070/management/v1/operations/rebalances";
    },
    "operationStart": "2020-02-27T22:48:49.716Z",
    "operationEnd": "2020-02-27T22:48:49.729Z",
    "operationId": "7c39a7f0-6b7e-4177-9269-bfa7ce42808d",
    "operation": {
        "simulate": false
    },
    "throwable": {
        "stackTrace": [
            {
                "methodName": "getMemberRegionList",
                "fileName": "RebalanceOperationPerformer.java",
                "lineNumber": 208,
                "className": 
"org.apache.geode.management.internal.operation.RebalanceOperationPerformer",
                "nativeMethod": false
            },
            {
                "methodName": "executeRebalanceOnDS",
                "fileName": "RebalanceOperationPerformer.java",
                "lineNumber": 326,
                "className": 
"org.apache.geode.management.internal.operation.RebalanceOperationPerformer",
                "nativeMethod": false
            },
            {
                "methodName": "perform",
                "fileName": "RebalanceOperationPerformer.java",
                "lineNumber": 91,
                "className": 
"org.apache.geode.management.internal.operation.RebalanceOperationPerformer",
                "nativeMethod": false
            },
            {
                "methodName": "lambda$submit$0",
                "fileName": "OperationManager.java",
                "lineNumber": 67,
                "className": 
"org.apache.geode.management.internal.operation.OperationManager",
                "nativeMethod": false
            },
            {
                "methodName": "run",
                "fileName": "CompletableFuture.java",
                "lineNumber": 1590,
                "className": 
"java.util.concurrent.CompletableFuture$AsyncSupply",
                "nativeMethod": false
            },
            {
                "methodName": "run",
                "fileName": "Thread.java",
                "lineNumber": 748,
                "className": "java.lang.Thread",
                "nativeMethod": false
            }
        ]
    }
}
{code}


if a post request of a-sync operation , as rebalance ,   is posted,  the user 
wants to see whether it is accepted or not.  When the user want to know detail 
info,  he just needs to run 
[GET] 
http://127.0.0.1:7070/management/experimental/operations/rebalances/[operationID]
 to get more information.

expected result:   just show accepted or not,  without throwable info



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to