-
Notifications
You must be signed in to change notification settings - Fork 124
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
Schema leak #522
Schema leak #522
Conversation
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.
Nice find!
1773c74
to
6c28360
Compare
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.
Since we're introducing slices
now, the search code at lines 144-148 could be replaced with a call to slices.IndexFunc
.
335ac95
to
dce6002
Compare
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.
Looks great
We neglect to remove schemas from
s.schemas
ins.doRemoveSchema
which results in duplicate entries ins.schemas
which are never removed. This introduces a memory leak of ~300 mb a week on a large rancher cluster.rancher/rancher#47694