chore: Consolidate error enums and use expect where possible - #824
Open
adwk67 wants to merge 11 commits into
Open
chore: Consolidate error enums and use expect where possible#824adwk67 wants to merge 11 commits into
adwk67 wants to merge 11 commits into
Conversation
12 tasks
adwk67
marked this pull request as ready for review
September 7, 2026 10:12
siegfriedweber
requested changes
Sep 8, 2026
Comment on lines
+475
to
+478
| .expect( | ||
| "The mount paths are either statically defined or derived from the unique PVC \ | ||
| names, so there are no duplicates.", | ||
| ) |
Member
There was a problem hiding this comment.
Verifying this expectation took me a while. It is not obvious, and that alone is an argument for keeping the error handling here: if it takes this much digging to confirm, we may well have overlooked something.
As it turns out, the PVC names are in fact not unique:
dataNodes:
roleGroups:
default:
config:
resources:
storage:
data:
count: 3
capacity: 1Gi
hdfsStorageType: Disk
data-2:
count: 3
capacity: 1Gi
hdfsStorageType: Diskcrd::storage::pvc_names turns the user-provided (!) storage name data into the PVC names data, data-1 and data-2, and the equally user-provided name data-2 into data-2, data-2-1 and data-2-2. Two PersistentVolumeClaims named data-2 therefore end up in the StatefulSet.
add_volume_mounts still does not return an error, because both VolumeMounts have the same content, and in that case the duplicate is silently dropped:
- mountPath: /stackable/data/data-2
name: data-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of stackabletech/issues#883
One smoke test is failing.Re-run:
With deactivated chaos-monkey step in one tests:
With all steps for the affected test:
N.B. the test was fixed (flakiness due to a race condition) in this PR although the cause predates it: we may want to fix this in a separate PR or fix it at the
haadminprobe level in the code instead.Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker