featurebase/cmd
Lory Cloutier 748fdc3741 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>
(cherry picked from commit a8996a149d)
2023-01-10 23:20:15 +00:00
..
badloader Fixed some import issues resulting from syncing the private repo 2022-11-17 08:58:22 -08:00
featurebase FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
featurebase-parse-sql cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
pilosa-bench fix: updating code to meet linting requirements (#2171) 2022-09-29 12:34:29 -04:00
roaring-migrate staticcheck fixes (#2278) 2022-11-15 11:33:10 -08:00
slurp staticcheck fixes (#2278) 2022-11-15 11:33:10 -08:00
auth_token.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
backup.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
backup_tar.go Prevent file corruption when writing tar backup to stdout (#2344) 2023-01-10 23:20:15 +00:00
chksum.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
cli.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
config.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
dataframe-csv-loader.go Fb 1874 dataframe-csv-loader featurebase subcommand (#2341) 2023-01-10 23:20:15 +00:00
dax.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
doc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
export.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
export_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
generate_config.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
import.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
import_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
keygen.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
restore.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
restore_tar.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
root.go Prevent file corruption when writing tar backup to stdout (#2344) 2023-01-10 23:20:15 +00:00
root_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
server.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
server_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00