Commit db8e1c3
committed
[HUDI-4167] Remove the timeline refresh with initializing hoodie table
The timeline refresh invokes the fs view #sync, which has two actions now:
1. reload the timeline of the fs view, so that the nest fs view request is based on this timeline metadata
2. if this is a local fs view, clear all the local states or if this is a remote fs view, send request to sync the remote fs view
But, let's see the construction, the meta client is instantiated freshly so the timeline is already the latest,
the table is also constructed freshly, so the fs view has no local states, that means, the #sync is unnecessary totally.
In this patch, the metadata lifecycle and data set fs view are kept in sync, when the fs view is refreshed, the underneath metadata
is also refreshed synchronouly. The freshness of the metadata follows the same rules as data fs view:
1. if the fs view is local, the visibility is based on the client table metadata client's latest commit
2. if the fs view is remote, the timeline server would #sync the fs view and metadata together based on the lagging server local timeline
From the perspective of client, no need to care about the refresh action anymore no matter whether the metadata table is enabled or not.
Removes the timeline refresh has a benifit: if avoids unncecessary #refresh of the remote fs view, if all the clients send request to1 parent 329da34 commit db8e1c3
13 files changed
Lines changed: 40 additions & 69 deletions
File tree
- hudi-client
- hudi-client-common/src/main/java/org/apache/hudi
- client
- table/action/clean
- hudi-flink-client/src
- main/java/org/apache/hudi
- client
- table
- test/java/org/apache/hudi/index/bloom
- hudi-java-client/src/main/java/org/apache/hudi/client
- hudi-spark-client/src
- main/java/org/apache/hudi
- client
- table
- test/java/org/apache/hudi
- client/functional
- table
- testutils
- hudi-cli/src/main/java/org/apache/hudi/cli/commands
- hudi-common/src/main/java/org/apache/hudi/metadata
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
Lines changed: 12 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 299 | + | |
304 | 300 | | |
305 | 301 | | |
306 | 302 | | |
| |||
365 | 361 | | |
366 | 362 | | |
367 | 363 | | |
368 | | - | |
| 364 | + | |
369 | 365 | | |
370 | 366 | | |
371 | 367 | | |
| |||
542 | 538 | | |
543 | 539 | | |
544 | 540 | | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | 541 | | |
549 | 542 | | |
550 | 543 | | |
| |||
634 | 627 | | |
635 | 628 | | |
636 | 629 | | |
637 | | - | |
| 630 | + | |
638 | 631 | | |
639 | 632 | | |
640 | 633 | | |
| |||
644 | 637 | | |
645 | 638 | | |
646 | 639 | | |
647 | | - | |
| 640 | + | |
648 | 641 | | |
649 | 642 | | |
650 | 643 | | |
| |||
668 | 661 | | |
669 | 662 | | |
670 | 663 | | |
671 | | - | |
| 664 | + | |
672 | 665 | | |
673 | 666 | | |
674 | 667 | | |
| |||
680 | 673 | | |
681 | 674 | | |
682 | 675 | | |
683 | | - | |
| 676 | + | |
684 | 677 | | |
685 | 678 | | |
686 | 679 | | |
| |||
1012 | 1005 | | |
1013 | 1006 | | |
1014 | 1007 | | |
1015 | | - | |
| 1008 | + | |
1016 | 1009 | | |
1017 | 1010 | | |
1018 | 1011 | | |
| |||
1024 | 1017 | | |
1025 | 1018 | | |
1026 | 1019 | | |
1027 | | - | |
| 1020 | + | |
1028 | 1021 | | |
1029 | 1022 | | |
1030 | 1023 | | |
| |||
1339 | 1332 | | |
1340 | 1333 | | |
1341 | 1334 | | |
1342 | | - | |
| 1335 | + | |
1343 | 1336 | | |
1344 | 1337 | | |
1345 | 1338 | | |
1346 | 1339 | | |
1347 | | - | |
| 1340 | + | |
1348 | 1341 | | |
1349 | 1342 | | |
1350 | 1343 | | |
1351 | 1344 | | |
1352 | | - | |
| 1345 | + | |
1353 | 1346 | | |
1354 | 1347 | | |
1355 | 1348 | | |
| |||
1702 | 1695 | | |
1703 | 1696 | | |
1704 | 1697 | | |
1705 | | - | |
| 1698 | + | |
1706 | 1699 | | |
1707 | 1700 | | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
| 120 | + | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| |||
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 65 | | |
73 | 66 | | |
74 | 67 | | |
| |||
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 76 | | |
87 | 77 | | |
88 | 78 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
336 | | - | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| |||
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
355 | | - | |
| 353 | + | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
434 | 432 | | |
435 | 433 | | |
436 | 434 | | |
437 | | - | |
| 435 | + | |
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
| |||
Lines changed: 1 addition & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 57 | | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | | - | |
| 63 | + | |
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
73 | 68 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 69 | | |
82 | 70 | | |
83 | 71 | | |
| |||
89 | 77 | | |
90 | 78 | | |
91 | 79 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 80 | | |
96 | 81 | | |
97 | 82 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments