Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Not A Problem
-
None
-
None
-
Low
Description
If a keyspace contains non-utf8 keys (for example, LongType keys), the "list <cf>;" command can fail converting a key for display, only outputting the message "Input length = 1" and stopping the listing of the rest of the keys.
This message seems to be an example of the standard exception message of java.nio.charset.MalformedInputException.
Similar messages will probably appear when utf8 keys are assumed to be long, etc.
Workaround: use "assume <cf> keys as <type>;" - but this will work only of all displayed keys conform to the assumption type.
Suggested fix: If key cannot be converted to the assumption type, instead of
RowKey: <key>
display
RowKey bytes: <keybytes> (cannot convert key to <type>)