Skip to content

fix(ENGKNOW-3353): pgor write randomly fails in sm#121

Merged
gmagnu merged 7 commits into
mainfrom
ENGKNOW-3353-pgor-write-randomly-fails-in-sm
Jun 8, 2026
Merged

fix(ENGKNOW-3353): pgor write randomly fails in sm#121
gmagnu merged 7 commits into
mainfrom
ENGKNOW-3353-pgor-write-randomly-fails-in-sm

Conversation

@gmagnu

@gmagnu gmagnu commented Jun 2, 2026

Copy link
Copy Markdown
Contributor
  • Fix missing files if pgor | write was overwriting existing gord.
  • Add retry in S3 start upload.
  • Dont write empty files into gord.

gmagnu and others added 5 commits May 19, 2026 19:00
…ites

pgor rewrites each partition's write target from `ref_af.gord/` (folder mode) to
a specific `ref_af.gord/<signature>.gorz` (single-file mode). ForkWrite was
creating empty gorz files for every chromosome partition that produced no rows
(e.g. gorrows with a fixed range hits only 2 of ~48 partitions). These ~46
unnecessary S3 multipart uploads caused random throttling failures.

Fix 1 (ForkWrite): skip empty-file creation when the write target is inside a
gord folder. Empty partitions in pgor writes should produce no file; the
GORDICTFOLDER step builds the dictionary from meta files and correctly excludes
empty entries.

Fix 2 (S3MultipartOutputStream): add retry loop to initiateMultipartUpload()
matching the existing uploadWithRetry pattern, so transient S3 errors during
upload initiation don't cause permanent failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread drivers/src/main/java/org/gorpipe/s3/driver/S3MultipartOutputStream.java Dismissed
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

Junit Tests - Summary

4 645 tests  +1   4 468 ✅ +1   16m 27s ⏱️ - 1m 17s
  473 suites ±0     177 💤 ±0 
  473 files   ±0       0 ❌ ±0 

Results for commit 7fd97b5. ± Comparison against base commit cb978ca.

♻️ This comment has been updated with latest results.

gmagnu and others added 2 commits June 8, 2026 16:34
Interrupted thread reset the interrupt flag but kept looping and
retrying instead of bailing out. Throw IOException on InterruptedException
in both initiateMultipartUpload and uploadWithRetry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gmagnu gmagnu merged commit 3b7b775 into main Jun 8, 2026
17 checks passed
@gmagnu gmagnu deleted the ENGKNOW-3353-pgor-write-randomly-fails-in-sm branch June 8, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants