forked from apache/shardingsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
+++ | ||
date = "2016-01-29T16:14:21+08:00" | ||
title = "事务支持说明" | ||
weight = 8 | ||
+++ | ||
# 事务支持说明 | ||
|
||
`Sharding-JDBC`目前不支持分布式事务。我们已明确规划roadmap,在未来的一两个版本中会支持最终一致性的柔性事务。 | ||
|
||
基于目前状况的事务,有以下几点说明: | ||
|
||
* 完全支持非跨库事务,例如:仅分表,或分库但是路由的结果在单库中。 | ||
|
||
* 完全支持因逻辑异常导致的跨库事务。例如:同一事务中,跨两个库更新。更新完毕后,抛出空指针,则两个库的内容都能回滚。 | ||
|
||
* 不支持因网络、硬件异常导致的跨库事务。例如:同一事务中,跨两个库更新,更新完毕后、未提交之前,第一个库死机,则只有第二个库数据提交。 | ||
|