History store file access during recovery flow when it is not present as part of the metadata file has the following two problems.
- During recovery checkpoint, if the history store file is not part of the checkpoint, we get an error as No such file or directory. Need to ignore that error and continue with the rest of the checkpoint operation.
- As part of the connection open, history store file gets recreated every time. When the file is part of the metadata file, it doesn't create any more. But in some scenarios, it is possible that history store file exist in the directory but in the metadata file. In those scenarios, we should remove the existing history store file and recreate it again.