GitHub user cwestin opened a pull request:
https://github.com/apache/drill/pull/102
DRILL-3594: don't use first query's allocator for rest of drillbit's â¦
DrillRuleSets.getDrillBasicRules() lazily constructed the singleton set of
rules to use. However, some of the rule objects capture the current query's
context. The new memory allocator detected that the allocator from the query
context of the first query is being used later, for other queries' rules
processing, even though that allocator has been closed. This patch creates a
static set of rules, and using that, creates a new set for each query, allowing
the rules that need the current context to use that, because those are only
added to the set to be used for this query.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cwestin/incubator-drill alloc-rulesets
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/drill/pull/102.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #102
----
commit b061568ed880f40eaec1bc381170e7c5e9abf0f7
Author: Chris Westin <[email protected]>
Date: 2015-08-03T20:13:21Z
DRILL-3594: don't use first query's allocator for rest of drillbit's life
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---