Author: rareddy
Date: 2011-07-06 14:34:49 -0400 (Wed, 06 Jul 2011)
New Revision: 3303
Modified:
branches/7.1.1.CP3/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java
Log:
TEIID-1493: If the same VDB vesion is added and removed recently, the code was not
flushing the cache contents; however in the case of startup, there will be no-entries in
the recently removed map, the cache entries will be dumped for all the VDBs, thus
invalidate the distributed cache entries. Here TEIID-1256 being reverted as this was
wrong assumption from before of the behavior required. Removing the clearing of the cache
entries entirely. Actually I am little confused about the intent of the map to keep track
of the recently removed vdbs, as this doing opposite to what is documented in terms of the
active connections.
Modified:
branches/7.1.1.CP3/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java
===================================================================
---
branches/7.1.1.CP3/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java 2011-07-05
13:43:39 UTC (rev 3302)
+++
branches/7.1.1.CP3/jboss-integration/src/main/java/org/teiid/jboss/deployers/RuntimeEngineDeployer.java 2011-07-06
18:34:49 UTC (rev 3303)
@@ -62,7 +62,6 @@
import org.teiid.adminapi.AdminComponentException;
import org.teiid.adminapi.AdminException;
import org.teiid.adminapi.AdminProcessingException;
-import org.teiid.adminapi.Admin.Cache;
import org.teiid.adminapi.impl.CacheStatisticsMetadata;
import org.teiid.adminapi.impl.DQPManagement;
import org.teiid.adminapi.impl.RequestMetadata;
@@ -240,10 +239,6 @@
} catch (SessionServiceException e) {
//ignore
}
-
- // dump the caches.
- dqpCore.clearCache(Cache.PREPARED_PLAN_CACHE.toString(), name, version);
- dqpCore.clearCache(Cache.QUERY_SERVICE_RESULT_SET_CACHE.toString(), name, version);
}
});
}
Show replies by date