Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Take a scenario:
- When we started ozone cluster, I have set ozone.metastore.impl to RocksDB.
- Later I have stopped ozone cluster.
- Changed the configuration of ozone.metastore.impl to LevelDB
Now, when we restart we create KSM DB with a new DB type. With this, we will lose all the information.
To avoid this kind of scenario, when we start KSM, we need to persist the DB used for KSM into a VersionFile, and use this. In this way with later restarts, if we have a version file, we read the dbType from Version file and use it for metadata store.