Skip to content

Listcompactions renders null bytes incorrectly in shell #5954

@alerman

Description

@alerman

Describe the bug
When scanning tables in the shell, null bytes get properly rendered as \x00. Listcompactions however shows it as a 0 length byte. This causes confusion when trying to know what tablets are actually being compacted

Versions (OS, Maven, Java, and others, as appropriate):
All

To Reproduce
Add ts.exec("addsplits -t " + table + " a\0test", true); to listCompactions in ShellServerIT and look at the lines output

Expected behavior
I would expect the null byte to get replaced with \x00 as it does in the scan.

Metadata

Metadata

Assignees

Labels

bugThis issue has been verified to be a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions