dwavesystems / minorminer

minorminer is a heuristic tool for minor embedding: given a minor and target graph, it tries to find a mapping that embeds the minor into the target.
https://docs.ocean.dwavesys.com/en/stable/docs_minorminer/source/sdk_index.html
Apache License 2.0
48 stars 40 forks source link

Busgraph cache can get corrupted by a badly-timed interrupt #163

Closed boothby closed 3 years ago

boothby commented 4 years ago

See #162. I believe that the error occurred when the user interrupted fetch_cache while it was writing out to disk. This can be addressed by atomic file operations -- by saving to a temporary file, and then copying that file once the contents have been written out. This should be done for both the LRU index and the individual cache files.

boothby commented 3 years ago

Solved in #187