cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joaquin Casares (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CASSANDRA-1170) java.lang.NumberFormatException: For input string: "02473253("
Date Thu, 03 Mar 2011 18:28:36 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002108#comment-13002108
] 

Joaquin Casares edited comment on CASSANDRA-1170 at 3/3/11 6:27 PM:
--------------------------------------------------------------------

This was seen on a 0.6.8 cluster which is fairly fresh.

ERROR [ROW-READ-STAGE:45] 2011-03-02 10:45:39,634 CassandraDaemon.java (line 
87) Uncaught exception in thread Thread[ROW-READ-STAGE:45,5,main] 
java.lang.RuntimeException: java.lang.NumberFormatException: For input 
string: "981834x22" 
at 
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:53) 
at 
org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:60) 
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:619) 
Caused by: java.lang.NumberFormatException: For input string: "981834x22" 
at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 
at java.lang.Integer.parseInt(Integer.java:458) 
at java.math.BigInteger.<init>(BigInteger.java:325) 
at java.math.BigInteger.<init>(BigInteger.java:451) 
at 
org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32) 
at 
org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)

at 
org.apache.cassandra.io.SSTableReader.getNearestPosition(SSTableReader.java:482) 
at org.apache.cassandra.io.SSTableScanner.seekTo(SSTableScanner.java:62) 
at 
org.apache.cassandra.db.ColumnFamilyStore.getKeyRange(ColumnFamilyStore.java:1061) 
at 
org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1155) 
at 
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:41) 

The Hector code that was used to run this was:
private void buildBatchMutation(BatchMutation batch, 
String columnFamily, 
String key, byte [] superColumnKey, byte 
[] columnKey, byte [] columnVal) 
{ 
  List<String> columnFamilies = new ArrayList<String>();

  columnFamilies.add(columnFamily);

  if (columnVal == null) 
  { 
    Deletion deletion = new Deletion(); 
    SlicePredicate slicePredicate = new SlicePredicate(); 
    List<byte[]> columnList = new ArrayList<byte[]>();

    columnList.add(columnKey); 
    slicePredicate.setColumn_names(columnList);

    if (superColumnKey != null) 
    deletion.setSuper_column(superColumnKey);

    deletion.predicate = slicePredicate; 
    deletion.setTimestamp(System.currentTimeMillis() * 1000);

    batch.addDeletion(key, columnFamilies, deletion); 
  } 
  else 
  { 
    Column column = new Column();

    column.setName(columnKey); 
    column.setValue(columnVal); 
    column.setTimestamp(System.currentTimeMillis() * 1000);

    if (superColumnKey == null) 
      batch.addInsertion(key, columnFamilies, column); 
    else 
    { 
      SuperColumn superColumn = new SuperColumn(); 
      List<Column> columns = new ArrayList<Column>();

      columns.add(column); 
      superColumn.setColumns(columns); 
      superColumn.setName(superColumnKey);

      batch.addSuperInsertion(key, columnFamilies, superColumn); 
    } 
  } 
}
If this helps any. Properly formatted: http://pastebin.com/SGu9AuDV

      was (Author: j.casares):
    ERROR [ROW-READ-STAGE:45] 2011-03-02 10:45:39,634 CassandraDaemon.java (line 
87) Uncaught exception in thread Thread[ROW-READ-STAGE:45,5,main] 
java.lang.RuntimeException: java.lang.NumberFormatException: For input 
string: "981834x22" 
at 
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:53) 
at 
org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:60) 
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:619) 
Caused by: java.lang.NumberFormatException: For input string: "981834x22" 
at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 
at java.lang.Integer.parseInt(Integer.java:458) 
at java.math.BigInteger.<init>(BigInteger.java:325) 
at java.math.BigInteger.<init>(BigInteger.java:451) 
at 
org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32) 
at 
org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)

at 
org.apache.cassandra.io.SSTableReader.getNearestPosition(SSTableReader.java:482) 
at org.apache.cassandra.io.SSTableScanner.seekTo(SSTableScanner.java:62) 
at 
org.apache.cassandra.db.ColumnFamilyStore.getKeyRange(ColumnFamilyStore.java:1061) 
at 
org.apache.cassandra.db.ColumnFamilyStore.getRangeSlice(ColumnFamilyStore.java:1155) 
at 
org.apache.cassandra.service.RangeSliceVerbHandler.doVerb(RangeSliceVerbHandler.java:41) 

This was seen on a 0.6.8 cluster which is fairly fresh.

