You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stephen Pope (JIRA)" <ji...@apache.org> on 2011/02/18 17:17:38 UTC

[jira] Created: (CASSANDRA-2196) NumberFormatException processing sstable

NumberFormatException processing sstable
----------------------------------------

                 Key: CASSANDRA-2196
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.7.2
         Environment: Cassandra 0.7.2

Windows 7 64-bit
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

            Reporter: Stephen Pope


When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.

The first logged entry that tipped me off was this:
 INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
perations)
ERROR 10:53:52,171 Error in ThreadPoolExecutor
java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NumberFormatException: For input string: "tmp"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:449)
        at java.lang.Integer.parseInt(Integer.java:499)
        at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
        at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
        at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
        at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
        at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
        at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
        at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
        ... 3 more

 Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)

 The file I believe it's trying to parse is mentioned in my logs as:

INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.

 I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Stephen Pope (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996560#comment-12996560 ] 

Stephen Pope commented on CASSANDRA-2196:
-----------------------------------------

I'm confused. My CFs are TransactionLogs and Terms. The CF in the log entry is the system-generated one. I created my CFs in code.

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2196:
--------------------------------------

    Attachment: 2196.txt

patch to keep invalid characters out of index names.

if you can afford to lose the data the easiest fix for this CF is to drop and recreate it.

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2196:
--------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 0.7.2)
                       0.7.0
             Assignee: Jonathan Ellis
              Summary: Hyphenated index names cause problems  (was: NumberFormatException processing sstable)

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996573#comment-12996573 ] 

Gary Dusbabek commented on CASSANDRA-2196:
------------------------------------------

+1

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999698#comment-12999698 ] 

Hudson commented on CASSANDRA-2196:
-----------------------------------

Integrated in Cassandra #746 (See [https://hudson.apache.org/hudson/job/Cassandra/746/])
    invoke toString() instead of casting

Patch by eevans; reviewed by gdusbabek for CASSANDRA-2196


> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt, v1-0001-CASSANDRA-2196-invoke-toString-instead-of-casting.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans resolved CASSANDRA-2196.
-----------------------------------

    Resolution: Fixed

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt, v1-0001-CASSANDRA-2196-invoke-toString-instead-of-casting.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans reopened CASSANDRA-2196:
-----------------------------------


> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Stephen Pope (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996572#comment-12996572 ] 

Stephen Pope commented on CASSANDRA-2196:
-----------------------------------------

I can afford to lose it. Thanks!

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996564#comment-12996564 ] 

Jonathan Ellis commented on CASSANDRA-2196:
-------------------------------------------

Ah, I thought "TransactionLogs.client-hostname" was KS.CF but it must be CF.indexname. 

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999642#comment-12999642 ] 

Eric Evans commented on CASSANDRA-2196:
---------------------------------------

r1072123 broke the CQL system tests with the following logged exception:

{noformat}
java.lang.ClassCastException: org.apache.avro.util.Utf8 cannot be cast to java.lang.String
        at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(UpdateColumnFamily.java:52)
        at org.apache.cassandra.cql.QueryProcessor.process(QueryProcessor.java:638)
        at org.apache.cassandra.thrift.CassandraServer.execute_cql_query(CassandraServer.java:1209)
        at org.apache.cassandra.thrift.Cassandra$Processor$execute_cql_query.process(Cassandra.java:4576)
        at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:3235)
        at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:188)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)
{noformat}

(Trivial )patch attached.

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996555#comment-12996555 ] 

Jonathan Ellis commented on CASSANDRA-2196:
-------------------------------------------

I see the problem. Your CF is named client-hostname, but - is an illegal character in columnfamily names.  Apparently the code that checks that got broken at some point.  How did you create the CF, through the CLI?

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Gary Dusbabek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999648#comment-12999648 ] 

Gary Dusbabek commented on CASSANDRA-2196:
------------------------------------------

+1

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt, v1-0001-CASSANDRA-2196-invoke-toString-instead-of-casting.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Stephen Pope (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996566#comment-12996566 ] 

Stephen Pope commented on CASSANDRA-2196:
-----------------------------------------

Sorry, yeah. I should've mentioned that client-hostname is one of my indexes.

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996591#comment-12996591 ] 

Hudson commented on CASSANDRA-2196:
-----------------------------------

Integrated in Cassandra-0.7 #293 (See [https://hudson.apache.org/hudson/job/Cassandra-0.7/293/])
    validate index namesfor \w+
patch by jbellis; reviewed by gdusbabek for CASSANDRA-2196


> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2196:
--------------------------------------

    Fix Version/s: 0.7.3

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Stephen Pope (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996516#comment-12996516 ] 

Stephen Pope commented on CASSANDRA-2196:
-----------------------------------------

No errors before that one, and the only warning before that is:
 WARN 10:50:25,748 Generated random token Token(bytes[c010b410364388921ed82a633849a3cc]). Random tok
ens will result in an unbalanced ring; see http://wiki.apache.org/cassandra/Operations


> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CASSANDRA-2196) NumberFormatException processing sstable

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996511#comment-12996511 ] 

Jonathan Ellis commented on CASSANDRA-2196:
-------------------------------------------

The bug is that it shouldn't be trying to open a file with "tmp" in the name.

I wonder if this is another one of those bugs where we have unix-oriented assumptions about opened files, that don't hold under Windows.  Can you doublecheck that there are no earlier ERROR or WARN lines in the log?

> NumberFormatException processing sstable
> ----------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.2
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>             Fix For: 0.7.3
>
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2196:
--------------------------------------

    Remaining Estimate: 1h
     Original Estimate: 1h

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (CASSANDRA-2196) Hyphenated index names cause problems

Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Evans updated CASSANDRA-2196:
----------------------------------

    Attachment: v1-0001-CASSANDRA-2196-invoke-toString-instead-of-casting.txt

> Hyphenated index names cause problems
> -------------------------------------
>
>                 Key: CASSANDRA-2196
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2196
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0
>         Environment: Cassandra 0.7.2
> Windows 7 64-bit
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
>            Reporter: Stephen Pope
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.7.3
>
>         Attachments: 2196.txt, v1-0001-CASSANDRA-2196-invoke-toString-instead-of-casting.txt
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When inserting a large number of entries with batch_insert (100000) using thrift compiled into C# there's a NumberFormatException that occurs.
> The first logged entry that tipped me off was this:
>  INFO 10:53:52,171 Writing Memtable-TransactionLogs.client-hostname@350930888(1171371 bytes, 32787 o
> perations)
> ERROR 10:53:52,171 Error in ThreadPoolExecutor
> java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "tmp"
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.NumberFormatException: For input string: "tmp"
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:449)
>         at java.lang.Integer.parseInt(Integer.java:499)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:154)
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:119)
>         at org.apache.cassandra.io.sstable.SSTableWriter.<init>(SSTableWriter.java:67)
>         at org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:156)
>         at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>         at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>         at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>         ... 3 more
>  Which points to the suspect piece of code in Descriptor.java:154 (browse at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/io/sstable/Descriptor.java)
>  The file I believe it's trying to parse is mentioned in my logs as:
> INFO 10:51:31,231 Compacted to C:\cassandra\apache-cassandra-0.7.2\bin\..\Storage\data\system\Index
> Info-tmp-f-6-Data.db.  384 to 225 (~58% of original) bytes for 1 keys.  Time: 281ms.
>  I'm new here, so I'm not sure what needs fixing here (the filename, or the parsing of it).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira