-
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
[refactor] Remove archive reader and writer from remote storage grpc handler #6611
[refactor] Remove archive reader and writer from remote storage grpc handler #6611
Conversation
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
ArchiveSpanReader: s.impl.SpanReader() != nil, | ||
ArchiveSpanWriter: s.impl.SpanWriter() != nil, |
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.
@yurishkuro should we remove these from the capabilities response altogether?
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.
yes
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.
we can mark them deprecated in the .proto definition and return false
here
ArchiveSpanReader: s.impl.ArchiveSpanReader() != nil, | ||
ArchiveSpanWriter: s.impl.ArchiveSpanWriter() != nil, | ||
ArchiveSpanReader: s.impl.SpanReader() != nil, | ||
ArchiveSpanWriter: s.impl.SpanWriter() != nil, | ||
StreamingSpanWriter: s.impl.StreamingSpanWriter() != nil, | ||
}, nil | ||
} | ||
|
||
func (s *GRPCHandler) GetArchiveTrace(r *storage_v1.GetTraceRequest, stream storage_v1.ArchiveSpanReaderPlugin_GetArchiveTraceServer) error { |
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.
should this return not-implemented error instead?
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.
@yurishkuro are we okay with making that breaking change?
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.
this will never be called by grpc-storage
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.
@yurishkuro is there a reason we can't just remove this then?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6611 +/- ##
==========================================
- Coverage 96.03% 96.00% -0.04%
==========================================
Files 365 365
Lines 20654 20616 -38
==========================================
- Hits 19836 19792 -44
- Misses 622 626 +4
- Partials 196 198 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
…handler (jaegertracing#6611) ## Which problem is this PR solving? - Towards jaegertracing#6065 ## Description of the changes - 🛑 This PR deprecates two fields in the `CapabilitiesResponse`; `ArchiveSpanReader` and `ArchiveSpanWriter` as these capabilities do not exist within grpc storage anymore and are configured externally. 🛑 - 🛑 This PR deprecates the ArchiveSpanReaderPlugin and ArchvieSpanWriterPlugin 🛑 ## How was this change tested? - CI ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
Which problem is this PR solving?
Description of the changes
CapabilitiesResponse
;ArchiveSpanReader
andArchiveSpanWriter
as these capabilities do not exist within grpc storage anymore and are configured externally. 🛑How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test