Enabling both OSS-HDFS and versioning for a bucket can disrupt OSS-HDFS operations. To ensure OSS-HDFS stability, suspend versioning and configure a lifecycle rule to clear delete markers.
Suspend versioning
Suspend versioning from the OSS console, Alibaba Cloud SDK, or ossutil. For instructions, see Suspend versioning.
Configure a lifecycle rule to clear delete markers
Set up a lifecycle rule to periodically remove delete markers. For instructions, see Delete expired delete markers.
In the Create a lifecycle rule dialog box, set Status to Enabled and Applied To to Whole Bucket. For Current version objects, set the expiration policy to Removal of Delete Marker. For Previous version objects and Delete Parts, set the expiration policy to Disabled. Then, click OK.