1. Remove the $RETRY.
2. When generate the deduped file, select the head continuous data as the deduped chunck.