Skip to content

Commit 9307c28

Browse files
authored
chore: Bump vector to 0.55.0 (#940)
* test: Bump vector-aggregator to 0.55.0 * test: replace /graphql call with gRPC call * chore: Update changelog
1 parent 959f99f commit 9307c28

3 files changed

Lines changed: 34 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
1919
- Internal operator refactoring: introduce dereference() and validate() steps in the reconciler ([#935]).
2020
- Default `nifi.cluster.flow.election.max.wait.time` to NiFi's upstream value (`5 mins`) instead of the operator's previous `1 mins`. The operator no longer sets this property explicitly; the previous shorter value was left over from a TODO marked as "for testing" and may have caused flow election to settle on incomplete vote sets in cold-start scenarios ([#936]).
2121
- Set `nifi.content.repository.archive.max.retention.period` to `3 days` (previously empty, which NiFi interprets as `Long.MAX_VALUE` and effectively disables time-based archive purge). Without a time-based ceiling, the content archive can grow to half the content PVC and accumulate millions of files, which makes the synchronous startup directory scan in `FileSystemRepository.initializeRepository` very slow. Users requiring a longer content-replay window can extend via `configOverrides`. The provenance audit trail is independent of this setting and unaffected ([#936]).
22+
- test: Bump vector-aggregator to 0.55.0, replace /graphql call with gRPC call ([#940]).
2223

2324
### Fixed
2425

@@ -32,6 +33,7 @@ All notable changes to this project will be documented in this file.
3233
[#928]: https://github.com/stackabletech/nifi-operator/pull/928
3334
[#935]: https://github.com/stackabletech/nifi-operator/pull/935
3435
[#936]: https://github.com/stackabletech/nifi-operator/pull/936
36+
[#940]: https://github.com/stackabletech/nifi-operator/pull/940
3537

3638
## [26.3.0] - 2026-03-16
3739

tests/templates/kuttl/logging/01-install-nifi-vector-aggregator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ commands:
55
- script: >-
66
helm install nifi-vector-aggregator vector
77
--namespace $NAMESPACE
8-
--version 0.49.0
8+
--version 0.52.0 `# app version 0.55.0`
99
--repo https://helm.vector.dev
1010
--values nifi-vector-aggregator-values.yaml
1111
---
Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,44 @@
1-
#!/usr/bin/env python3
2-
import requests
1+
import json
2+
import subprocess
33

44

55
def check_sent_events():
6-
response = requests.post(
7-
'http://nifi-vector-aggregator:8686/graphql',
8-
json={
9-
'query': """
10-
{
11-
transforms(first:100) {
12-
nodes {
13-
componentId
14-
metrics {
15-
sentEventsTotal {
16-
sentEventsTotal
17-
}
18-
}
19-
}
20-
}
21-
}
22-
"""
23-
}
6+
response = subprocess.run(
7+
[
8+
"grpcurl",
9+
"-plaintext",
10+
"-d",
11+
'{"limit": 100}',
12+
"nifi-vector-aggregator:8686",
13+
"vector.observability.v1.ObservabilityService/GetComponents",
14+
],
15+
capture_output=True,
16+
text=True,
17+
check=True, # Raise a CalledProcessError if non-zero return
18+
timeout=20, # seconds
2419
)
20+
result = json.loads(response.stdout)
21+
components = result.get("components", [])
22+
transforms = [
23+
c for c in components if c.get("componentType") == "COMPONENT_TYPE_TRANSFORM"
24+
]
2525

26-
assert response.status_code == 200, \
27-
'Cannot access the API of the vector aggregator.'
26+
assert len(transforms) > 0, "No transform components found"
2827

29-
result = response.json()
30-
31-
transforms = result['data']['transforms']['nodes']
3228
for transform in transforms:
33-
sentEvents = transform['metrics']['sentEventsTotal']
34-
componentId = transform['componentId']
29+
sentEvents = transform["metrics"]["sentEventsTotal"]
30+
componentId = transform["componentId"]
3531

36-
if componentId == 'filteredInvalidEvents':
37-
assert sentEvents is None or \
38-
sentEvents['sentEventsTotal'] == 0, \
39-
'Invalid log events were sent.'
32+
if componentId == "filteredInvalidEvents":
33+
assert sentEvents is None or int(sentEvents) == 0, (
34+
"Invalid log events were sent."
35+
)
4036
else:
41-
assert sentEvents is not None and \
42-
sentEvents['sentEventsTotal'] > 0, \
37+
assert sentEvents is not None and int(sentEvents) > 0, (
4338
f'No events were sent in "{componentId}".'
39+
)
4440

4541

46-
if __name__ == '__main__':
42+
if __name__ == "__main__":
4743
check_sent_events()
48-
print('Test successful!')
44+
print("Test successful!")

0 commit comments

Comments
 (0)