-
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
Fix es-archive namespace default values #2865
Fix es-archive namespace default values #2865
Conversation
Signed-off-by: albertteoh <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2865 +/- ##
==========================================
- Coverage 95.93% 95.91% -0.02%
==========================================
Files 223 223
Lines 9675 9679 +4
==========================================
+ Hits 9282 9284 +2
- Misses 325 326 +1
- Partials 68 69 +1
Continue to review full report at Codecov.
|
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.
Might warrant a "breaking change" entry in the changelog
Signed-off-by: albertteoh <[email protected]>
👍 Breaking change entry added. |
the ES integration tests don't seem to like this change |
Signed-off-by: albertteoh <[email protected]>
Signed-off-by: albertteoh <[email protected]>
Signed-off-by: albertteoh <[email protected]>
}, | ||
others: make(map[string]*namespaceConfig, len(otherNamespaces)), | ||
} | ||
|
||
// Other namespaces need to be explicitly enabled. | ||
defaultConfig.Enabled = 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.
This should fix both the failing ES integration tests and Crossdock builds.
The cause was due to archive mode being enabled by default and attempting to either ping a non-existent ES for a version (failing ES integration test) or attempting to communicate with ES on the wrong (default) IP address (failing Crossdock builds).
The original behaviour was to have archive mode disabled.
Signed-off-by: albertteoh [email protected]
Which problem is this PR solving?
Short description of the changes
Sets the default config of "other" namespaces to the primary's default config.
As discussed in Fix archive default values reported for ES and Cassandra #2853, the primary default of
72h
is misleading to users because an archive fetch should have no "lookback" limit, fetching any traceID that is in archive storage.This PR also removes the
--es-archive.max-span-age
flag to avoid confusing users.Testing
--es-archive.max-span-age
no longer appears in--help
for both query and collector.