Skip to content

Server-side retry for conflicting rename operations #4729

Open

Description

@vigneshio

Follow-up from #4646.

When two rename operations happen at the same time, Polaris currently returns HTTP 503 (TARGET_ENTITY_CONCURRENTLY_MODIFIED). While this works, 503 usually means the server is unavailable and may cause clients or proxies to apply unnecessary backoff.

A better approach would be to retry conflicting rename operations on the server side so that temporary conflicts can be resolved automatically instead of returning an error to the client.

References:

Activity

  1. github-actions commented on Jul 13, 2026

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment if you think it's still relevant.

  2. ArnabKarmakar1108 commented on Oct 26, 2026

    @ArnabKarmakar1108
    Contributor

    Hi @vigneshio, I’d like to work on this if it’s still available.

    Approach: In LocalIcebergCatalog.renameTableLike, retry on TARGET_ENTITY_CONCURRENTLY_MODIFIED with bounded attempts, refresh the source via loadEntity between tries, and use Iceberg Tasks + backoff (as suggested on #4733). Add something like RENAME_RETRY_MAX_ATTEMPTS.
    If retries are exhausted, keep current 503 + Retry-After and don’t retry resolution / already-exists cases.

    Open to feedback on defaults or scope. Thanks!

  3. vigneshio commented on Oct 26, 2026

    @vigneshio
    ContributorAuthor

    6. Hi @vigneshio, I’d like to work on this if it’s still available.
    Approach: In LocalIcebergCatalog.renameTableLike, retry on TARGET_ENTITY_CONCURRENTLY_MODIFIED with bounded attempts, refresh the source via loadEntity between tries, and use Iceberg Tasks + backoff (as suggested on #4733). Add something like RENAME_RETRY_MAX_ATTEMPTS.
    If retries are exhausted, keep current 503 + Retry-After and don’t retry resolution / already-exists cases.
    Open to feedback on defaults or scope. Thanks!

    Hi @ArnabKarmakar1108, thanks for offering to help! @Sasilekha already has #4733 open for this, and it just got reopened..

  4. ArnabKarmakar1108 commented on Oct 27, 2026

    @ArnabKarmakar1108
    Contributor

    Sure, I can take another look if the bot closes the PR again in case the owner is short on bandwidth to get to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions