-
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
[WIP] Remove dependency on ArchiveFactory #6156
Draft
mahadzaryab1
wants to merge
21
commits into
jaegertracing:main
Choose a base branch
from
mahadzaryab1:refactor-archive-es
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
92cc3f4
Add IsArchive Flag To ESConfig
mahadzaryab1 8a548a1
Change Options To Only Hold One Config
mahadzaryab1 dd04a13
Change ES Factory To Remove Archive Implementation
mahadzaryab1 209b834
Change Usages of Factory
mahadzaryab1 89c7c70
Remove Namespace Parameter For NewFactoryWithConfig
mahadzaryab1 c6b6274
Fix Build Errors And Naming
mahadzaryab1 92e8070
Remove Cast To Archive Factory
mahadzaryab1 535aa2c
Fix Unit Test
mahadzaryab1 76a3528
Remove Archive Reader And Writers From Blackhole And Memory Storage
mahadzaryab1 50795b0
Fix Lint Checks
mahadzaryab1 a4d41b9
Fix Unit Test
mahadzaryab1 11a560d
Fix Unit Tests
mahadzaryab1 8c8e8ae
Fix Lint Error And Comment Out Archive Flags
mahadzaryab1 bbcdbd7
Initialize Archive Factory In Tests
mahadzaryab1 6c1fd95
Set IsArchive Flag In Factory
mahadzaryab1 43487cd
Fix Span Writer In ES Config
mahadzaryab1 c65bd21
Merge branch 'main' into refactor-archive-es
mahadzaryab1 7f87200
Expose is_archive Flag
mahadzaryab1 7d65eb8
Refactor Cassandra Namespace To Only Hold One Storage Type
mahadzaryab1 c385416
Fix Cassandra Archive Integration Test
mahadzaryab1 4194aab
Fix Linter
mahadzaryab1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,8 @@ type Configuration struct { | |
Tags TagsAsFields `mapstructure:"tags_as_fields"` | ||
// Enabled, if set to true, enables the namespace for storage pointed to by this configuration. | ||
Enabled bool `mapstructure:"-"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this still used? Let's add some comments, because this is not the first time I have this question, and the flag doesn't really make sense to me. |
||
// TODO: revisit if this needed | ||
IsArchive bool | ||
} | ||
|
||
// TagsAsFields holds configuration for tag schema. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 any thoughts on how we should handle this case here? previously, this wouldn't initialize the archive storage if the factory didn't implement the
ArchiveStorage
interface but now it always will.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 should not be different from all other v1 binaries. If I run
I see that it supports the same
--cassandra.*
and--cassandra-archive.*
flags, so we have enough information to instantiate two separate factories, just like v1 all-in-one/query would have to do.