Closed pinzi closed 1 year ago
Hi @pinzi could you provide more context about "data cannot be recovered"? Do you mean your instance went offline, and after it's back online you cannot access the data anymore? What steps have you tried?
The server was restarted due to an unexpected power outage in the computer room.One data table cannot be displayed in http://localhost:9000. After the database service is restarted.I did nothing.
What will be in the logs if you do select
from this table?
What will be in the logs if you do
select
from this table?
I can not see it
Hi @pinzi powerless could cause database files corruption, to give you a better context: (from our docs, storage model)
By default QuestDB relies on OS-level data durability leaving the OS to write dirty pages to disk. Data durability can be also configured with
commit()
optionally being able to invokemsync()
with a choice of synchronous or asynchronous IO. Themsync()
calls are made for column files only, so while thesync
/async
commit modes improve the overall durability, they don't guarantee durability in the face of OS errors or power loss.
As for now, we'd recommend users have regular snapshots. https://questdb.io/docs/reference/sql/snapshot/
What will be in the logs if you do
select
from this table?I can not see it
You can still query it and see what logs will say
If you can attach the folder content we can have a look
If you can attach the folder content we can have a look
[0]: Metadata read timeout
Hi @pinzi powerless could cause database files corruption, to give you a better context: (from our docs, storage model)
By default QuestDB relies on OS-level data durability leaving the OS to write dirty pages to disk. Data durability can be also configured with
commit()
optionally being able to invokemsync()
with a choice of synchronous or asynchronous IO. Themsync()
calls are made for column files only, so while thesync
/async
commit modes improve the overall durability, they don't guarantee durability in the face of OS errors or power loss.As for now, we'd recommend users have regular snapshots. https://questdb.io/docs/reference/sql/snapshot/
Snapshot statements are not supported on Windows OS.
Describe the bug
Data cannot be recovered after the server is powered off
To reproduce
the server is powered off
Expected Behavior
No response
Environment
Additional context
No response