You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Kishan Karunaratne (JIRA)" <ji...@apache.org> on 2014/06/30 23:17:25 UTC

[jira] [Created] (CASSANDRA-7477) JSON to SSTable import failing

Kishan Karunaratne created CASSANDRA-7477:
---------------------------------------------

             Summary: JSON to SSTable import failing
                 Key: CASSANDRA-7477
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7477
             Project: Cassandra
          Issue Type: Bug
         Environment: Linux Mint 17 64-bit | 16GiB | C* 2.1
            Reporter: Kishan Karunaratne
             Fix For: 2.1.0


Issue affects C* version >= 2.1. Commit found by using git bisect. The previous commit also fails, but due to other reasons (CCM server won't start). This commit is the one that give the same error as 2.1 HEAD:

02d1e7497a9930120fac367ce82a3b22940acafb is the first bad commit
commit 02d1e7497a9930120fac367ce82a3b22940acafb
Author: Brandon Williams <br...@apache.org>
Date:   Mon Apr 21 14:42:29 2014 -0500

    Default flush dir to data dir.
    Patch by brandonwilliams, reviewed by yukim for CASSANDRA-7064

:040000 040000 c50a123f305b73583ccbfa9c455efc4e4cee228f 507a90290dccb8a929afadf1f833d926049c46ad M	conf

-------------------------------------------------------------------------------------

$ PRINT_DEBUG=true nosetests -x -s -v json_tools_test.py 
json_tools_test (json_tools_test.TestJson) ... cluster ccm directory: /tmp/dtest-8WVBq9
Starting cluster...
Version: 2.1.0
Getting CQLSH...
Inserting data...
Flushing and stopping cluster...
Exporting to JSON file...
-- test-users-ka-1-Data.db -----

Deleting cluster and creating new...
Inserting data...
Importing JSON file...
Counting keys to import, please wait... (NOTE: to skip this use -n <num_keys>)
Importing 2 keys...
java.lang.ClassCastException: org.apache.cassandra.db.composites.Composites$EmptyComposite cannot be cast to org.apache.cassandra.db.composites.CellName
	at org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:168)
	at org.apache.cassandra.tools.SSTableImport$JsonColumn.<init>(SSTableImport.java:165)
	at org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:242)
	at org.apache.cassandra.tools.SSTableImport.addToStandardCF(SSTableImport.java:225)
	at org.apache.cassandra.tools.SSTableImport.importSorted(SSTableImport.java:464)
	at org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:351)
	at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:575)
ERROR: org.apache.cassandra.db.composites.Composites$EmptyComposite cannot be cast to org.apache.cassandra.db.composites.CellName
Verifying import...
data: [[u'gandalf', 1955, u'male', u'p@$$', u'WA']]
FAIL
removing ccm cluster test at: /tmp/dtest-8WVBq9
ERROR

======================================================================
ERROR: json_tools_test (json_tools_test.TestJson)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kishan/git/cstar/cassandra-dtest/dtest.py", line 214, in tearDown
    raise AssertionError('Unexpected error in %s node log: %s' % (node.name, errors))
AssertionError: Unexpected error in node1 node log: ['ERROR [SSTableBatchOpen:1] 2014-06-30 13:56:01,032 CassandraDaemon.java:166 - Exception in thread Thread[SSTableBatchOpen:1,5,main]\n']
-------------------- >> begin captured logging << --------------------
dtest: DEBUG: cluster ccm directory: /tmp/dtest-8WVBq9
dtest: DEBUG: Starting cluster...
dtest: DEBUG: Version: 2.1.0
dtest: DEBUG: Getting CQLSH...
dtest: DEBUG: Inserting data...
dtest: DEBUG: Flushing and stopping cluster...
dtest: DEBUG: Exporting to JSON file...
dtest: DEBUG: Deleting cluster and creating new...
dtest: DEBUG: Inserting data...
dtest: DEBUG: Importing JSON file...
dtest: DEBUG: Verifying import...
dtest: DEBUG: data: [[u'gandalf', 1955, u'male', u'p@$$', u'WA']]
dtest: DEBUG: removing ccm cluster test at: /tmp/dtest-8WVBq9
--------------------- >> end captured logging << ---------------------



--
This message was sent by Atlassian JIRA
(v6.2#6252)