Skip to content

feat: Add externalized commit retries and commit lock using etcd distributed locks#162

Merged
subkanthi merged 5 commits intomasterfrom
158-parallel-ice-inserts-to-the-same-table-causes-data-loss
May 10, 2026
Merged

feat: Add externalized commit retries and commit lock using etcd distributed locks#162
subkanthi merged 5 commits intomasterfrom
158-parallel-ice-inserts-to-the-same-table-causes-data-loss

Conversation

@subkanthi
Copy link
Copy Markdown
Collaborator

@subkanthi subkanthi commented May 8, 2026

Added logic for commit retries in rest-catalog. Added logic in insert to handle retries by fetching newer metadata. Added logic to add Commit Lock using etcd distributed locks

closes: #158

…ics for commit retries in rest-catalog. Added logic in insert to handle retries by fetching newer metadata. Added logic to add Commit Lock using etcd distributed locks
@subkanthi subkanthi linked an issue May 8, 2026 that may be closed by this pull request
appendOp.commit();
txn.commitTransaction();
verifyCommitOrThrow(catalog, nsTable, stagedFiles);
} catch (CommitFailedException e) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CommitFailedException is 409 thats returned by the REST catalog when the snapshot Ids dont match..

}
}

private LoadTableResponse updateTable(
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

CatalogHandlers.updateTable is overridden to handle the commitLock changes.

@xieandrew xieandrew changed the title Added logic to externalize commit retries in rest-catalog. Added metr… feat: Add externalized commit retries and commit lock using etcd distributed locks May 8, 2026
@subkanthi subkanthi marked this pull request as ready for review May 8, 2026 20:04
@xieandrew xieandrew added the ice-rest-catalog Relates to ice-rest-catalog label May 8, 2026
@subkanthi subkanthi merged commit 2d4e0e9 into master May 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ice-rest-catalog Relates to ice-rest-catalog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parallel ice inserts to the same table causes data loss

2 participants