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/03/18 21:39:00 UTC
[jira] [Commented] (GEODE-7825) can see exception info when I try
to run rebalance by REST API
[ https://issues.apache.org/jira/browse/GEODE-7825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062069#comment-17062069 ]
ASF subversion and git services commented on GEODE-7825:
--------------------------------------------------------
Commit ef533fa839455d3b720facb8487d8e8e1e56c089 in geode's branch refs/heads/feature/GEODE-7109 from Darrel Schneider
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=ef533fa ]
GEODE-7825: improve rebalance result (#4803)
* the statusMessage will now also contain the name of the exception
* OperationResult getSuccess and getStatusMessage are now used
to set the status and message on ClusterManagementOperationResult.
* Instead of throwing NoMembersException, the rebalance code
now sets the statusMessage on the RebalanceResult like it
already did for other exceptions. This will prevent a call
stack from being displayed to users when no member is found
to do the rebalance on.
> 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
> Assignee: Darrel Schneider
> Priority: Major
> Fix For: 1.13.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)