-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/46381/
-----------------------------------------------------------

Review request for Ambari and Dmitro Lisnichenko.


Bugs: AMBARI-15967
    https://issues.apache.org/jira/browse/AMBARI-15967


Repository: ambari


Description
-------

Exception trace :

    
    
    
    13 Apr 2016 18:01:55,591 ERROR [pool-9-thread-434] BaseProvider:240 - 
Caught exception getting JMX metrics : Unexpected character ('T' (code 84)): 
expected a valid value (number, String, array, object, 'true', 'false' or 
'null')
     at [Source: 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@2c495cce; line: 1, 
column: 2], skipping same exceptions for next 5 minutes
    org.codehaus.jackson.JsonParseException: Unexpected character ('T' (code 
84)): expected a valid value (number, String, array, object, 'true', 'false' or 
'null')
     at [Source: 
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@2c495cce; line: 1, 
column: 2]
            at 
org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
            at 
org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
            at 
org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
            at 
org.codehaus.jackson.impl.Utf8StreamParser._handleUnexpectedValue(Utf8StreamParser.java:2090)
            at 
org.codehaus.jackson.impl.Utf8StreamParser._nextTokenNotInObject(Utf8StreamParser.java:606)
            at 
org.codehaus.jackson.impl.Utf8StreamParser.nextToken(Utf8StreamParser.java:492)
            at 
org.codehaus.jackson.map.ObjectReader._initForReading(ObjectReader.java:638)
            at 
org.codehaus.jackson.map.ObjectReader._bindAndClose(ObjectReader.java:562)
            at 
org.codehaus.jackson.map.ObjectReader.readValue(ObjectReader.java:319)
            at 
org.apache.ambari.server.controller.jmx.JMXPropertyProvider.getHadoopMetricValue(JMXPropertyProvider.java:240)
            at 
org.apache.ambari.server.controller.jmx.JMXPropertyProvider.populateResource(JMXPropertyProvider.java:218)
            at 
org.apache.ambari.server.controller.metrics.ThreadPoolEnabledPropertyProvider$1.call(ThreadPoolEnabledPropertyProvider.java:180)
            at 
org.apache.ambari.server.controller.metrics.ThreadPoolEnabledPropertyProvider$1.call(ThreadPoolEnabledPropertyProvider.java:178)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/ThreadPoolEnabledPropertyProvider.java
 fba1ef5 
  
ambari-server/src/test/java/org/apache/ambari/server/controller/metrics/ThreadPoolEnabledPropertyProviderTest.java
 PRE-CREATION 

Diff: https://reviews.apache.org/r/46381/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to