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

Rollback bolt tx on mapper open error #4034

Merged
merged 1 commit into from
Sep 8, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This commit fixes SelectMapper.Open() so that it properly rolls back transactions. Previously, this caused transactions to stay open indefinitely which caused mmap resizes to hang indefinitely.

This commit fixes `SelectMapper.Open()` so that it properly rolls back
transactions. Previously, this caused transactions to stay open
indefinitely which caused mmap resizes to hang indefinitely.
if lm.queryTMin == 0 || lm.intervalSize == 0 {
lm.numIntervals = 1
lm.intervalSize = lm.queryTMax - lm.queryTMin
if err := func() error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line and the conditional block at the bottom are the only changes in this PR.

@otoolep
Copy link
Contributor

otoolep commented Sep 8, 2015

+1

2 similar comments
@jwilder
Copy link
Contributor

jwilder commented Sep 8, 2015

👍

@corylanou
Copy link
Contributor

+1

benbjohnson added a commit that referenced this pull request Sep 8, 2015
Rollback bolt tx on mapper open error
@benbjohnson benbjohnson merged commit 1c5604b into influxdata:master Sep 8, 2015
@benbjohnson benbjohnson deleted the handle-tx branch September 8, 2015 16:50
@otoolep
Copy link
Contributor

otoolep commented Sep 8, 2015

Great fix.

On Tuesday, September 8, 2015, Ben Johnson notifications@github.com wrote:

Merged #4034 #4034.


Reply to this email directly or view it on GitHub
#4034 (comment).

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.

None yet

4 participants