[
https://issues.apache.org/jira/browse/AMBARI-17811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15386606#comment-15386606
]
Hudson commented on AMBARI-17811:
---------------------------------
FAILURE: Integrated in Ambari-trunk-Commit #5348 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/5348/])
AMBARI-17811. LogSearch search engine resource throws NullPointer when
(rnettleton:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=e2636c725b12f32ea929746a82e0ebaea8bf9bbe])
*
ambari-server/src/main/java/org/apache/ambari/server/api/services/LoggingService.java
*
ambari-server/src/test/java/org/apache/ambari/server/api/services/LoggingServiceTest.java
> LogSearch search engine resource throws NullPointer when LogSearch not
> available
> --------------------------------------------------------------------------------
>
> Key: AMBARI-17811
> URL: https://issues.apache.org/jira/browse/AMBARI-17811
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.4.0
> Reporter: Robert Nettleton
> Assignee: Robert Nettleton
> Priority: Critical
> Fix For: 2.4.0
>
> Attachments: AMBARI-17811.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> The LogSearch integration in the Ambari REST layer uses a "searchEngine"
> interface to abstract out the calls to the LogSearch Server, in order to
> handle search query requests.
> If LogSearch is not running, and a REST GET call is made on the following
> Ambari resource:
> {code}clusters/$CLUSTER_NAME/logging/searchEngine{code}
> The following NullPointerException will be thrown in ambari-server.log:
> {code}
> java.lang.NullPointerException
> at
> org.apache.ambari.server.api.services.LoggingService.handleDirectRequest(LoggingService.java:113)
> at
> org.apache.ambari.server.api.services.LoggingService.getSearchEngine(LoggingService.java:76)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}
> The Ambari LogSearch integration should handle this type of failure more
> gracefully. In the event that this REST resource is accessed when LogSearch
> is not running, or is not deployed, then a check for a null
> LoggingRequestHelper should be implemented, and a reasonable error message
> returned to the caller, to indicate that the "searchEngine" resource is not
> currently available.
> I'm working on a fix for this, and will be submitting a patch shortly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)