Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 28D2C200B55 for ; Sun, 17 Jul 2016 03:07:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 277F7160A8A; Sun, 17 Jul 2016 01:07:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 79648160A6C for ; Sun, 17 Jul 2016 03:07:21 +0200 (CEST) Received: (qmail 66468 invoked by uid 500); 17 Jul 2016 01:07:20 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 66453 invoked by uid 99); 17 Jul 2016 01:07:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Jul 2016 01:07:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8BFCE2C0032 for ; Sun, 17 Jul 2016 01:07:20 +0000 (UTC) Date: Sun, 17 Jul 2016 01:07:20 +0000 (UTC) From: "Robert Nettleton (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-17758) LogSearch Integration NullPointerException when LogSearch connection not available MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 17 Jul 2016 01:07:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-17758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Nettleton updated AMBARI-17758: -------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Patch merged to trunk and branch-2.4 > LogSearch Integration NullPointerException when LogSearch connection not available > ---------------------------------------------------------------------------------- > > Key: AMBARI-17758 > URL: https://issues.apache.org/jira/browse/AMBARI-17758 > 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-17758.patch > > Original Estimate: 24h > Remaining Estimate: 24h > > The following NullPointerException can occur intermittently in the LogSearch integration code in the Ambari REST layer: > {code} > java.lang.NullPointerException > at org.apache.ambari.server.controller.logging.LogSearchDataRetrievalService.getLogFileTailURI(LogSearchDataRetrievalService.java:159) > at org.apache.ambari.server.controller.logging.LoggingSearchPropertyProvider.populateResources(LoggingSearchPropertyProvider.java:92) > at org.apache.ambari.server.controller.internal.ClusterControllerImpl.populateResources(ClusterControllerImpl.java:155) > at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:500) > at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:503) > at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:454) > at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:222) > at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:77) > at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145) > at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126) > at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90) > at org.apache.ambari.server.api.services.ClusterService.getCluster(ClusterService.java:91) > at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source) > {code} > While the code that calls the LogSearchDataRetrievalService already has a check to determine if the LoggingRequestHelper is available (non-null), there is a change that a service might be stopped or crashes unexpected in between the initial check and this call. > This is usually an intermittent exception. > The LogSearchDataRetrievalService should be updated to include a check for null when attempting to access the LoggingRequestHelper implementation. > 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)