Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 8823 invoked from network); 29 Apr 2010 23:06:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Apr 2010 23:06:17 -0000 Received: (qmail 92297 invoked by uid 500); 29 Apr 2010 23:06:17 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 92278 invoked by uid 500); 29 Apr 2010 23:06:17 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 92270 invoked by uid 99); 29 Apr 2010 23:06:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 23:06:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 23:06:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3TN5rtA014363 for ; Thu, 29 Apr 2010 23:05:53 GMT Message-ID: <32807835.22341272582353356.JavaMail.jira@thor> Date: Thu, 29 Apr 2010 19:05:53 -0400 (EDT) From: "Bill Graham (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Created: (CHUKWA-485) TsProcessor mis-handles some dates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org TsProcessor mis-handles some dates ---------------------------------- Key: CHUKWA-485 URL: https://issues.apache.org/jira/browse/CHUKWA-485 Project: Hadoop Chukwa Issue Type: Bug Components: Data Processors Reporter: Bill Graham Assignee: Bill Graham Attachments: CHUKWA-485.1.patch The configurable date format functionality in TsProcessor does the following to extract the date text to parse when a date regex isn't set: {{recordEntry.substring(0, sdf.toPattern().length());}} The problem with this approach is that some date formats aren't the same length as their corresponding text string and {{sdf.toPattern().length()}} produces the length of the former, not the latter. As an example the {{z}} format letter produces a timezone like 'PDT'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.