Github user maryannxue commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/171#discussion_r65291859
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/ScanRegionObserver.java
---
@@ -234,6 +234,12 @@ protected RegionScanner doPostScannerOpen(final
ObserverContext<RegionCoprocesso
scan.getAttribute(QueryConstants.LAST_SCAN) != null);
}
final OrderedResultIterator iterator =
deserializeFromScan(scan,innerScanner);
+
+ if(iterator != null){
+
iterator.setMemoryManager(GlobalCache.getTenantCache(c.getEnvironment(),
tenantId).getMemoryManager());
+ }
+
+
--- End diff --
Is it possible to put this MemoryManager into constructor other than using
the set method?
---
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.
---