Try to recreate the database with the same name . Receiving the error.
create database org2;
Query execution failed
Reason:
SQL Error [1772] [HY000]: CREATE PARTITION DATABASE for operation CREATE DATABASE failed with error 1733:Leaf Error (10.100.0.18:3306): Unable to replay files for database ‘org2_6’. Run SHOW DATABASES EXTENDED and visit SHOW DATABASES · SingleStore Documentation for more information
I am facing the same error even when I create a new database. I thought it was because my leaves were down but ‘show leaves’ display all good.
My version is 7.0
ERROR 1772 (HY000): CREATE PARTITION DATABASE for operation CREATE DATABASE failed with error 1733:Leaf Error (:3306): Unable to replay files for database ‘dummy_1’. Run SHOW DATABASES EXTENDED and visit SHOW DATABASES · SingleStore Documentation for more information
On further analysis of logs I found following:
7108627380 2020-02-07 19:12:37.871 ERROR: Thread 99992: createDatabaseHelper: inquire: db creation fails because ‘MetadataManager::CreateDatabase’ failed with error 5.
I have also submitted my cluster report as an email.
So finally with help of @mikeczabator I was able to fix this issue. This error is very cryptic - better error reporting is needed. I was able to fix it as following
Glad we got this figured out! For the sake of posterity, the issue @sanjeev.mishra hit was due to being out of disk space on the leaf servers. MemSQL 7.0+ pre-allocates log space for each partition - which is different from 6.x. A CREATE DATABASE command will fail if there is not enough disk available on the leaves for the pre-allocated logs.