Commit bd246ea
route single partition refresh (#247)
* Optimize SQL for refreshing table location information
* partical refresh
* Fix infinite loop caused by removed reference
* fix lsop retry fail
* Remove unnecessary comments and format code
* Fix frequent refresh lock failures due to short refresh interval
* Fix frequent refresh lock failures due to short refresh interval
* add result code -4723
* fix review
* add -4138
* fix review: add ut for byteutil
* fix lsop refresh location
* Merge pull request #204 from oceanbase/retry_batchops_merge_master
Enhance Client Support for Partition Splitting
* feature: Optimize partial refresh and add retry for executeMutation/query (#213)
* remove lock in refreshTableLocationByTabletId
* fix refresh sql
* fix refresh interval
* add retry logic for common query
* add retry logic for executeMutation
* add retry logic for executeMutation
* add retry logic for ObTableQueryAndMutateRequest
* fix: correct ineffective retry logic
* retry logic for ObTableClient execute
* fix
* fix
* fix 3.x null exception (#214)
* fix
* fix regress
* [fix] add threshold for refresh table entry with location (#220)
* add threshold for refresh table entry with location
* [Fix] remove TABLE_ENTRY_LOCATION_REFRESH_THRESHOLD in Property
* [Fix] fix compile error
---------
Co-authored-by: shenyunlong.syl <[email protected]>
* [fix] 3.x compatible (#223)
* fix
* fix
* [fix] test case stuck in await (#227)
* fix
* fix
* refine
* Fix global route refresh wrong (#231)
* fix global index route refresh wrong when route need refresh
* fix global index route wrong
* revert unused commit
* fix global index route wrong when need partial route refresh (#232)
* fix global index route wrong when need partial route refresh
* Ensure PartitionInfo is Exposed Only After Leader is Found During Single Shard Refresh
---------
Co-authored-by: maochongxin <[email protected]>
* fix PartitionNumOneTest routed to the wrong server
* add error code 5627
* fix extendType parse object to comparable
* fix refresh location param
* fix log; add retry interval for executeWithRetries
* Add quick path: return quickly if recently refreshed
* add log for batchOpsImpl
* fix
* fix table.entry.refresh.interval.wait
* fix global index route error
* fix
* TABLE_ENTRY_LOCATION_REFRESH_THRESHOLD -> 0
* add retry code =4242
* fix getPartitionLocation nullptr && resolve conflict error
* fix resolve conflict error
* fix getLs nullptr
* fix dr nullptr
* fix global index nullptr
* fix unexpected addr expired
* fix unexpected addr expired
* Reduce log printing and optimize log output content;
* fix update lsId if location exists
* fix log
* fix lsop -5200 with table_group
* fix rpc.execute.timeout
* fix log
* fix log && fix getPartitionReplica return wrong part id
---------
Co-authored-by: miyuan-ljr <[email protected]>
Co-authored-by: shenyunlong.syl <[email protected]>
Co-authored-by: GroundWu <[email protected]>1 parent 5aa84e7 commit bd246ea
File tree
13 files changed
+835
-361
lines changed- src/main/java/com/alipay/oceanbase/rpc
- bolt/transport
- location
- model/partition
- property
- protocol/payload/impl
- execute/query
- stream
- table
13 files changed
+835
-361
lines changedLines changed: 307 additions & 125 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| |||
Lines changed: 372 additions & 129 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
1357 | 1359 | | |
1358 | 1360 | | |
1359 | 1361 | | |
| |||
Lines changed: 64 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
55 | | - | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | | - | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
| |||
154 | 163 | | |
155 | 164 | | |
156 | 165 | | |
157 | | - | |
158 | 166 | | |
159 | 167 | | |
160 | 168 | | |
| |||
243 | 251 | | |
244 | 252 | | |
245 | 253 | | |
246 | | - | |
247 | | - | |
248 | | - | |
| 254 | + | |
| 255 | + | |
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 262 | | |
261 | 263 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
270 | 267 | | |
271 | 268 | | |
272 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | | - | |
| 277 | + | |
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
| |||
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
352 | | - | |
353 | | - | |
354 | 355 | | |
355 | | - | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
394 | 392 | | |
395 | 393 | | |
396 | 394 | | |
| |||
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
445 | | - | |
| 443 | + | |
446 | 444 | | |
447 | 445 | | |
448 | 446 | | |
449 | 447 | | |
450 | | - | |
| 448 | + | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
| |||
576 | 574 | | |
577 | 575 | | |
578 | 576 | | |
579 | | - | |
580 | | - | |
581 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
582 | 604 | | |
583 | 605 | | |
584 | 606 | | |
| |||
719 | 741 | | |
720 | 742 | | |
721 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
722 | 759 | | |
0 commit comments