apache / apache/gravitino

[Subtask] Handle optimistic-lock conflicts in Java and Python clients

Open
#12,207 0 comments 0 reactions 0 assignees View on GitHub
subtask
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 16h
Merged PRs (30d)
298

Description

### Describe the subtask

After the alter and drop OCC changes are merged, update Java and Python clients to recognize optimistic-lock conflict code 1012, raise a typed OptimisticLockException, and add client-side tests and retry guidance.

### Parent issue

https://github.com/apache/gravitino/issues/12166

Contributor guide

Open the contributing guide

Research direction

Start by reading parent issue #12166 and locating the existing Java and Python client error-handling entry points and client-side test suites. Confirm the alter and drop OCC changes are merged, then use conflict code 1012 as the acceptance case: both clients should expose the typed exception, include tests, and document retry guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.