Skip to content

ensureLifecycleRuleExist can not correctly parse the result of GetLifecycleConfig on latest AWS S3 #9889

@JaySon-Huang

Description

@JaySon-Huang

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  • Deploy a disaggregated cluster with AWS S3
  • Check the AWS S3 bucket's lifecycle config
  • Check the tiflash wn logging

2. What did you expect to see? (Required)

The AWS S3 bucket is set with a correct lifecycle config. And tiflash logging does not have error.

3. What did you see instead (Required)

[2025/02/18 15:47:25.784 +00:00] [WARN] [S3Common.cpp:847] ["Create lifecycle rule with tag filter \"tiflash_deleted=true\" failed, please check the bucket lifecycle configuration or create the lifecycle rule manually, bucket=tiflash  s3error=UNKNOWN s3exception_name=InvalidArgument s3msg=Unable to parse ExceptionName: InvalidArgument Message: Rule ID must be unique. Found same ID for more than one rule request_id=WH14MR0TVK0DTGN5"] [source="bucket=tiflash root=tiflash_dev/"] [thread_id=371]Show context
[2025/02/18 15:47:25.784 +00:00] [WARN] [S3Common.cpp:145] ["tag=AWSErrorMarshaller message=Encountered Unknown AWSError 'InvalidArgument': Rule ID must be unique. Found same ID for more than one rule"] [source=AWSClient] [thread_id=371]
[2025/02/18 15:47:25.729 +00:00] [INFO] [S3Common.cpp:816] ["The lifecycle rule with filter \"tiflash_deleted=true\" has not been added, n_rules=1"] [source="bucket=tiflash root=tiflash_dev/"] [thread_id=371]

4. What is your TiFlash version? (Required)

nightly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions