Mirza Aliev created IGNITE-19674:
------------------------------------

             Summary: Provide an ability to restart 
StandaloneMetaStorageManager with the recovered data
                 Key: IGNITE-19674
                 URL: https://issues.apache.org/jira/browse/IGNITE-19674
             Project: Ignite
          Issue Type: Bug
            Reporter: Mirza Aliev


Currently if we use {{StandaloneMetaStorageManager#create()}} with 
{{RocksDbKeyValueStorage}} in a scenarios when a node is restarted, data in a 
metastorage is not recovering, because the logic in 
{{RocksDbKeyValueStorage#start}} is the following: when we restart 
{{RocksDbKeyValueStorage}}, we call {{recreateDb}} which deletes existing data, 
recovery is relying on the raft's snapshot and log playback.

When we use {{StandaloneMetaStorageManager}} we mock raft layer, meaning that 
we do not restore metastorage using raft's snapshot.

I propose to change a bit {{RocksDbKeyValueStorage}} so it won't delete data 
when it is used in tests scenarios.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to