The Hector code that was used to run this was:
private void buildBatchMutation(BatchMutation batch, 
String columnFamily, 
String key, byte [] superColumnKey, byte 
[] columnKey, byte [] columnVal) 
{ 
  List<String> columnFamilies = new ArrayList<String>();

  columnFamilies.add(columnFamily);

  if (columnVal == null) 
  { 
    Deletion deletion = new Deletion(); 
    SlicePredicate slicePredicate = new SlicePredicate(); 
    List<byte[]> columnList = new ArrayList<byte[]>();

    columnList.add(columnKey); 
    slicePredicate.setColumn_names(columnList);

    if (superColumnKey != null) 
    deletion.setSuper_column(superColumnKey);

    deletion.predicate = slicePredicate; 
    deletion.setTimestamp(System.currentTimeMillis() * 1000);

    batch.addDeletion(key, columnFamilies, deletion); 
  } 
  else 
  { 
    Column column = new Column();

    column.setName(columnKey); 
    column.setValue(columnVal); 
    column.setTimestamp(System.currentTimeMillis() * 1000);

    if (superColumnKey == null) 
      batch.addInsertion(key, columnFamilies, column); 
    else 
    { 
      SuperColumn superColumn = new SuperColumn(); 
      List<Column> columns = new ArrayList<Column>();

      columns.add(column); 
      superColumn.setColumns(columns); 
      superColumn.setName(superColumnKey);

      batch.addSuperInsertion(key, columnFamilies, superColumn); 
    } 
  } 
}
If this helps any. Properly formatted: http://pastebin.com/SGu9AuDV
  
> java.lang.NumberFormatException: For input string: "02473253("
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-1170
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1170
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6.2
>         Environment: Cassandra 0.6.2
> Ubuntu 9.10 on EC2
> java version "1.6.0_0"
> IcedTea6 1.3.1 (6b12-0ubuntu6.6) Runtime Environment (build 1.6.0_0-b12)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
>            Reporter: David King
>
> When trying to boot a node:
>  INFO 11:05:16,117 Sampling index for /cassandra/data/permacache/permacache-13662-Data.db
> ERROR 11:05:17,389 Exception encountered during startup.
> java.lang.NumberFormatException: For input string: "72392391 "
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:481)
>         at java.math.BigInteger.<init>(BigInteger.java:343)
>         at java.math.BigInteger.<init>(BigInteger.java:467)
>         at org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32)
>         at org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)
>         at org.apache.cassandra.io.SSTableReader.loadIndexFile(SSTableReader.java:261)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:125)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:114)
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:178)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:248)
>         at org.apache.cassandra.db.Table.<init>(Table.java:338)
>         at org.apache.cassandra.db.Table.open(Table.java:199)
>         at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:91)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
> Exception encountered during startup.
> java.lang.NumberFormatException: For input string: "72392391 "
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:481)
>         at java.math.BigInteger.<init>(BigInteger.java:343)
>         at java.math.BigInteger.<init>(BigInteger.java:467)
>         at org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32)
>         at org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)
>         at org.apache.cassandra.io.SSTableReader.loadIndexFile(SSTableReader.java:261)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:125)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:114)
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:178)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:248)
>         at org.apache.cassandra.db.Table.<init>(Table.java:338)
>         at org.apache.cassandra.db.Table.open(Table.java:199)
>         at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:91)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
> I deleted the sstable with the broken key (RF==3, so I figured I could just repair when
it came back up), but now instead I get:
> ERROR 11:16:02,045 Exception encountered during startup.
> java.lang.NumberFormatException: For input string: "02473253("
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:481)
>         at java.math.BigInteger.<init>(BigInteger.java:343)
>         at java.math.BigInteger.<init>(BigInteger.java:467)
>         at org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32)
>         at org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)
>         at org.apache.cassandra.io.SSTableReader.loadIndexFile(SSTableReader.java:261)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:125)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:114)
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:178)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:248)
>         at org.apache.cassandra.db.Table.<init>(Table.java:338)
>         at org.apache.cassandra.db.Table.open(Table.java:199)
>         at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:91)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)
> Exception encountered during startup.
> java.lang.NumberFormatException: For input string: "02473253("
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>         at java.lang.Integer.parseInt(Integer.java:481)
>         at java.math.BigInteger.<init>(BigInteger.java:343)
>         at java.math.BigInteger.<init>(BigInteger.java:467)
>         at org.apache.cassandra.dht.BigIntegerToken.<init>(BigIntegerToken.java:32)
>         at org.apache.cassandra.dht.RandomPartitioner.convertFromDiskFormat(RandomPartitioner.java:53)
>         at org.apache.cassandra.io.SSTableReader.loadIndexFile(SSTableReader.java:261)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:125)
>         at org.apache.cassandra.io.SSTableReader.open(SSTableReader.java:114)
>         at org.apache.cassandra.db.ColumnFamilyStore.<init>(ColumnFamilyStore.java:178)
>         at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:248)
>         at org.apache.cassandra.db.Table.<init>(Table.java:338)
>         at org.apache.cassandra.db.Table.open(Table.java:199)
>         at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:91)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:177)

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

        

Mime
View raw message