Commit 8bbddab
authored
Singleton Kafka Consumer (#762)
* Adjust topic-available timeouts and kafka healthcheck
Also rremove label from broker list and just use localhost with portname
* Use previous health check
* Use previous healthcheck
it did not work before because we did specify the .sh ending
* Uncomment the submodel service registration test
the test setup is not reliable
* Trigger build
* Remove await for topic assignment
should not be required because the healthcheck is now properly set up
* Add null checks
* Use synchronized Kafka access
the asynchron spring kafka event are producing race conditions in tests
* Add logging and fix topic name in authorized client test
* Add seek to end to make it more secure
* Initialialize adapter in beforeall
* Use singleton kafka consumer and poll the messages asynchronously
* Alter cleanup metho
* Remove commented part1 parent 483d869 commit 8bbddab
41 files changed
Lines changed: 649 additions & 992 deletions
File tree
- basyx.aasenvironment/basyx.aasenvironment.component
- src/test/java/org/eclipse/digitaltwin/basyx/aasenvironment/component
- basyx.aasregistry
- basyx.aasregistry-service-basetests
- src/main/java/org/eclipse/digitaltwin/basyx/aasregistry/service/tests/integration
- basyx.aasregistry-service-release-kafka-mem
- src/test/java/org/eclipse/digitaltwin/basyx/aasregistry/service/storage/memory
- basyx.aasregistry-service-release-kafka-mongodb
- src/test/java/org/eclipse/digitaltwin/basyx/aasregistry/service/storage/mongodb
- basyx.aasrepository
- basyx.aasrepository-feature-kafka
- src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/feature/kafka
- basyx.aasrepository.component
- src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/component
- basyx.common
- basyx.kafka
- src/main/java/org/eclipse/digitaltwin/basyx/kafka
- basyx.submodelregistry
- basyx.submodelregistry-service-basetests
- src/main/java/org/eclipse/digitaltwin/basyx/submodelregistry/service/tests/integration
- basyx.submodelregistry-service-release-kafka-mem
- src/test/java/org/eclipse/digitaltwin/basyx/submodelregistry/service/storage/memory
- basyx.submodelregistry-service-release-kafka-mongodb
- src/test/java/org/eclipse/digitaltwin/basyx/submodelregistry/service/storage/mongodb
- basyx.submodelrepository
- basyx.submodelrepository-feature-kafka
- src/test/java/org/eclipse/digitaltwin/basyx/submodelrepository/feature/kafka
- basyx.submodelrepository.component
- src/test/java/org/eclipse/digitaltwin/basyx/submodelrepository/component
- basyx.submodelservice/basyx.submodelservice-feature-kafka
- src/test/java/org/eclipse/digitaltwin/basyx/submodelservice/feature/kafka
- ci
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 69 | + | |
75 | 70 | | |
76 | | - | |
77 | 71 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 72 | + | |
85 | 73 | | |
86 | 74 | | |
87 | | - | |
| 75 | + | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
91 | 79 | | |
92 | 80 | | |
93 | | - | |
| 81 | + | |
94 | 82 | | |
95 | 83 | | |
96 | | - | |
| 84 | + | |
97 | 85 | | |
98 | 86 | | |
99 | | - | |
| 87 | + | |
100 | 88 | | |
101 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
102 | 93 | | |
103 | 94 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 95 | + | |
108 | 96 | | |
109 | 97 | | |
110 | 98 | | |
111 | 99 | | |
112 | 100 | | |
113 | 101 | | |
114 | 102 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 103 | + | |
| 104 | + | |
118 | 105 | | |
119 | | - | |
| 106 | + | |
120 | 107 | | |
121 | 108 | | |
122 | 109 | | |
123 | 110 | | |
124 | 111 | | |
125 | | - | |
126 | | - | |
| 112 | + | |
| 113 | + | |
127 | 114 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 115 | + | |
| 116 | + | |
131 | 117 | | |
132 | 118 | | |
133 | 119 | | |
134 | 120 | | |
135 | 121 | | |
136 | 122 | | |
137 | | - | |
138 | 123 | | |
139 | 124 | | |
140 | 125 | | |
141 | 126 | | |
142 | 127 | | |
143 | 128 | | |
144 | 129 | | |
145 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
146 | 135 | | |
147 | 136 | | |
148 | | - | |
| 137 | + | |
149 | 138 | | |
150 | 139 | | |
151 | 140 | | |
152 | 141 | | |
153 | 142 | | |
154 | | - | |
| 143 | + | |
155 | 144 | | |
156 | 145 | | |
| 146 | + | |
| 147 | + | |
157 | 148 | | |
158 | 149 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
| |||
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| 150 | + | |
144 | 151 | | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
151 | | - | |
152 | | - | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
158 | | - | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
180 | | - | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
230 | | - | |
| 237 | + | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
| |||
236 | 243 | | |
237 | 244 | | |
238 | 245 | | |
239 | | - | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
251 | | - | |
| 258 | + | |
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
255 | | - | |
| 262 | + | |
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
| |||
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
283 | | - | |
284 | | - | |
| 290 | + | |
285 | 291 | | |
286 | 292 | | |
287 | 293 | | |
| |||
615 | 621 | | |
616 | 622 | | |
617 | 623 | | |
618 | | - | |
| 624 | + | |
619 | 625 | | |
620 | 626 | | |
621 | 627 | | |
622 | 628 | | |
623 | 629 | | |
624 | 630 | | |
625 | | - | |
| 631 | + | |
626 | 632 | | |
627 | 633 | | |
628 | 634 | | |
| |||
639 | 645 | | |
640 | 646 | | |
641 | 647 | | |
642 | | - | |
| 648 | + | |
643 | 649 | | |
644 | 650 | | |
645 | 651 | | |
| |||
674 | 680 | | |
675 | 681 | | |
676 | 682 | | |
677 | | - | |
678 | 683 | | |
0 commit comments