> After select query the cache is doubled and the drop metacache is not removing the cache in Spark 2.1 Carbon
> ------------------------------------------------------------------------------------------------------------
>
> Key: CARBONDATA-3587
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-3587> Project: CarbonData
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Vikram Ahuja
> Priority: Minor
> Fix For: 2.0.0
>
>
> After select query the cache is doubled and the drop metacache is not removing the cache in Spark 2.1 Carbon for the Index Server
> Show metacache after load command:
> show metacache on table uniqdata;
> +-------------+--------+-------------------------+-----------------+--+
> | Field | Size | Comment | Cache Location |
> +-------------+--------+-------------------------+-----------------+--+
> | Index | 0 B | 0/1 index files cached | DRIVER |
> | Dictionary | 0 B | | DRIVER |
> | Index | 769 B | 1/1 index files cached | INDEX SERVER |
> | Dictionary | 0 B | | INDEX SERVER |
> +-------------+--------+-------------------------+-----------------+–+
>
> Show metacache after select query:
> +-------------+------------+-------------------------+-----------------+--+
> | Field | Size | Comment | Cache Location |
> +-------------+------------+-------------------------+-----------------+--+
> | Index | 0 B | 0/1 index files cached | DRIVER |
> | Dictionary | 318.53 KB | | DRIVER |
> | Index | 1.5 KB | 2/1 index files cached | INDEX SERVER |
> | Dictionary | 318.53 KB | | INDEX SERVER |
> +-------------+------------+-------------------------+-----------------+–+
>
> Show metacache after drop metacache command:
> +-------------+------------+-------------------------+-----------------+--+
> | Field | Size | Comment | Cache Location |
> +-------------+------------+-------------------------+-----------------+--+
> | Index | 0 B | 0/1 index files cached | DRIVER |
> | Dictionary | 318.53 KB | | DRIVER |
> *| Index | 769 B | 1/1 index files cached | INDEX SERVER |*
> | Dictionary | 318.53 KB | | INDEX SERVER |
> +-------------+------------+-------------------------+-----------------+--+