featurebase/cmd
Lory Cloutier a8996a149d
Prevent file corruption when writing tar backup to stdout (#2344)
* Prevent file corruption when writing tar backup to stdout

FB-1794

Tar backups written to stdout were coming out corrupt. This turned
out to be due to log messages getting written to stdout and ending
up in the tar file. We now check to see if the tar file and the log
are both going to stdout, and if they are, send the logs to stderr
instead.

Testing did not have any kind of consistency or validity check. We
now compare a tar file sent to a file and a tar file sent to stdout
to make sure they're the same. This does not guarantee correctness
but does at least catch this form of corruption.

* trying different index name

Co-authored-by: tgruben <tgruben@gmail.com>
Co-authored-by: Todd Gruben <todd@molecula.com>
2022-12-13 13:03:16 -06:00
..
badloader staticcheck fixes (#2278) 2022-11-07 10:51:55 -06:00
featurebase FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
featurebase-parse-sql added /sql endpoint; implemented SHOW TABLES (#1935) 2022-08-31 13:01:05 -07:00
pilosa-bench staticcheck fixes (#2278) 2022-11-07 10:51:55 -06:00
roaring-migrate staticcheck fixes (#2278) 2022-11-07 10:51:55 -06:00
slurp staticcheck fixes (#2278) 2022-11-07 10:51:55 -06:00
auth_token.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
backup.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
backup_tar.go Prevent file corruption when writing tar backup to stdout (#2344) 2022-12-13 13:03:16 -06:00
chksum.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
cli.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
config.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
dataframe-csv-loader.go Fb 1874 dataframe-csv-loader featurebase subcommand (#2341) 2022-12-12 15:13:58 -06:00
dax.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
doc.go add copyright notice back in 2021-12-10 11:01:04 -06:00
export.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
export_test.go Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
generate_config.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
import.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
import_test.go Add DAX - full list of squashed commits below 2022-11-16 11:19:40 -06:00
keygen.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
rbf.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
restore_tar.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
root.go Prevent file corruption when writing tar backup to stdout (#2344) 2022-12-13 13:03:16 -06:00
root_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
server.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-11-29 12:49:36 -06:00
server_test.go remove unused env var from test 2022-02-11 12:02:10 -06:00