【问题标题】:AWS JS SDK: Weird behavior GetBucketLifecycleConfiguration after adding rulesAWS JS SDK:添加规则后的奇怪行为 GetBucketLifecycleConfiguration
【发布时间】:2021-09-13 08:48:43
【问题描述】:

我在 aws js sdk 上发现了一个非常奇怪的错误。

如果我尝试在我的 s3Bucket 中删除/添加 LifecycleRules(使用 putBucketLifecycleConfiguration)并在此调用之后使用 getBucketLifecycleConfiguration 获取这些规则,我可以收到比使用 putBucketLifecycleConfiguration 设置的更多或更少的规则。

如果我继续调用 getBucketLifecycleConfiguration,我将继续收到我设置的或多或少的规则,这似乎是一种随机行为......

你知道这是一个已知的错误还是这种行为的原因?

注意:它似乎与 aws s3api get-bucket-lifecycle-configuration 和 AWS 管理控制台具有相同的行为。
也许我们需要等待 AWS 服务器将数据复制到所有服务器上?

谢谢!

【问题讨论】:

    标签: amazon-web-services amazon-s3 aws-sdk-js


    【解决方案1】:

    这似乎是aws的正常行为,看这个链接: https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html

    Propagation delay
    
    When you add an S3 Lifecycle configuration to a bucket, there is  
     usually some lag before a new or updated Lifecycle configuration is  
     fully propagated to all the Amazon S3 systems. Expect a delay of a  
     few minutes before the configuration fully takes effect.
    This delay can also occur when you delete an S3 Lifecycle configuration.  
    

    【讨论】:

      猜你喜欢
      • 2017-09-05
      • 2019-08-12
      • 2021-06-10
      • 2017-07-21
      • 1970-01-01
      • 1970-01-01
      • 2021-05-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多