If, when a database is created, it was not possible to create any of
This commit changes fabric_util:get_db/2 to create the shard file if
It's tricky. You need to have max_dbs_open's worth of files open on all nodes when creating the database. This ensures the _dbs doc is created (as this db is opened at startup and stays open) but none of the shards.
The easiest test is as follows;
retry with the patch and step 5 is successful (and the shard files appear on disk).
Related Issues or Pull Requests
If, when a database is created, it was not possible to create any of the shard files, the database cannot be used. All requests return a "No DB shards could be opened." error. This commit changes fabric_util:get_db/2 to create the shard file if missing. This is correct as that function has already called mem3:shards(DbName) which only returns shards if the database exists.