-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Description
The cache-update message carries a type field for a newly created replica on a worker, but this type does not correspond to the actual type.
Here is the output by printing the cachename and the corresponding type for a replica inside the handle_cache_update function:
cachename: temp-rnd-bxhrzirbuxqwrnm, replica->type: 2
cachename: temp-rnd-kgjhquhucwtfqbj, replica->type: 2
cachename: temp-rnd-csfqdcgsxmygocc, replica->type: 0
cachename: temp-rnd-gwtoipaalahcems, replica->type: 2
cachename: temp-rnd-obatetkslhwcfua, replica->type: 2
cachename: temp-rnd-sfdwikyhjrflykp, replica->type: 2
cachename: temp-rnd-vajbdzycrlbcabe, replica->type: 2
cachename: temp-rnd-kfpwfsfbefddlid, replica->type: 0
cachename: temp-rnd-whwyvueptntmiqp, replica->type: 0
cachename: temp-rnd-ohvbftitvecdbzg, replica->type: 0
cachename: file-meta-85311becb4178d43633d12039060a688, replica->type: 0
cachename: temp-rnd-gnqkxecilnucdpz, replica->type: 2
cachename: file-meta-0e27e14c9c1e49ecf3072c8b6a67bd33, replica->type: 0
cachename: temp-rnd-wobacbfpdxskpmx, replica->type: 2
cachename: temp-rnd-nwprcqrnycqylxu, replica->type: 2
cachename: temp-rnd-tlxarqdoqpnxpgy, replica->type: 0
cachename: temp-rnd-ffgosrpohtcjtbc, replica->type: 2
There exists two problems:
- The type value
0doesn't correspond to any valid entry, since the manager'svine_file_type_tenumurator starts at 1; - TEMP files have inconsistent type values, some are
0while others are2(If0were meant to representVINE_FILEthen2would correspond toVINE_TEMPbut because the starting value is incorrect, both mappings are invalid).
This may cause problems when distinguishing between VINE_TEMP and VINE_FILE replicas. For example, we may need to identify and remove TEMP data if a worker accumulates too much and risks disk exhaustion.
Metadata
Metadata
Assignees
Labels
No labels