-
-
Notifications
You must be signed in to change notification settings - Fork 162
Hottier fix #1645
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
Open
parmesant
wants to merge
13
commits into
parseablehq:main
Choose a base branch
from
parmesant:hottier-fix
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.
Open
Hottier fix #1645
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
86083cf
fix: hottier downloads
parmesant b26b90b
replace streaming with parallel downloads
parmesant 92866c0
new task per range
parmesant 881d6fe
expose new env vars
parmesant aec06d3
parallel file download per stream
parmesant 2b786c7
concurrent writes instead of mutex
parmesant 24b893f
crash safety by using .partial file
parmesant e734cf4
separate out historic and latest hottier tasks
parmesant 60b8894
add logs
parmesant b5a348e
two loops instead of clockwerk
parmesant 2b2fe61
per-stream hottier tasks
parmesant 43e437c
fix: deepsource, coderabbit suggestions
parmesant b185b38
hottier deletion bug
parmesant 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 hidden or 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 hidden or 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.
Validate the new hot-tier time knobs at parse time.
hot_tier_latest_minutescurrently accepts negatives, andhot_tier_historic_sync_minutesaccepts0. With the new perpetual per-stream sync loops, that can turn the latest/historic split invalid or create a tight historic-sync loop. Please bound these in clap instead of relying on downstream code to recover.Suggested fix
#[arg( long = "hot-tier-latest-minutes", env = "P_HOT_TIER_LATEST_MINUTES", default_value = "10", + value_parser = value_parser!(i64).range(1..), help = "Files whose timestamp is within the last N minutes are 'latest'; rest are 'historic'." )] pub hot_tier_latest_minutes: i64, #[arg( long = "hot-tier-historic-sync-minutes", env = "P_HOT_TIER_HISTORIC_SYNC_MINUTES", default_value = "5", + value_parser = value_parser!(u32).range(1..), help = "Interval (minutes) at which the historic hot-tier sync runs." )] pub hot_tier_historic_sync_minutes: u32,🤖 Prompt for AI Agents