You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Antonio (Jira)" <ji...@apache.org> on 2020/03/09 09:56:00 UTC

[jira] [Updated] (CASSANDRA-15625) Nodetool toppartitions error

     [ https://issues.apache.org/jira/browse/CASSANDRA-15625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio updated CASSANDRA-15625:
--------------------------------
    Description: 
c* version :3.0.15

here's my test table:
CREATE TABLE app300.test (
 a bigint PRIMARY KEY,
 b text,
 c text
)

INSERT INTO app300.test(a ,b, c ) VALUES (500000, 'test1', 'test1');

when i use topartition :nodetool  toppartitions app300 test 500000,get error

error: Expected 8 or 0 byte long (1048576)
-- StackTrace --
org.apache.cassandra.serializers.MarshalException: Expected 8 or 0 byte long (1048576)
	at org.apache.cassandra.serializers.LongSerializer.validate(LongSerializer.java:42)
	at org.apache.cassandra.db.marshal.AbstractType.getString(AbstractType.java:128)
	at org.apache.cassandra.db.ColumnFamilyStore.finishLocalSampling(ColumnFamilyStore.java:1579)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)




but when i flush this table, topartition can work 
 

  was:
c* version :3.0.15

here's my test table:
CREATE TABLE app300.test (
 a bigint PRIMARY KEY,
 b text,
 c text
)

INSERT INTO app300.test(a ,b, c ) VALUES (500000, 'test1', 'test1');

when i use topartition :nodetool  toppartitions app300 test 500000,get error

error: Expected 8 or 0 byte long (1048576)
-- StackTrace --
org.apache.cassandra.serializers.MarshalException: Expected 8 or 0 byte long (1048576)
	at org.apache.cassandra.serializers.LongSerializer.validate(LongSerializer.java:42)
	at org.apache.cassandra.db.marshal.AbstractType.getString(AbstractType.java:128)
	at org.apache.cassandra.db.ColumnFamilyStore.finishLocalSampling(ColumnFamilyStore.java:1579)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


 but when i flush this table, topartition can work 
 


> Nodetool toppartitions error
> ----------------------------
>
>                 Key: CASSANDRA-15625
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15625
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Antonio
>            Priority: Normal
>
> c* version :3.0.15
> here's my test table:
> CREATE TABLE app300.test (
>  a bigint PRIMARY KEY,
>  b text,
>  c text
> )
> INSERT INTO app300.test(a ,b, c ) VALUES (500000, 'test1', 'test1');
> when i use topartition :nodetool  toppartitions app300 test 500000,get error
> error: Expected 8 or 0 byte long (1048576)
> -- StackTrace --
> org.apache.cassandra.serializers.MarshalException: Expected 8 or 0 byte long (1048576)
> 	at org.apache.cassandra.serializers.LongSerializer.validate(LongSerializer.java:42)
> 	at org.apache.cassandra.db.marshal.AbstractType.getString(AbstractType.java:128)
> 	at org.apache.cassandra.db.ColumnFamilyStore.finishLocalSampling(ColumnFamilyStore.java:1579)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> but when i flush this table, topartition can work 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org