Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 3.2.0
-
None
-
ghx-label-2
Description
With the file handle cache, it is useful for repeated scans of the same file to go to the same node, as that node will already have a file handle cached.
When scheduling remote ranges, the scheduler introduces randomness that can spread reads across all of the nodes. Repeated executions of queries on the same set of files will not schedule the remote reads on the same nodes. This causes a large amount of duplication across file handle caches on different nodes. This reduces the efficiency of the cache significantly.
It may be useful for the scheduler to introduce some determinism in scheduling remote reads to take advantage of the file handle cache. This is a variation on the well-known tradeoff between skew and locality.