Commit 0c56e65
[KYUUBI #7171] Fix empty list engine result when etcd is used as the service registry
### Why are the changes needed?
In etcd, keys are stored in a flat namespace where / is just part of the key name. For example, /kyuubi_version_USER_SPARK_SQL/test/default is treated as a complete single key.
To retrieve all entries under a similar path, a prefix query (--prefix) is required.
In ZooKeeper, data is organized in a hierarchical tree structure where / represents parent-child relationships.
### How was this patch tested?
added a UT to verify code.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #7171 from zhaohehuhu/dev-0813.
Closes #7171
48de708 [zhaohehuhu] fix
8f83a46 [zhaohehuhu] refactor
2d9b322 [zhaohehuhu] refactor
85207c4 [zhaohehuhu] refactor
3961489 [zhaohehuhu] reformat
15cc07b [zhaohehuhu] Fix empty list engine result when etcd is used as the service registry
Lead-authored-by: zhaohehuhu <[email protected]>
Co-authored-by: zhaohehuhu <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>1 parent 28bba27 commit 0c56e65
File tree
4 files changed
+32
-7
lines changed- kyuubi-ha/src
- main/scala/org/apache/kyuubi/ha/client
- etcd
- zookeeper
- test/scala/org/apache/kyuubi/ha/client/etcd
4 files changed
+32
-7
lines changedLines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
314 | | - | |
| 316 | + | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
95 | 113 | | |
0 commit comments