Skip to content
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: Prevent division by zero in HugePages calculation #810

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Nov 19, 2024

Ensures huge_page_size has a valid value before performing division to prevent errors.

Added a fallback to use the default 2048 if huge_page_size is invalid or zero. Improves stability when calculating required HugePages for shared buffers.

Fixed:

TASK [pre-checks : HugePages | Calculate required HugePages] *******************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ZeroDivisionError: integer division or modulo by zero

@vitabaks vitabaks self-assigned this Nov 19, 2024
@vitabaks vitabaks merged commit 67a2127 into master Nov 19, 2024
16 checks passed
@vitabaks vitabaks deleted the huge-page-size branch November 19, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant