dolthub / dolt

Dolt – Git for Data
Apache License 2.0
17.58k stars 498 forks source link

Bad error message `error bootstrapping chunk journal: journal index is malformed` when a new client connects to an older version of the server #8002

Open timsehn opened 2 months ago

timsehn commented 2 months ago

I have a long running server process to process the wikipedia import. I build dolt from main every day or so. I use the dolt CLI to connect to the server, make commits, push and gc. If the dolt used for the client gets too far ahead of the dolt used for the server, I get the following scary error message:

$ dolt push                                 
Failed to load database.
error bootstrapping chunk journal: journal index is malformed
$ dolt gc
Failed to load database.
error bootstrapping chunk journal: journal index is malformed
$ dolt commit -am "3,063,000 pages imported"
error: Failed to commit changes.

The fix is to stop the server and start it again as the error is a symptom of the client being too far ahead of the server.

We should make the error message less scary and suggest the user restarts their server with the latest Dolt.