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 boundaries on GC batch size #987

Merged

Conversation

connorgorman
Copy link
Contributor

@connorgorman connorgorman commented Aug 16, 2019

In the value log rewrite, the check to determine if the commit was going to be within transaction limits only checked if the value would be > than the max count. However, the check within the transaction is:

   if count >= db.opt.maxBatchCount || size >= db.opt.maxBatchSize {
        return nil, ErrTxnTooBig
    }

This change is Reviewable

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ A review job has been created and sent to the PullRequest network.


@connorgorman you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Changes match the description. Should there be a test to make sure this doesn't regress?


Reviewed with ❤️ by PullRequest

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✖️ This code review was cancelled. See Details

Copy link
Contributor

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @connorgorman. Looks good to me.

@jarifibrahim
Copy link
Contributor

@ashish-goswami Please review this PR.

@jarifibrahim
Copy link
Contributor

The change looks harmless. I'm merging it.

@jarifibrahim jarifibrahim merged commit 9725af7 into hypermodeinc:master Aug 21, 2019
jarifibrahim pushed a commit that referenced this pull request Mar 12, 2020
In the value log rewrite, the check to determine if the commit was
going to be within transaction limits is checked only if the value
would be `>` than the max count. However, the check within the
transaction is:

```
   if count >= db.opt.maxBatchCount || size >= db.opt.maxBatchSize {
        return nil, ErrTxnTooBig
    }
```

(cherry picked from commit 9725af7)
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