Forward RPC errors from crawler (#9569)

The `keepHTTPResponseAlive` would cause errors to be 
returned with status OK.

- Add '32' as a filler byte until a response is ready
- '0' to indicate the response is ready to be consumed
- '1' to indicate response has an error which needs
to be returned to the caller

Clear out 'file not found' errors from dir walker, since it may be 
in a folder that has been deleted since it was scanned.
This commit is contained in:
Klaus Post
2020-05-12 05:41:38 +02:00
committed by GitHub
parent a8e5a86fa0
commit e25ace2151
4 changed files with 44 additions and 19 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ func (f *folderScanner) scanQueuedLevels(ctx context.Context, folders []cachedFo
size, err := f.getSize(Item{Path: path.Join(f.root, entName), Typ: typ})
sleepDuration(time.Since(t), f.dataUsageCrawlMult)
if err == errSkipFile {
if err == errSkipFile || err == errFileNotFound {
return nil
}
logger.LogIf(ctx, err)