Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11206

Improve S3 extension error message when client connection fails

    • 3
    • StorEng - Defined Pipeline

      When the client connection fails in the S3 connection we incorrectly print this error message.

      /home/ubuntu/wiredtiger/ext/storage_sources/s3_store/test/test_s3_connection.cpp:92: FAILED:
        {Unknown expression after the reported line}
      due to unexpected exception with message:
        s3testext : No such bucket.
      

      This is misleading as "No such bucket." is not necessarily the actual failure. Instead, it can be a result of the _s3CrtClient failing to connect in the constructor. However, we never handle that error and continue down to checking whether the bucket exists or not. We should improve this message to give a more informative message when the client connection fails and/or try the connection again.

      Definition of done

      • The S3 storage-source extension informs the developer that the client connection fails when providing the wrong credentials or other connection related failures.
      • The extension still checks whether the bucket exists after it's connected to the client.
      • All tiered tests pass.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            sean.watt@mongodb.com Sean Watt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: