Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10375

Lock down which filesystem types use the file handle cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.2.0
    • Backend
    • None

    Description

      When determining whether to cache file handles, the code uses this check:

      bool use_file_handle_cache = false;
      if (is_file_handle_caching_enabled() &&
          (expected_local_ ||
           (FLAGS_cache_remote_file_handles && disk_id_ == io_mgr_->RemoteDfsDiskId()) ||
           (FLAGS_cache_s3_file_handles && disk_id_ == io_mgr_->RemoteS3DiskId()) ||
           (FLAGS_cache_abfs_file_handles && disk_id_ == io_mgr_->RemoteAbfsDiskId())) {
        use_file_handle_cache = true;
      }

      If expected_local_ is specified, then we always would allow caching, regardless of filesystem type. While expected_local_ should be false for remote filesystems, the code should be more defensive and only use the file handle cache for specific supported filesystems. In particular, we currently don't support caching Ozone file handles, but if this somehow considered Ozone local, then it would cache them.

      Attachments

        Issue Links

          Activity

            People

              joemcdonnell Joe McDonnell
              joemcdonnell Joe McDonnell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: