MCPcopy Create free account
hub / github.com/apache/cloudberry / S3PartialResponseError

Class S3PartialResponseError

gpcontrib/gpcloud/include/s3exception.h:87–105  ·  view source on GitHub ↗

HTTP request successes, but the data is not received completely.

Source from the content-addressed store, hash-verified

85
86// HTTP request successes, but the data is not received completely.
87class S3PartialResponseError : public S3Exception {
88 public:
89 S3PartialResponseError(uint64_t expected, uint64_t received)
90 : expectedLength(expected), receivedLength(received) {
91 }
92 virtual ~S3PartialResponseError() {
93 }
94 virtual string getMessage() {
95 return "Response is not fully received. Expected: " +
96 std::to_string((unsigned long long)expectedLength) +
97 ", actual received: " + std::to_string((unsigned long long)receivedLength);
98 }
99 virtual string getType() {
100 return "S3PartialResponseError";
101 }
102
103 uint64_t expectedLength;
104 uint64_t receivedLength;
105};
106
107// User presses Ctrl + C or the transaction is aborted.
108class S3QueryAbort : public S3Exception {

Callers 2

TEST_FFunction · 0.85
fillMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68