Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29814

Don't WARN about ObjectLockConfiguration on regular S3 buckets

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF34
    • Fix Version/s: 10.10-HF36, 11.4, 2021.0
    • Component/s: Retention, S3
    • Release Notes Summary:
      The warning about ObjectLockConfiguration on regular S3 buckets has been removed.
    • Tags:
    • Backlog priority:
      900
    • Team:
      FG
    • Story Points:
      1

      Description

      On regular S3 buckets, we get this exception in the logs at startup:

      2020-10-29T15:00:01,122 WARN  [S3BlobStoreConfiguration] Failed to get ObjectLockConfiguration for bucket: mybucket
      com.amazonaws.services.s3.model.AmazonS3Exception: Object Lock configuration does not exist for this bucket (Service: Amazon S3; Status Code: 404; Error Code: ObjectLockConfigurationNotFoundError; Request ID: AH4S2S2MFK1Q2V8P; S3 Extended Request ID: RyrfrlZMJpG6gLOdFGiVzWjMKlX7VH/rnqQORCKJ7Xi5Y+COh3I13S6zUWMdc+qNG4lWyiVPR/4=; Proxy: null)
      	at org.nuxeo.ecm.blob.s3.S3BlobStoreConfiguration.computeBucketRetentionMode(S3BlobStoreConfiguration.java:441) ~[nuxeo-core-binarymanager-s3-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.blob.s3.S3BlobStoreConfiguration.<init>(S3BlobStoreConfiguration.java:222) ~[nuxeo-core-binarymanager-s3-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.blob.s3.S3BlobProvider.getConfiguration(S3BlobProvider.java:108) ~[nuxeo-core-binarymanager-s3-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.blob.s3.S3BlobProvider.getBlobStore(S3BlobProvider.java:76) ~[nuxeo-core-binarymanager-s3-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobStoreBlobProvider.initialize(BlobStoreBlobProvider.java:60) ~[nuxeo-core-api-10.10-HF34.jar:?]
      

      This message is harmless but should actually be hidden, as it's normal for a regular bucket to not have object lock configuration.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.