-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 concurrent map access panic #6647
Conversation
@@ -18,6 +18,8 @@ | |||
- [#6618](https://github.com/influxdata/influxdb/pull/6618): Optimize shard loading | |||
- [#6629](https://github.com/influxdata/influxdb/issues/6629): query-log-enabled in config not ignored anymore. | |||
- [#6607](https://github.com/influxdata/influxdb/issues/6607): SHOW TAG VALUES accepts != and !~ in WHERE clause. | |||
- [#6235](https://github.com/influxdata/influxdb/issues/6235): Fix meaurement field panic in tsm1 engine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
Minor nitpick but 👍 otherwise. |
Fixed. Will merge on circle green and a another +1 |
e.measurementFields[measurement] = mf | ||
} | ||
|
||
mf := e.MeasurementFields(measurement) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this deadlock when called from LoadMetaDataIndex
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eugh, it could if the measurement field doesn't exist.
Since addToIndexFromKey
is sometimes called while under an RLock
and sometimes isn't, this is going to take a little re-working. I'll push something up tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwilder I just looked at this and realised it's the Cache
's RLock
that's taken in LoadMetaDataIndex
, not the Engine
's.
So we're good to go?
Required for all non-trivial PRs
Fixes #6235