Engineering / Field note
An S3 upload timeout needs a reconciliation step
Five fictional review records explain uncertain uploads, metadata reads, conditional creates, and why a different object key still needs an ownership decision.
An upload times out. The tempting next step is another upload, preferably with more confidence and a larger timeout. The missing piece is evidence: a client that stopped waiting has not necessarily learned whether the service stored the object. A recovery process needs to preserve that uncertainty long enough to choose a sensible next action.
This November 29, 2026 reference review covers Amazon S3's established HeadObject, PutObject and conditional-write contracts for general purpose buckets. It is not a new vulnerability announcement or a report about a particular deployment. The five JSON examples are fictional review records, not API requests, captured AWS responses, or operations we performed. [1] [2] [3]
Start by separating the local observation from the remote outcome. AWS documents that a successful PutObject response means the entire object was stored; S3 does not add a partial object through that operation. If that response never reaches the caller, our interpretation is to record an unknown result rather than manufacture either a successful receipt or a confirmed failure. [2]
{
"fictional_example": true,
"operation": "PutObject",
"key": "example/job-A.bin",
"client_observation": "transport timeout",
"successful_response_received": false,
"remote_outcome": "unknown",
"next_step": "reconcile the original attempt"
}HeadObject can help because it returns object metadata without the object body. Its errors need careful reading: AWS says a missing object's response depends on the caller's ListBucket permission. With that permission, absence produces 404; without it, absence produces 403. Consequently, 403 alone cannot distinguish an unavailable object from an unavailable answer. Keep the diagnostic inside existing access boundaries. [1]
{
"fictional_example": true,
"metadata_read_status": 403,
"object_absence_established": false,
"automatic_permission_expansion": false,
"decision": "resolve the read boundary before classifying the object"
}Strong consistency does not turn a read into a reservation. S3 documents strongly consistent object metadata reads and read-after-write behavior. It also explains that concurrent operations can overlap. Our practical consequence: a 404 observed while an earlier uploader might still be running describes the read's position in time. It cannot promise that the earlier writer will never finish later. [4]
When metadata is available, compare it with the intended artifact. Record the bucket/key and, when relevant, version, expected length and a suitable checksum. A missing checksum remains a gap; do not fill it with an assumption. AWS documents checksum retrieval controls and additional KMS permission requirements in HeadObject. Matching metadata can support a reuse decision, while downstream installation or processing still needs its own evidence. [1]
{
"fictional_example": true,
"expected": {
"bytes": 4096,
"checksum_algorithm": "SHA256",
"checksum": "illustrative-digest-A"
},
"observed": {
"bytes": 4096,
"checksum_algorithm": "SHA256",
"checksum": "illustrative-digest-A"
},
"artifact_reuse_candidate": true,
"downstream_job_completed": false
}For an authorized create operation, If-None-Match: * moves the existence check into the write itself. AWS documents 412 when the precondition fails because the key already exists, and 409 for a conflicting operation. For PutObject, its documented 409 handling allows an upload retry. That is a specific service response to classify, rather than a meaning to assign to every transport timeout. [2] [3]
{
"fictional_example": true,
"operation": "PutObject",
"precondition": {
"If-None-Match": "*"
},
"response_rules": {
"412": "reconcile the existing object",
"409": "review the documented conflict retry path",
"transport timeout": "retain unknown outcome"
},
"blind_overwrite_selected": false
}The condition has a defined scope. For a versioned bucket, AWS says If-None-Match considers the current version; a current delete marker permits the write. It does not mean that the key has never existed. Similarly, a different object key protects a different name. It does not cancel a request still targeting the earlier name, or make the two names one business transaction. [3] [4]
{
"fictional_example": true,
"original": {
"key": "example/job-A.bin",
"outcome": "unknown"
},
"separate_candidate": {
"key": "example/job-B.bin",
"conditional_create": true
},
"original_request_canceled_by_new_key": false,
"both_objects_may_eventually_exist": true,
"decision": "reconcile ownership and consumption of both keys"
}A separate key can therefore be a deliberate recovery design, but it also creates work: choosing the accepted artifact, preventing duplicate consumption, retaining the old uncertainty, and arranging later reconciliation. It is not a generic instruction to change keys after every timeout. Preserve the original request identity and payload details so a later result still has somewhere to belong.
Before deciding what to repeat, establish which caller or worker could still finish and which evidence has actually returned. Keep the operation, target key, intended bytes, observation time and current outcome together. If one record describes a timeout and another describes a completed write, reconcile their identities first. Otherwise a later receipt can be mistaken for a different attempt, leaving the system with accurate individual observations and an inaccurate overall story.
Keep encryption at rest, HTTPS and least-privilege access in the design. Enable server access logging, appropriate CloudTrail object data events and CloudWatch metrics, with encrypted log destinations, to support investigation. Budget for observability, requests and retained copies; S3 pricing includes storage and request charges. A recovery loop that forgets its extra objects can leave both an operational puzzle and a bill. [5] [6] [7]
Sources + further reading
Source dates describe the original material. Publication above is the date this Zyel article went live.
- HeadObject: metadata, permissions and checksum retrievalAmazon Web Services · Checked Nov 29, 2026
- PutObject: successful writes and conditional request responsesAmazon Web Services · Checked Nov 29, 2026
- Preventing object overwrites with conditional writesAmazon Web Services · Checked Nov 29, 2026
- Amazon S3 data consistency modelAmazon Web Services · Checked Nov 29, 2026
- Security best practices for Amazon S3Amazon Web Services · Checked Nov 29, 2026
- Logging and monitoring in Amazon S3Amazon Web Services · Checked Nov 29, 2026
- Amazon S3 pricing componentsAmazon Web Services · Checked Nov 29, 2026
Reader discussion
What would you ask next?
Questions, useful corrections and thoughtful disagreement are welcome. Comments are reviewed before they appear.
No reader comments yet.