DanEngelbrecht / golongtail

Command line front end for longtail synchronization tool
MIT License
26 stars 8 forks source link

prune-store command crash #229

Closed myuniquename closed 2 years ago

myuniquename commented 2 years ago

Hello,

I'm was trying to test prune-store command and I got a crash. Could you please help me to understand it?

Command: longtail-win32-x64.exe prune-store --storage-uri e:\longtail_storage\purge_storage\storage --source-paths e:\longtail_storage\prune_sources.txt

prune_sources.txt crashlog.txt

I'm running Logtail version v0.3.6-pre8 on Windows

DanEngelbrecht commented 2 years ago

Nothing obvious pops out. Tried running prune on a small set locally without crash. Try running with --log-level debug, it might reveal some details about what is going on.

Also, try with --dry-run to see how many blocks it would keep without changing the data in the store.

myuniquename commented 2 years ago

I've made a test storage with error reproduced: https://drive.google.com/file/d/1JX55kJGv8BLQJ9eJVBL0xS5RfmwAnq1M/view?usp=sharing

Inside of it you can find storage in repro\epic_store\storage Index files are in repro\epic_store\index repro\example_prune_command.txt is an example prune command I was using repro\example_upsync_command.txt is an upsync command example repro\epic_prune.txt is a source file I've created for source-paths argument for a prune-store command

DanEngelbrecht commented 2 years ago

Looks like example_prune_command.txt contains the same line as example_upsync_command.txt, probably a copy/paste error. I'll make due anyway.

DanEngelbrecht commented 2 years ago

Please try out 0.3.7-pre1. The crash was specific when using a local file system store. https://github.com/DanEngelbrecht/golongtail/releases/tag/v0.3.7-pre1

myuniquename commented 2 years ago

Than you! Issue was fixed!