Skip to content

Set 'Retry-After' header when table rename fails with a concurrent modification error - #5144

Merged
dimas-b merged 2 commits into
apache:mainfrom
nandorKollar:retry_after_header_for_503
Jul 24, 2026
Merged

dimas-b merged 2 commits into
apache:mainfrom
nandorKollar:retry_after_header_for_503

Conversation

@nandorKollar

@nandorKollar nandorKollar commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

The purpose of this change is to set the Retry-After header when a table rename operation fails due to a concurrent modification, signalling the Iceberg client to retry the request. Currently, the Retry-After header is set to a fixed value of 3 seconds.

Checklist

  • 🛡️ Don't disclose security issues! (contact [email protected])
  • 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes #
  • 🧪 Added/updated tests with good coverage, or manually tested (and explained how)
  • 💡 Added comments for complex logic
  • 🧾 Updated CHANGELOG.md (if needed)
  • 📚 Updated documentation in site/content/in-dev/unreleased (if needed)

@nandorKollar

Copy link
Copy Markdown
Contributor Author

cc @vigneshio

dimas-b
dimas-b previously approved these changes Jul 24, 2026

@dimas-b dimas-b left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix, @nandorKollar !

Given that the discussion and vote associated with #4646 actually required Retry-After headers, I propose merging ASAP to avoid any gap in functionality.

Follow-up improvements are welcome, of course.

@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jul 24, 2026
@dimas-b
dimas-b requested review from adutra and flyrain July 24, 2026 15:24

@vigneshio vigneshio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.. one nit: should the changelog entry from #4646 get a clause for the Retry-After header? the current entry mentions 503 on concurrent rename but not the retry pacing, and that's new client-visible behavior.. WDYT ??

@nandorKollar

Copy link
Copy Markdown
Contributor Author

LGTM.. one nit: should the changelog entry from #4646 get a clause for the Retry-After header? the current entry mentions 503 on concurrent rename but not the retry pacing, and that's new client-visible behavior.. WDYT ??

Makes sense, retry-after header is now mentioned in the changelog.

@dimas-b dimas-b added this to the 1.7.0 milestone Jul 24, 2026
@dimas-b
dimas-b requested a review from jbonofre July 24, 2026 15:51

@flyrain flyrain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix. Not sure how it effects given that probably IRC clients don't honor it yet.

@dimas-b

dimas-b commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@dimas-b
dimas-b merged commit ab6fd47 into apache:main Jul 24, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to merge to Done in Basic Kanban Board Jul 24, 2026
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.

5 participants