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: ensure consistent time units and prevent erroneous cleanup in incrRollupi Process #9259

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

gooohgb
Copy link
Contributor

@gooohgb gooohgb commented Jan 8, 2025

Description

This PR fixes a bug in the Process function of incrRollupi. The issue was caused by inconsistent time units between the doRollup and cleanupTick logic. Specifically, doRollup used time.Now().Unix() (seconds), while cleanupTick used time.Now().UnixNano() (nanoseconds). This mismatch caused cleanupTick to erroneously delete all entries in the map m during every cleanup cycle.

Checklist

  • Code compiles correctly and linting passes locally

@gooohgb gooohgb requested a review from a team as a code owner January 8, 2025 03:38
Copy link
Member

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you for fixing it.

@mangalaman93 mangalaman93 enabled auto-merge (squash) January 8, 2025 08:07
@mangalaman93 mangalaman93 merged commit 13ca525 into hypermodeinc:main Jan 8, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants