All Products
Search
Document Center

Object Storage Service:Handle buckets with both OSS-HDFS and versioning

Last Updated:Jun 18, 2026

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 Scope to Apply to entire bucket. For Current version objects, set the expiration policy to clear delete markers. For Previous version objects and Incomplete multipart uploads, set the expiration policy to Disabled. Then, click OK.