You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ dolt sql
# Welcome to the DoltSQL shell.
# Statements must be terminated with ';'.
# "exit" or "quit" (or Ctrl-D) to exit. "\help" for help.
media_wiki/main*> select count(*) from dolt_statistics;
+----------+
| count(*) |
+----------+
| 24967 |
+----------+
1 row in set (0.01 sec)
After server restart:
media_wiki/main> select count(*) from dolt_statistics;
+----------+
| count(*) |
+----------+
| 1559 |
+----------+
1 row in set (0.00 sec)
I had to kill the server because it seemd to hang but I had statistics off.
The text was updated successfully, but these errors were encountered:
A race between concurrent ANALYZE/background thread update could explain dropped statistics. But there is a lot going on here that makes it difficult to understand. Some things that would be helpful are (1) errors in debug logs on startup, (2) zip of the statistics database that fails to load fully. Restarting going to zero doesn't make sense to me yet, a thread can only lock one table at a time, it should be hard for that race to clear the whole database.
Another thing -- in order to avoid stats failures preventing server startup, we log context warnings on error. If stats do not load SHOW WARNINGS might have clues.
Before server restart:
After server restart:
I had to kill the server because it seemd to hang but I had statistics off.
The text was updated successfully, but these errors were encountered: