-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Remove deprecated index prefix separator : from Elastic #1620
Remove deprecated index prefix separator : from Elastic #1620
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
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.
LGTM - couple of minor points.
Could you also request feedback from the elasticsearch users.
@@ -304,6 +297,7 @@ func (s *SpanReader) multiRead(ctx context.Context, traceIDs []model.TraceID, st | |||
// i.e starts in one and ends in another. | |||
indices := s.timeRangeIndices(s.spanIndexPrefix, startTime.Add(-time.Hour), endTime.Add(time.Hour)) | |||
nextTime := model.TimeAsEpochMicroseconds(startTime.Add(-time.Hour)) | |||
fmt.Println(indices) |
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.
Did you mean to leave this?
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.
no, it was just to debug locally
{params:SpanReaderParams{Client:client, Logger: logger, MetricsFactory: metricsFactory, | ||
IndexPrefix:"", UseReadWriteAliases: true}, | ||
indices: []string{spanIndex+"read"}}, | ||
index: spanIndex+"read"}, | ||
{params:SpanReaderParams{Client:client, Logger: logger, MetricsFactory: metricsFactory, | ||
IndexPrefix:"foo:", Archive: false}, |
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.
nit: Change the IndexPrefix values so just "foo" rather than including ':'.
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.
It's there to stress that :
would be added if it is specified
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.
ok
Codecov Report
@@ Coverage Diff @@
## master #1620 +/- ##
==========================================
- Coverage 98.74% 98.74% -0.01%
==========================================
Files 191 191
Lines 9169 9165 -4
==========================================
- Hits 9054 9050 -4
Misses 89 89
Partials 26 26
Continue to review full report at Codecov.
|
In Jaeger 1.9.0 the index prefix separator was changed from ":" (not allowed in ES7) to "-". However query still reads from deprecated indices to keep backward compatibility. After half year old indices should be expired so safe to remove.
https://github.com/jaegertracing/jaeger/blob/master/CHANGELOG.md#190-2019-01-21