Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to check the WAITING_STATUS when deal with deleted file.
The current logic would have the following bug: 1. Upload work report stuck for a long time (>1 min) due to network instable 2. A call to /storage/delete is invoked to delete a CID which is in the work report being uploaded in #1. 3. Ecall_main_loop is run and then the Workload::deal_deleted_file would be called, here the CID be deleted in the above #2 step would be erased permanently. 4. Work report upload return back. Since the CID has been deleted in #3 permanently, so this CID would NOT be able to include in the next work report as the deleted_files, then the File size check would fail in Crust Mainnet, resulted in the E10003-FileTransitionError seen in sworker side.
- Loading branch information