[ 
https://issues.apache.org/jira/browse/HBASE-24274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17094042#comment-17094042
 ] 

Nick Dimiduk commented on HBASE-24274:
--------------------------------------

The current stuff gives me this error
{noformat}
20/04/27 23:59:08 WARN policies.Policy: Exception performing action: 
java.lang.IllegalStateException: Not a JSON Object: "{ ... }"
        at 
org.apache.hbase.thirdparty.com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:91)
        at 
org.apache.hadoop.hbase.RESTApiClusterManager.getJsonNodeFromURIGet(RESTApiClusterManager.java:251)
        at 
org.apache.hadoop.hbase.RESTApiClusterManager.getServiceName(RESTApiClusterManager.java:294)
        at 
org.apache.hadoop.hbase.RESTApiClusterManager.isRunning(RESTApiClusterManager.java:147)
        at 
org.apache.hadoop.hbase.DistributedHBaseCluster.waitForServiceToStop(DistributedHBaseCluster.java:257)
        at 
org.apache.hadoop.hbase.DistributedHBaseCluster.waitForMasterToStop(DistributedHBaseCluster.java:306)
        at 
org.apache.hadoop.hbase.chaos.actions.Action.killMaster(Action.java:176)
        at 
org.apache.hadoop.hbase.chaos.actions.RestartActionBaseAction.restartMaster(RestartActionBaseAction.java:53)
        at 
org.apache.hadoop.hbase.chaos.actions.RestartActiveMasterAction.perform(RestartActiveMasterAction.java:39)
        at 
org.apache.hadoop.hbase.chaos.policies.PeriodicRandomActionPolicy.runOneIteration(PeriodicRandomActionPolicy.java:59)
        at 
org.apache.hadoop.hbase.chaos.policies.PeriodicPolicy.run(PeriodicPolicy.java:41)
        at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}

> `RESTApiClusterManager` attempts to deserialize response using serialization 
> API
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-24274
>                 URL: https://issues.apache.org/jira/browse/HBASE-24274
>             Project: HBase
>          Issue Type: Bug
>          Components: integration tests
>    Affects Versions: 2.3.0
>            Reporter: Nick Dimiduk
>            Assignee: Nick Dimiduk
>            Priority: Major
>
> I'm not sure if this class ever worked, or if Gson changed their API behavior 
> and we never noticed. The fix is quite simple, to use the streaming 
> {{JsonParser}} API instead of the higher-level object API. However, testing 
> this means standing up a web service that mocks Cloudera Manager response 
> bodies.



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

Reply via email to