Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tile38-cli outputs redis-protocol-internal response size when piping #603

Closed
bb opened this issue Mar 19, 2021 · 1 comment
Closed

tile38-cli outputs redis-protocol-internal response size when piping #603

bb opened this issue Mar 19, 2021 · 1 comment
Milestone

Comments

@bb
Copy link
Contributor

bb commented Mar 19, 2021

Describe the bug
When calling tile38-cli with a command and piping that to some other tool, like cat, less, jq or prettybat, the output includes the response payload

To Reproduce
Pipe the output to cat:

$447
{"ok":true,"stats":{"aof_size":3091475226,"avg_item_size":21,"cpus":8,"heap_released":1903591424,"heap_size":2776575784,"http_transport":true,"id":"202078766d26ed0d76d491df7627f832","in_memory_size":2051269051,"max_heap_size":0,"mem_alloc":2776575784,"num_collections":2,"num_hooks":0,"num_objects":11153,"num_points":128197977,"num_strings":0,"pid":14504,"pointer_size":8,"read_only":false,"threads":15,"version":"1.22.6"},"elapsed":"1.187773ms"}

Expected behavior
The $447 in the above output should not be there.

Workaround: tile38-cli --tty server | cat produces the wanted output.

Operating System (please complete the following information):

  • OS: macOS
  • Version 1.22.6
@bb bb changed the title tile38-cli outputs response-internal response size when piping tile38-cli outputs redis-protocol-internal response size when piping Mar 19, 2021
@tidwall tidwall added this to the 1.23.0 milestone Mar 30, 2021
@bb
Copy link
Contributor Author

bb commented Apr 2, 2021

Thanks for fixing that. Works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants