obkv-table-client-java
obkv-table-client-java copied to clipboard
[bugfix] deprecate batch interface setIsAtomic and modify releated test cases
Summary
Deprecate the batch setIsAtomic interface and the batch operation is atomic now. Atomic means: If one of the operation in a single-partition batch request execute failed, it will rollback and return error code.
Solution Description
- Deprecate the batch setIsAtomic interface
- Modify atomic-related test case
Let us modify the demo and readme to indicate to users that we can't ensure atomicity when they are using batch operation across tablets/partitions.
Let us modify the demo and readme to indicate to users that we can't ensure atomicity when they are using batch operation across tablets/partitions.
Across partitions is not supported when use batch operation, and it will throw ObTablePartitionConsistentException when user do that. Add demo and readme in following files:
- example/simple-table-demo/README.md
- example/simple-table-demo/src/main/java/com/oceanbase/example/SimpleTableDemo.java