Skip to content

Conversation

masihkhatibzadeh99
Copy link
Contributor

@masihkhatibzadeh99 masihkhatibzadeh99 commented May 26, 2025

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 when
Replicas is nil. This allows users to explicitly configure
replicas: 0 without being ignored.

Reesolves #7123

@yurishkuro
Copy link
Member

please sign the commits and make sure make test lint works locally

Copy link
Member

@yurishkuro yurishkuro left a 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.

@masihkhatibzadeh99
Copy link
Contributor Author

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>
@masihkhatibzadeh99 masihkhatibzadeh99 force-pushed the fix/replicas-zero-respected branch from 24454ac to 3a83f02 Compare June 1, 2025 09:26
Copy link

codecov bot commented Jun 1, 2025

Codecov Report

Attention: Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.18%. Comparing base (782cc19) to head (133d246).
Report is 28 commits behind head on main.

Files with missing lines Patch % Lines
internal/storage/v1/elasticsearch/options.go 93.33% 1 Missing ⚠️
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     
Flag Coverage Δ
badger_v1 9.86% <8.69%> (-0.02%) ⬇️
badger_v2 1.91% <8.69%> (+0.01%) ⬆️
cassandra-4.x-v1-manual 14.82% <8.69%> (-0.03%) ⬇️
cassandra-4.x-v2-auto 1.90% <8.69%> (+0.01%) ⬆️
cassandra-4.x-v2-manual 1.90% <8.69%> (+0.01%) ⬆️
cassandra-5.x-v1-manual 14.82% <8.69%> (-0.03%) ⬇️
cassandra-5.x-v2-auto 1.90% <8.69%> (+0.01%) ⬆️
cassandra-5.x-v2-manual 1.90% <8.69%> (+0.01%) ⬆️
elasticsearch-6.x-v1 20.71% <73.91%> (+0.02%) ⬆️
elasticsearch-7.x-v1 20.79% <73.91%> (+0.02%) ⬆️
elasticsearch-8.x-v1 20.97% <73.91%> (+0.02%) ⬆️
elasticsearch-8.x-v2 1.91% <8.69%> (+0.01%) ⬆️
grpc_v1 11.39% <8.69%> (-0.02%) ⬇️
grpc_v2 1.91% <8.69%> (+0.01%) ⬆️
kafka-3.x-v1 10.21% <8.69%> (+0.06%) ⬆️
kafka-3.x-v2 1.91% <8.69%> (+0.01%) ⬆️
memory_v2 1.91% <8.69%> (+0.01%) ⬆️
opensearch-1.x-v1 20.84% <73.91%> (+0.02%) ⬆️
opensearch-2.x-v1 20.84% <73.91%> (+0.02%) ⬆️
opensearch-2.x-v2 1.91% <8.69%> (+0.01%) ⬆️
query 1.91% <8.69%> (+0.01%) ⬆️
tailsampling-processor 0.53% <8.69%> (+0.01%) ⬆️
unittests 95.00% <96.66%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
@masihkhatibzadeh99 masihkhatibzadeh99 force-pushed the fix/replicas-zero-respected branch from 20de8c9 to b018d6b Compare June 2, 2025 19:45
Signed-off-by: Masih Khatibzadeh <masih78khatibzadeh@gmail.com>
@yurishkuro yurishkuro enabled auto-merge June 9, 2025 21:34
@yurishkuro yurishkuro added this pull request to the merge queue Jun 9, 2025
Merged via the queue into jaegertracing:main with commit ea73774 Jun 9, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants