obkv-table-client-java icon indicating copy to clipboard operation
obkv-table-client-java copied to clipboard

[bugfix] deprecate batch interface setIsAtomic and modify releated test cases

Open GroundWu opened this issue 1 year ago • 2 comments
trafficstars

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

GroundWu avatar Dec 04 '23 06:12 GroundWu

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.

IHEII avatar Dec 04 '23 08:12 IHEII

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

GroundWu avatar Dec 04 '23 09:12 GroundWu