-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Grpc plugin archive storage support #2317
Conversation
ecd9b5c
to
dd374cf
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2317 +/- ##
==========================================
+ Coverage 95.21% 95.36% +0.14%
==========================================
Files 208 208
Lines 9158 9217 +59
==========================================
+ Hits 8720 8790 +70
+ Misses 363 351 -12
- Partials 75 76 +1 ☔ View full report in Codecov by Sentry. |
055114c
to
e27cc98
Compare
|
@m8rge ack-ing that I saw the PR, will review over the weekend, unless @pavolloffay gets to it first. |
a3549ae
to
b920888
Compare
I'll change README.md last. |
@yurishkuro, Could you fill your comments? |
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.
Sorry for delay, many other things came up.
My main concern with this approach is the introduction of shared.ArchiveReader/ArchiveWriter interfaces that are pretty redundant. In the main storage we did not have that - we had archive factory, but it was returning normal reader/writer interfaces, and the fact that they are for "archive" was apparent from the context.
I am not convinced by https://github.com/jaegertracing/jaeger/pull/2317/files#r457931354 that these interfaces are necessary. The GRPC methods are already different anyway, and there is no strong need to have a single type implement both main and archive storage.
d66b1ce
to
5d2860d
Compare
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.
Sorry for the delay. Overall looks good to me.
@joe-elliott @albertteoh you might want to review this, it's a good deep dive into storage APIs
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, just some minor comments.
9a223b6
to
edd05a4
Compare
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.
Some minor comments/thoughts. After this is merged I'm going to look into improving tests per this discussion #2455 (comment)
Other than the conflict, what's the status of this PR? |
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
…ces on plugin client side Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
- make internal types private - add interface validations - wrap errors with %w Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Andrew Putilov <[email protected]>
5b24f20
to
a3111df
Compare
@yurishkuro how can I trigger codecov? It stuck in "Waiting for status to be reported" status |
Signed-off-by: Andrew Putilov <[email protected]>
@yurishkuro Codecov now points to |
Signed-off-by: Yuri Shkuro <[email protected]>
🎉 🎉 🎉 Thanks for your patience, @m8rge. Do you mind creating another PR to explain these changes in |
Signed-off-by: Andrew Putilov [email protected]
Which problem is this PR solving?
Resolves #2299
Short description of the changes
ArchiveSpanReader
andArchiveSpanWriter
toshared.StoragePlugin
interface.proto/storage.proto
ArchiveSpanWriterPlugin
andArchiveSpanReaderPlugin
services to serve archive storage methods.ArchiveSupported() bool
to return is archive storage supported or not.ArchiveSpanReaderPlugin
service implemented. Will act same as archive storage not supported by plugin.