Firebase 模拟器导出的数据在计算机重新启动时损坏

kip*_*ip2 6 firebase-tools google-cloud-firestore

我通常这样启动模拟器:

firebase emulators:start --import=test/local-dev --export-on-exit=test/local-dev

目的:将之前导出的数据导入到 local-dev 文件夹中,并在模拟器退出时保存所有数据。

重新启动我的开发计算机 (macOS Catalina) 后,我无法再使用 local-dev 文件夹中的数据,因为模拟器无法通过以下控制台输出启动:

firestore: Fatal error occurred:
   Firestore Emulator has exited with code: 1,
   stopping all running emulators 
Run Code Online (Sandbox Code Playgroud)

firestore-debug.log 的内容:

Exception in thread "main" com.google.cloud.datastore.core.exception.DatastoreException: Failed to parse overall export metadata file
        at com.google.cloud.datastore.emulator.impl.ExportImportUtil.parseOverallMetadataFile(ExportImportUtil.java:229)
        at com.google.cloud.datastore.emulator.impl.ExportImportUtil.fetchEntities(ExportImportUtil.java:56)
        at com.google.cloud.datastore.emulator.firestore.CloudFirestore.main(CloudFirestore.java:89)
Caused by: java.io.FileNotFoundException: ~/project-root/test/local-dev/firestore_export/firestore_export.overall_export_metadata (No such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at com.google.cloud.datastore.emulator.impl.ExportImportUtil.parseOverallMetadataFile(ExportImportUtil.java:219)
        ... 2 more
Run Code Online (Sandbox Code Playgroud)

我注意到firestore_export通常位于 local-dev 中的子文件夹丢失了:

$ ls test/local-dev/
firebase-export-metadata.json
Run Code Online (Sandbox Code Playgroud)

系统关闭过程似乎以某种方式损坏了导出文件夹。有什么想法如何/为什么吗?