-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix(elasticsearch): respect explicitly configured replicas=0 in index… #7160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(elasticsearch): respect explicitly configured replicas=0 in index… #7160
Conversation
please sign the commits and make sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this breaks the rest of the code.
I'm currently going through the rest of the code to update all uses of Replicas to handle *int64 properly. |
… options Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
24454ac
to
3a83f02
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7160 +/- ##
==========================================
- Coverage 96.21% 96.18% -0.03%
==========================================
Files 361 366 +5
Lines 21836 21962 +126
==========================================
+ Hits 21009 21124 +115
- Misses 618 626 +8
- Partials 209 212 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
20de8c9
to
b018d6b
Compare
Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
Previously, replicas set to 0 in the OpenTelemetryCollector config
would be overwritten by default values.
This commit updates the IndexOptions struct to use a pointer type for
Replicas
and adjusts the defaulting logic to only apply defaults whenReplicas
is nil. This allows users to explicitly configurereplicas: 0
without being ignored.Reesolves #7123