Revision: 17330
http://sourceforge.net/p/gate/code/17330
Author: valyt
Date: 2014-02-18 11:53:52 +0000 (Tue, 18 Feb 2014)
Log Message:
-----------
Optimisation: if the index is closing, skip lengthy operations on the
maintenance thread, to avoid getting killed by the system shutdown script.
Modified Paths:
--------------
mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
Modified: mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
===================================================================
--- mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
2014-02-18 11:52:45 UTC (rev 17329)
+++ mimir/branches/5.0/mimir-core/src/gate/mimir/MimirIndex.java
2014-02-18 11:53:52 UTC (rev 17330)
@@ -197,11 +197,12 @@
break;
}
}
- if(compactNeeded){
+ if(compactNeeded && !closed){
logger.debug("Compacting sub-indexes");
compactIndexSync();
}
- if(documentCollection.getArchiveCount() >
indexConfig.getMaximumBatches()) {
+ if(documentCollection.getArchiveCount() >
indexConfig.getMaximumBatches()
+ && !closed) {
try {
logger.debug("Compacting document collection");
compactDocumentCollection();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs