-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: Fix scanning from HTTP cloud paths #17571
Conversation
if builder.get_config_value(key).is_none() { | ||
let reg = Regex::new(pattern).unwrap(); | ||
let cap = reg.captures(content)?; | ||
let m = cap.get(1)?; | ||
let parsed = m.as_str(); | ||
*builder = local.with_config(*key, parsed) | ||
*builder = std::mem::take(builder).with_config(*key, parsed); |
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.
Fix issue with the config key being incorrectly overwritten. If the code above using ?
short circuits then the original config is reset due to mem::take
.
futures::future::try_join_all( | ||
(0..if first_uri.starts_with("http") { | ||
// Object stores for http are tied to the path. | ||
uri_list.len() |
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.
Fix issue where scanning a list of HTTP paths would just scan the first file N times.
I learned this today but the |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17571 +/- ##
=======================================
Coverage 80.49% 80.49%
=======================================
Files 1483 1483
Lines 195171 195203 +32
Branches 2778 2778
=======================================
+ Hits 157099 157135 +36
+ Misses 37561 37557 -4
Partials 511 511 ☔ View full report in Codecov by Sentry. |
Closes #17567