-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Indexer-Grpc-V2] Add DataManager. #15784
Conversation
⏱️ 3h 31m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
bf92309
to
917fa96
Compare
pub(crate) self_advertised_address: GrpcAddress, | ||
pub(crate) grpc_manager_addresses: Vec<GrpcAddress>, | ||
pub(crate) fullnode_addresses: Vec<GrpcAddress>, | ||
} | ||
|
||
const fn default_cache_config() -> CacheConfig { |
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.
why this over impl Default
trait?
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.
Will serde accept that?
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.
i thought something like #[serde(default)]
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.
I am using this on line 32? Isn't this what you mean?
} | ||
} | ||
|
||
fn maybe_evict(&mut self) -> bool { |
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.
nit: comments.
only when the file store is delayed, we'll not evict entries.
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.
also based on the name, it could be entried are evicted but the cache is still no usable... rename it? cleanup
or garbage_collect
?
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.
Done
917fa96
to
f0fe958
Compare
}; | ||
drop(cache); | ||
|
||
debug!( |
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.
if you want to surface these logs up in humio, you may upgrade to info or higher; I was under the impression that only info and above will be collected
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.
I choose debug! for this one on purpose. Feels too verbose for info!. I will have enough information on dashboard for version.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f0fe958
to
0f30403
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0f30403
to
dff70f4
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
Description
How Has This Been Tested?
Key Areas to Review
Type of Change
Which Components or Systems Does This Change Impact?
Checklist