Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharding proxy xa transaction #946

Merged
merged 220 commits into from
Jun 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
e9b8857
Initial commit
saaavsaaa Apr 17, 2018
dca9c8d
init
saaavsaaa Apr 18, 2018
2c9d0e5
CLEAR
saaavsaaa Apr 18, 2018
459d8ed
start
saaavsaaa Apr 18, 2018
be58ebd
start
saaavsaaa Apr 18, 2018
49f7844
start create all needed nodes
saaavsaaa Apr 18, 2018
e46a9ec
cache begin
saaavsaaa Apr 19, 2018
817b5b3
unit test
saaavsaaa Apr 19, 2018
5c7f3b5
unit test
saaavsaaa Apr 19, 2018
35fd2df
snapshot
saaavsaaa Apr 20, 2018
a2a2be6
version
saaavsaaa Apr 20, 2018
16c5048
unit test
saaavsaaa Apr 20, 2018
2a1d59f
unit test
saaavsaaa Apr 20, 2018
a638d67
unit test
saaavsaaa Apr 20, 2018
eb48a1a
delete children
saaavsaaa Apr 23, 2018
21b7d85
Ephemeral node create
saaavsaaa Apr 23, 2018
c6d21ff
final
saaavsaaa Apr 23, 2018
5ee796b
watcher
saaavsaaa Apr 23, 2018
656ba28
wait test
saaavsaaa Apr 23, 2018
5e48771
wait test
saaavsaaa Apr 23, 2018
a2e34c7
wait test
saaavsaaa Apr 24, 2018
7da9713
start watcher
saaavsaaa Apr 24, 2018
83f19cf
watcher
saaavsaaa Apr 24, 2018
5d14831
listener and test
saaavsaaa Apr 24, 2018
1b4c417
unregister watcher
saaavsaaa Apr 24, 2018
4b6f711
clear code
saaavsaaa Apr 25, 2018
f689735
clear code
saaavsaaa Apr 25, 2018
8f2d8b2
root delete watcher
saaavsaaa Apr 25, 2018
6c6f2e4
test
saaavsaaa Apr 25, 2018
a06208b
sleep
saaavsaaa Apr 26, 2018
4cba2b4
abstract client
saaavsaaa Apr 26, 2018
8be595d
abstract client
saaavsaaa Apr 26, 2018
b2ed89e
cache begin
saaavsaaa Apr 26, 2018
69cd677
cache begin
saaavsaaa Apr 26, 2018
ff8a60e
test
saaavsaaa Apr 26, 2018
5b8e901
test
saaavsaaa Apr 26, 2018
b275f78
test
saaavsaaa Apr 27, 2018
e07bb3d
election contend
saaavsaaa Apr 27, 2018
4c9d876
note
saaavsaaa Apr 27, 2018
fb0ae6e
task and override and so on
saaavsaaa Apr 27, 2018
c1d2169
lazy cache load
saaavsaaa Apr 27, 2018
6977b7b
lazy cache load
saaavsaaa Apr 28, 2018
04c8459
lazy cache base
saaavsaaa Apr 28, 2018
a5e064f
lazy cache base
saaavsaaa Apr 28, 2018
bd521df
lazy cache base
saaavsaaa Apr 28, 2018
5a2caa4
clear
saaavsaaa Apr 28, 2018
b17694c
version
saaavsaaa Apr 28, 2018
3f123bd
javadoc
saaavsaaa Apr 29, 2018
7d6d435
test
saaavsaaa May 2, 2018
3e91e92
test
saaavsaaa May 2, 2018
8f0a750
test
saaavsaaa May 2, 2018
65e335e
test
saaavsaaa May 2, 2018
3c83764
re create
saaavsaaa May 2, 2018
3e196c3
strategy start
saaavsaaa May 2, 2018
afbc939
restructure start
saaavsaaa May 3, 2018
17ba5d7
UsualClient
saaavsaaa May 4, 2018
609a301
UsualClient
saaavsaaa May 4, 2018
1dcd941
UsualClient
saaavsaaa May 4, 2018
22e48d8
UsualClient
saaavsaaa May 4, 2018
60ed83c
test
saaavsaaa May 4, 2018
f7c180b
test
saaavsaaa May 4, 2018
b1509f2
cache restart
saaavsaaa May 4, 2018
abbfdfe
cache restart
saaavsaaa May 4, 2018
392697f
cache test
saaavsaaa May 7, 2018
fe7f11c
test
saaavsaaa May 7, 2018
27964b2
todo
saaavsaaa May 8, 2018
25c3fbd
log start
saaavsaaa May 8, 2018
de8e378
adding log
saaavsaaa May 9, 2018
f592b5a
log
saaavsaaa May 9, 2018
668ff30
node
saaavsaaa May 9, 2018
e51911e
exception
saaavsaaa May 10, 2018
4964d83
IClient
saaavsaaa May 10, 2018
65cc433
base
saaavsaaa May 11, 2018
5148798
callback
saaavsaaa May 11, 2018
391aeeb
callback
saaavsaaa May 11, 2018
f427a34
retry
saaavsaaa May 11, 2018
0b931ba
retry
saaavsaaa May 11, 2018
213976b
Update README.md
saaavsaaa May 12, 2018
3c556f9
Update README.md
saaavsaaa May 12, 2018
2e40eaa
Update README.md
saaavsaaa May 12, 2018
128ddf5
retry
saaavsaaa May 14, 2018
78778af
Merge remote-tracking branch 'origin/master'
saaavsaaa May 14, 2018
2daac91
retry
saaavsaaa May 15, 2018
c976201
retry
saaavsaaa May 16, 2018
c01877a
retry
saaavsaaa May 16, 2018
d9a9acf
retry
saaavsaaa May 17, 2018
fda6c45
retry test start
saaavsaaa May 17, 2018
1eaf1f8
test
saaavsaaa May 18, 2018
1133e24
test
saaavsaaa May 18, 2018
64fe8a2
retry center
saaavsaaa May 18, 2018
29bbd2a
connection check
saaavsaaa May 18, 2018
34ae5a2
retry only live delay policy start
saaavsaaa May 21, 2018
1651bec
retry queue next
saaavsaaa May 22, 2018
c18db13
provider -> client
saaavsaaa May 22, 2018
c4b8b95
clearing transient save
saaavsaaa May 23, 2018
f49ccff
retry
saaavsaaa May 23, 2018
d3f75fb
provider
saaavsaaa May 24, 2018
6cc8145
listener
saaavsaaa May 24, 2018
d39152d
clear stop
saaavsaaa May 24, 2018
c63d7ea
sync retry begin
saaavsaaa May 24, 2018
b213bc4
connect not ready
saaavsaaa May 25, 2018
e0f1b64
retry async test
saaavsaaa May 28, 2018
f1a0e1d
listener
saaavsaaa May 28, 2018
f321d04
clear
saaavsaaa May 29, 2018
bdbdd4a
add Holder class and restructure
saaavsaaa May 30, 2018
001317b
retry count 3
saaavsaaa May 30, 2018
547baed
retry test
saaavsaaa May 30, 2018
1764b18
dependent
saaavsaaa May 30, 2018
9017c89
adapt ss
saaavsaaa May 31, 2018
058ef84
check -> reset
saaavsaaa May 31, 2018
beab7a7
adapt ss
saaavsaaa May 31, 2018
6bf0da6
t
saaavsaaa May 31, 2018
84fea0f
create
saaavsaaa May 31, 2018
e5748d3
adapt ss
saaavsaaa Jun 1, 2018
4c2ed07
exist
saaavsaaa Jun 4, 2018
030c7f5
wait
saaavsaaa Jun 4, 2018
e018c01
test exclude transaction : support all org.apache.zookeeper version
saaavsaaa Jun 7, 2018
787e495
contribute to ss
saaavsaaa Jun 7, 2018
a6c7261
trans
saaavsaaa Jun 8, 2018
e19a940
Delete .gitignore
saaavsaaa Jun 11, 2018
36aa4cc
Merge remote-tracking branch 'client/master' into dev
saaavsaaa Jun 11, 2018
ed6bec3
merge native client
saaavsaaa Jun 11, 2018
e637b9c
clear package
saaavsaaa Jun 11, 2018
7c9b5a1
clear packet path
saaavsaaa Jun 14, 2018
b2183b3
for # 601: add masterslave rule for case select_inner_join_related_wi…
terrymanu Jun 15, 2018
053d6c8
for # 601: add default timezone
terrymanu Jun 15, 2018
f89bebc
for # 601: remove DateUtil
terrymanu Jun 15, 2018
e6cfb7c
for # 601: add masterslave rule for case select_inner_join_related_wi…
terrymanu Jun 15, 2018
3ac8a63
for # 601: add masterslave rule for case select_pagination_with_row_n…
terrymanu Jun 15, 2018
4648762
for # 601: add masterslave rule for case select_pagination_with_row_n…
terrymanu Jun 15, 2018
ccc65d5
for # 601: add masterslave rule for case select_pagination_with_top_f…
terrymanu Jun 15, 2018
99f0e31
for # 601: add masterslave rule for case select_pagination_with_top_f…
terrymanu Jun 15, 2018
7662e5b
for # 601: add masterslave rule for case select_pagination_with_offse…
terrymanu Jun 15, 2018
6202dba
for # 601: add masterslave rule for case select_pagination_with_limit
terrymanu Jun 15, 2018
c2f80e8
for # 601: add masterslave rule for case select_pagination_with_row_n…
terrymanu Jun 15, 2018
ce578a4
for # 601: add masterslave rule for case select_pagination_with_row_c…
terrymanu Jun 15, 2018
dfd11c2
for # 601: add masterslave rule for case select_pagination_with_offset
terrymanu Jun 15, 2018
4a6a3cc
Merge pull request #927 from saaavsaaa/dev
terrymanu Jun 15, 2018
0829e34
fix test case
terrymanu Jun 15, 2018
6fd3851
for #601: add case insert_with_all_placeholders
terrymanu Jun 15, 2018
f37ba6b
for #601: modify dbtbl_with_masterslave's data source name
terrymanu Jun 15, 2018
1cacbc5
for #601: refactor folder for dml
terrymanu Jun 15, 2018
30f51d3
for #601: refactor folder select for dql
terrymanu Jun 15, 2018
be63202
for #601: add judge condition for load cases
terrymanu Jun 15, 2018
31b704c
for #601: add case insert_with_partial_placeholders
terrymanu Jun 15, 2018
fffe74b
for #601: add case update_with_alias
terrymanu Jun 15, 2018
245121e
for #601: add case update_without_alias
terrymanu Jun 15, 2018
d04935a
for #601: add case delete_with_sharding_value
terrymanu Jun 15, 2018
3247cd9
for #601: add case delete_with_sharding_value
terrymanu Jun 15, 2018
306eb74
for #601: add case delete_without_sharding_value
terrymanu Jun 15, 2018
d44d1c0
retry init
saaavsaaa Jun 15, 2018
cba2c79
clear packet
saaavsaaa Jun 15, 2018
c97b91b
Merge pull request #938 from cherrylzhao/dev-new
terrymanu Jun 16, 2018
8f69d72
Merge pull request #939 from saaavsaaa/dev
terrymanu Jun 16, 2018
4f841c0
Fixed the unit test initialization problem for PostgreSQL.
haocao Jun 16, 2018
7b0281c
Fixed the unit test initialization schema issues.
haocao Jun 16, 2018
e464542
for #601: refactor case update_equal_with_geography
terrymanu Jun 17, 2018
3b34f26
for #601: add case insert_with_generate_key_column
terrymanu Jun 17, 2018
224c38e
for #601: add case insert_without_generate_key_column
terrymanu Jun 17, 2018
025a025
for #601: remove useless codes
terrymanu Jun 17, 2018
ff47ea2
for #601: add case insert_set_with_all_placeholders
terrymanu Jun 17, 2018
9f78c79
for #601: add case insert_set_with_partial_placeholders
terrymanu Jun 17, 2018
4610934
for #601: add case insert_set_with_partial_placeholders
terrymanu Jun 17, 2018
70c1e86
for #601: add case insert_set_without_generate_key_column but ignore now
terrymanu Jun 17, 2018
deca6f9
for #601: add case insert_with_all_placeholders_for_table_identifier …
terrymanu Jun 17, 2018
00eb6a5
for #601: add case insert_set_with_all_placeholders_for_table_identif…
terrymanu Jun 17, 2018
2dc3ace
for #601: add case insert_without_columns_with_all_placeholders
terrymanu Jun 17, 2018
efc2d78
for #601: remove case assertInsertWithoutColumnsWithPartialPlaceholder
terrymanu Jun 17, 2018
f866a37
for #601: add case insert_with_batch
terrymanu Jun 17, 2018
c6a1a96
for #601: add case insert_without_columns_and_with_generate_key_column
terrymanu Jun 17, 2018
a387b36
for #601: add case insert_without_columns_and_without_generate_key_co…
terrymanu Jun 17, 2018
864842a
for #601: add case insert_with_batch_and_with_generate_key_column
terrymanu Jun 17, 2018
24f09fa
for #601: add case insert_with_batch_and_without_generate_key_column
terrymanu Jun 17, 2018
c493519
for #601: finish all cases for dml
terrymanu Jun 17, 2018
52f065b
for #601: finish all cases for dml
terrymanu Jun 18, 2018
6c952bf
for #601: add case create_table
terrymanu Jun 18, 2018
2d6048d
for #601: add case create_table_if_not_exists
terrymanu Jun 18, 2018
4222d5a
for #601: add case create_temporary_table_if_not_exists
terrymanu Jun 18, 2018
db5265b
for #601: add case create_global_temporary_table
terrymanu Jun 18, 2018
afa2e97
for #601: add case create_local_temporary_table
terrymanu Jun 18, 2018
de3449a
for #601: add case create_unlogged_table
terrymanu Jun 18, 2018
5a6aaca
for #601: refactor case create_local_temp_table
terrymanu Jun 18, 2018
83dfd27
for #601: add case create_index
terrymanu Jun 18, 2018
6e78e80
for #601: add case create_unique_index
terrymanu Jun 18, 2018
41e8ed1
for #601: add case alter_table
terrymanu Jun 18, 2018
f4e94a4
for #601: add case alter_table_if_exists_only
terrymanu Jun 18, 2018
9c8f3d4
for #601: merge ddl cases
terrymanu Jun 18, 2018
dca9d5d
for #601: remove nullable rule
terrymanu Jun 19, 2018
f0c6cfd
for #601: remove useless original test cases
terrymanu Jun 19, 2018
842affe
for #601: add case drop_table
terrymanu Jun 19, 2018
aec681c
for #601: add case drop_table_if_exists
terrymanu Jun 19, 2018
cdb9e4e
for #601: add case drop_temporary_table_if_exists
terrymanu Jun 19, 2018
b332940
for #601: add case drop_table_restrict
terrymanu Jun 19, 2018
67025f5
for #601: add case drop_table_cascade
terrymanu Jun 19, 2018
1f333fe
for #601: add case drop_table_cascade_constraints_and_purge
terrymanu Jun 19, 2018
248e9ec
for #601: add case drop_index
terrymanu Jun 19, 2018
62f6582
for #601: add case drop_index_without_on
terrymanu Jun 19, 2018
206f509
for #601: add case drop_index_if_exists
terrymanu Jun 19, 2018
16b72cb
for #601: add case truncate_table
terrymanu Jun 19, 2018
4d96127
for #601: add case truncate_table_only
terrymanu Jun 19, 2018
10c529e
for #601: remove useless original cases
terrymanu Jun 19, 2018
e9440c7
for #601: remove useless original cases
terrymanu Jun 19, 2018
4b5b01e
for #601: remove original hint test cases, will add to new sharding r…
terrymanu Jun 19, 2018
8a29f0b
for #601: remove original yaml test cases, instead of unit test on sh…
terrymanu Jun 19, 2018
a962ff0
for #601: refactor JDBCTestSQL
terrymanu Jun 19, 2018
1b3e372
for #601: remove sharding and masterslave schema from jdbc test
terrymanu Jun 19, 2018
d561199
fix java doc
terrymanu Jun 19, 2018
5828f6a
for #601: add case assertExecuteQueryWithResultSetTypeAndResultSetCon…
terrymanu Jun 19, 2018
6c54d0b
for #601: add case assertExecuteUpdateWithAutoGeneratedKeys
terrymanu Jun 19, 2018
8919e9f
for #601: add case assertExecuteQueryWithResultSetTypeAndResultSetCon…
terrymanu Jun 19, 2018
431719a
for #601: add case assertExecuteUpdateWithColumnIndexes
terrymanu Jun 19, 2018
0bef3fc
for #601: add case assertExecuteUpdateWithColumnNames
terrymanu Jun 19, 2018
f5faf40
for #601: add case for execute
terrymanu Jun 19, 2018
abfdaa4
for #601: add case assertExecuteForStatementWithAutoGeneratedKeys
terrymanu Jun 19, 2018
6a4b576
Merge branch 'dev' of https://github.com/sharding-sphere/sharding-sph…
cherrylzhao Jun 19, 2018
085f621
refactor ExecuteBackendHandler for code reuse.
cherrylzhao Jun 19, 2018
58fb44e
optimize ExecuteBackendHandler.
cherrylzhao Jun 20, 2018
a366454
optimize ExecuteBackendHandler.
cherrylzhao Jun 20, 2018
4a4155f
extract ExecuteWorker for SQL and preparedStatement reuse.
cherrylzhao Jun 20, 2018
21bc870
extract ExecuteWorker for SQL and preparedStatement reuse.
cherrylzhao Jun 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions sharding-core/src/test/resources/parser/alter.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertAlterTable">
<parser-result sql-case-id="alter_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertAlterTableIfExistAndOnly">
<parser-result sql-case-id="alter_table_if_exists_only">
<tables>
<table name="t_log" />
</tables>
Expand Down
16 changes: 8 additions & 8 deletions sharding-core/src/test/resources/parser/create.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertCreateTable">
<parser-result sql-case-id="create_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateTableIfNotExist">
<parser-result sql-case-id="create_table_if_not_exists">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -18,7 +18,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateTemporaryTable">
<parser-result sql-case-id="create_temporary_table_if_not_exists">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -27,7 +27,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateGlobalTemporaryTable">
<parser-result sql-case-id="create_global_temporary_table">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -36,7 +36,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateLocalTempTable">
<parser-result sql-case-id="create_local_temp_table">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -45,7 +45,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateUnloggedTable">
<parser-result sql-case-id="create_unlogged_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -54,7 +54,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateIndex">
<parser-result sql-case-id="create_index">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -64,7 +64,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertCreateUniqueIndex">
<parser-result sql-case-id="create_unique_index">
<tables>
<table name="t_log" />
</tables>
Expand Down
4 changes: 2 additions & 2 deletions sharding-core/src/test/resources/parser/delete.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertDeleteWithShardingValue" parameters="1000, 1001, 'init'">
<parser-result sql-case-id="delete_with_sharding_value" parameters="1000, 1001, 'init'">
<tables>
<table name="t_order"/>
</tables>
Expand All @@ -19,7 +19,7 @@
</or-condition>
</parser-result>

