simlaudato / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Index creation/use can cause resource leakage #910

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In IndexDataflowHelper, calling create() will make an index instance, and 
create it. This inserts an entry into the IndexLifecycleManager's resource map. 
Entries in this map are only freed once unregister() is called on an index. 
However this only happens when an index is destroyed, not when it is closed. 
There is no other way in which references to indexes are garbage collected 
(even though there is a reference counter in the IndexInfo). Therefore creating 
or using an index uses resources in this map even if they are not active, and 
were created during the lifetime of the NC- and there is no way to free that 
memory. 

Original issue reported on code.google.com by ima...@uci.edu on 22 Jul 2015 at 3:13