Better AWS error messages
[?]
Feb 26, 2016, 9:40 PM
RX6UB7YWLTJXJTFHFHU3W4W5LZIFHZJ4E6WGACPTQONBROFCNWNQCDependencies
- [2]
QSBS2ISOS3BinaryCacheStore::isValidPath(): Do a GET instead of HEAD - [3]
AMXZL5ORUse US standard S3 region - [4]
QDEGRYZVReduce severity level of some message - [5]
ZM34T2NWTypo - [6]
GTUZLZRHAdd an S3-backed binary cache store - [7]
SOB276BAKeep some statistics for the binary cache stores
Change contents
- replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 25
R && checkAws(Aws::Utils::Outcome<R, E> && outcome)R && checkAws(const FormatOrString & fs, Aws::Utils::Outcome<R, E> && outcome) - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 30
format("AWS error: %1%") % outcome.GetError().GetMessage());fs.s + ": " + outcome.GetError().GetMessage()); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 62
throw Error(format("AWS error: %1%") % res.GetError().GetMessage());throw Error(format("AWS error checking bucket ‘%s’: %s") % bucketName % res.GetError().GetMessage()); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 64
checkAws(client->CreateBucket(Aws::S3::Model::CreateBucketRequest().WithBucket(bucketName).WithCreateBucketConfiguration(Aws::S3::Model::CreateBucketConfiguration()/* .WithLocationConstraint(Aws::S3::Model::BucketLocationConstraint::US) */ )));checkAws(format("AWS error creating bucket ‘%s’") % bucketName,client->CreateBucket(Aws::S3::Model::CreateBucketRequest().WithBucket(bucketName).WithCreateBucketConfiguration(Aws::S3::Model::CreateBucketConfiguration()/* .WithLocationConstraint(Aws::S3::Model::BucketLocationConstraint::US) */ ))); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 111
throw Error(format("AWS error: %1%") % error.GetMessage());throw Error(format("AWS error fetching ‘%s’") % path % error.GetMessage()); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 133
auto result = checkAws(client->PutObject(request));auto result = checkAws(format("AWS error uploading ‘%s’") % path,client->PutObject(request)); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 161
auto result = checkAws(client->GetObject(request));auto result = checkAws(format("AWS error fetching ‘%s’") % path,client->GetObject(request)); - replacement in src/hydra-queue-runner/s3-binary-cache-store.cc at line 170
printMsg(lvlInfo, format("downloaded ‘s3://%1%/%2%’ (%3% bytes) in %4% ms")printMsg(lvlTalkative, format("downloaded ‘s3://%1%/%2%’ (%3% bytes) in %4% ms")