<parser-result sql-case-id="assertDeleteWithoutShardingValue" parameters="'init'">
<parser-result sql-case-id="delete_without_sharding_value" parameters="'init'">
<tables>
<table name="t_order" />
</tables>
Expand Down
18 changes: 9 additions & 9 deletions sharding-core/src/test/resources/parser/drop.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<parser-result-sets>
<parser-result sql-case-id="assertDropTable">
<parser-result sql-case-id="drop_table">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -9,7 +9,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableIfExists">
<parser-result sql-case-id="drop_table_if_exists">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -18,7 +18,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTemporaryTable">
<parser-result sql-case-id="drop_temporary_table_if_exists">
<tables>
<table name="t_temp_log" />
</tables>
Expand All @@ -27,7 +27,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableRestrict">
<parser-result sql-case-id="drop_table_restrict">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -36,7 +36,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableCascade">
<parser-result sql-case-id="drop_table_cascade">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -45,7 +45,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropTableCascadeConstraintsAndPurge">
<parser-result sql-case-id="drop_table_cascade_constraints_and_purge">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -54,7 +54,7 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndex">
<parser-result sql-case-id="drop_index">
<tables>
<table name="t_log" />
</tables>
Expand All @@ -64,13 +64,13 @@
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndexWithoutOn">
<parser-result sql-case-id="drop_index_without_on">
<tokens>
<index-token begin-position="11" original-literals="t_log_index" table-name="" />
</tokens>
</parser-result>

<parser-result sql-case-id="assertDropIndexIfExists">
<parser-result sql-case-id="drop_index_if_exists">
<tokens>
<index-token begin-position="21" original-literals="t_order_index" table-name="" />
</tokens>
Expand Down
Loading