vikramahuja1001 commented on a change in pull request #3537: [CARBONDATA-3646]
[CARBONDATA-3647]: Fix query failure with Index Server
URL: https://github.com/apache/carbondata/pull/3537#discussion_r362427255
##########
File path:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/cache/CarbonDropCacheCommand.scala
##########
@@ -49,18 +49,19 @@ case class CarbonDropCacheCommand(tableIdentifier:
TableIdentifier, internalCall
OperationListenerBus.getInstance.fireEvent(dropCacheEvent,
operationContext)
val cache = CacheProvider.getInstance().getCarbonCache
+ // Clearing cache from IndexServer
+ if
(CarbonProperties.getInstance().isDistributedPruningEnabled(carbonTable.getDatabaseName,
+ carbonTable.getTableName)) {
+ LOGGER.info("Clearing cache from IndexServer")
+ DataMapUtil.executeClearDataMapJob(carbonTable,
DataMapUtil.DISTRIBUTED_JOB_NAME)
+ }
if (cache != null) {
- // Get all Index files for the specified table.
- if
(CarbonProperties.getInstance().isDistributedPruningEnabled(carbonTable.getDatabaseName,
- carbonTable.getTableName)) {
- DataMapUtil.executeClearDataMapJob(carbonTable,
DataMapUtil.DISTRIBUTED_JOB_NAME)
- } else {
- // Extract dictionary keys for the table and create cache keys from
those
- val dictKeys: List[String] = CacheUtil.getAllDictCacheKeys(carbonTable)
- // Remove elements from cache
- cache.removeAll(dictKeys.asJava)
-
DataMapStoreManager.getInstance().clearDataMaps(carbonTable.getAbsoluteTableIdentifier)
- }
+ LOGGER.info("Clearing cache from driver side")
+ // Extract dictionary keys for the table and create cache keys from those
Review comment:
done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services