Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3086BDBAB for ; Fri, 9 Nov 2012 17:54:12 +0000 (UTC) Received: (qmail 95341 invoked by uid 500); 9 Nov 2012 17:54:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 95291 invoked by uid 500); 9 Nov 2012 17:54:12 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 95281 invoked by uid 99); 9 Nov 2012 17:54:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 17:54:12 +0000 Date: Fri, 9 Nov 2012 17:54:11 +0000 (UTC) From: "J.B. Langston (JIRA)" To: commits@cassandra.apache.org Message-ID: <486429974.92726.1352483652009.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CASSANDRA-4939) Add debug logging to list filenames processed by o.a.c.db.Directories.migrateFile method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 J.B. Langston created CASSANDRA-4939: ---------------------------------------- Summary: Add debug logging to list filenames processed by o.a.c.db.Directories.migrateFile method Key: CASSANDRA-4939 URL: https://issues.apache.org/jira/browse/CASSANDRA-4939 Project: Cassandra Issue Type: Bug Components: Core Affects Versions: 1.1.6 Reporter: J.B. Langston Priority: Minor Customer is getting the following error when starting Cassandra: ERROR 20:20:06,635 Exception encountered during startup java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) at org.apache.cassandra.db.Directories.migrateFile(Directories.java:556) at org.apache.cassandra.db.Directories.migrateSSTables(Directories.java:493) It looks like this is caused by an file with an unexpected name in one of his keyspace directories. However, because we don't log the name of the file as it is processed, it is hard to tell which file is causing it to choke. It would be good to add a logger.debug statement at the beginning of the method to list the file currently being processed. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira