I ran the 800 GB data consistency test and didn't find any data consistency issues, with the settings suggested here. Every bit of every file written to the cloud drive was downloaded again with no issues.
However, the question remains, as far as what's going on with the chunk deletions, I've added additional safeguards in the latest build (1.0.0.536) to protect against inadvertent chunk deletions due to unforseen bugs.
Starting with 1.0.0.536, any encrypted drives (whether using a public key or a private key) will never allow a full chunk to be uploaded that contains all NULLs. It is a statistical improbability that on an encrypted drive a chunk would contain all zeros. If such a condition is ever encountered the upload will not be allowed to continue and an error will be shown to the user: "Cannot upload a chunk of NULLs on an encrypted drive."
As you're probably aware, there are only 2 instances here when a chunk can be deleted by StableBit CloudDrive:
- When the chunk contains all NULLs, it is more efficient to simply delete it than to re-upload.
- When Google Drive returns the undocumented MIME type error, we attempt to delete the chunk and re-upload. This is specific to Google Drive only. If the upload still fails, the chunk remains deleted, but this is ok since we still have the data that needs to be uploaded stored locally in the cache, and we will retry at a later time.
#1 is now eliminated as a possibility with the new changes for encrypted drives. #2 will now explicitly write a warning-level log entry: "[W] Conflict. Deleting chunk [...], and will attempt to re-upload." So starting with 1.0.0.536, you will now be able to definitively tell why chunks are being deleted on Google Drive.
Because of these changes, I will re-run my 800 GB data consistency test one more time and look not only for data consistency issues but also for NULL upload errors and MIME type upload failures.
If this test passes, I will consider this issue resolved.