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 0D1EE200D71 for ; Wed, 20 Dec 2017 18:36:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0B77F160BF9; Wed, 20 Dec 2017 17:36:11 +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 4F698160C15 for ; Wed, 20 Dec 2017 18:36:10 +0100 (CET) Received: (qmail 63913 invoked by uid 500); 20 Dec 2017 17:36:09 -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 63904 invoked by uid 99); 20 Dec 2017 17:36:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Dec 2017 17:36:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 11390180870 for ; Wed, 20 Dec 2017 17:36:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s6QwNwUFoe34 for ; Wed, 20 Dec 2017 17:36:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 978F75FB5B for ; Wed, 20 Dec 2017 17:36:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66F6AE0F57 for ; Wed, 20 Dec 2017 17:36:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 71D7A240EA for ; Wed, 20 Dec 2017 17:36:03 +0000 (UTC) Date: Wed, 20 Dec 2017 17:36:03 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-22633) MapDate provides the date incorrectly when Filter is cloned and used in multi-threads MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 20 Dec 2017 17:36:11 -0000 [ https://issues.apache.org/jira/browse/AMBARI-22633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16298789#comment-16298789 ] Hudson commented on AMBARI-22633: --------------------------------- FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #552 (See [https://builds.apache.org/job/Ambari-branch-2.6/552/]) AMBARI-22633. MapDate provides the date incorrectly when Filter is (oleewere: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ab71b5a4153c10936aacdbf581a8481ad7929432]) * (edit) ambari-logsearch/ambari-logsearch-logfeeder/src/main/java/org/apache/ambari/logfeeder/mapper/MapperDate.java * (edit) ambari-logsearch/ambari-logsearch-logfeeder/pom.xml > MapDate provides the date incorrectly when Filter is cloned and used in multi-threads > ------------------------------------------------------------------------------------- > > Key: AMBARI-22633 > URL: https://issues.apache.org/jira/browse/AMBARI-22633 > Project: Ambari > Issue Type: Bug > Components: logsearch > Affects Versions: 2.6.1 > Reporter: Jungtaek Lim > Assignee: Jungtaek Lim > Priority: Critical > Fix For: 2.6.2 > > Attachments: AMBARI-22633-branch-2.6.patch > > > In AMBARI-22600, we cloned the Filter instance to assign the instance per child thread, which also clones the map of Mapper. Other Mapper implements only have String(s) type of fields hence thread-safe, but MapperDate has SimpleDateFormat type of fields which is known as non thread-safe, so cloning the Filter which has one or more MapperDate and using them concurrently makes multi-threads issue. > For example I'm seeing the logdate improperly stored. -- This message was sent by Atlassian JIRA (v6.4.14#64029)