>From comments in MultiCore: // TODO? -- add some kind of hook to close the core after all references are // gone... is finalize() enough?
A problem with this is that the IndexReader is still open, and thus we can run out of file descriptors if a bunch of reloads are done (I've seen this happen). Perhaps we can somewhat decrease the likelihood by calling System.gc() after a core reload? Other than that, I'm not sure we have the infrastructure in place to know when it's safe to actually shut down a core without causing requests to fail. -Yonik
