我在aws-js-sdk上发现了一个非常奇怪的错误。
如果我尝试在s3Bucket中删除/添加LifecycleRules(使用putBucketLifecycleConfiguration(,并在调用后使用getBucketLifeCycleConfigurattion获取这些规则,我可以接收到比使用putBucket LifecycleCoonfiguration设置的规则更多或更少的规则。
如果我继续调用getBucketLifecycleConfiguration,我将继续收到或多或少的规则,这似乎是一种随机行为。。。
你知道这是一个已知的错误还是这种行为的原因吗?
注意:在AWS管理控制台中,它似乎与aws s3api get-bucket-lifecycle-configuration
AND具有相同的行为
也许我们必须等待AWS服务器在所有服务器上复制数据?
谢谢!
这似乎是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.