-
Notifications
You must be signed in to change notification settings - Fork 0
feat(learning): schedule consolidation maintenance #214
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -348,6 +348,7 @@ private static long fileSize(Path file) { | |||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||
| return Files.exists(file) ? Files.size(file) : 0L; | ||||||||||||||||||||||||||||||
| } catch (IOException e) { | ||||||||||||||||||||||||||||||
| log.debug("Failed to read memory file size for {}: {}", file, e.getMessage()); | ||||||||||||||||||||||||||||||
| return 0L; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
Comment on lines
+347
to
353
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. Avoid silently swallowing file-size read failures At Line 350, returning 💡 Suggested fix (add low-noise logging) private static long fileSize(Path file) {
try {
return Files.exists(file) ? Files.size(file) : 0L;
} catch (IOException e) {
+ log.warn("Failed to read backing file size for {}: {}", file, e.getMessage());
return 0L;
}
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.