Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-8065 Support HDFS encryption functionality on Hive
  3. HIVE-9328

Tests cannot move files due to change on HIVE-9325

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • encryption-branch
    • encryption-branch
    • None
    • None

    Description

      The change on HIVE-9325 that modified the isSubDir() method is checking that the source path is part of the source path? This always returns true and many tests are failing.

      The method should check if source path is part of destination path.
      This is the line that is failing:
      + String fullF1 = getQualifiedPathWithoutSchemeAndAuthority(srcf, fs);
      + String fullF2 = getQualifiedPathWithoutSchemeAndAuthority(srcf, fs);

      It should be:
      + String fullF1 = getQualifiedPathWithoutSchemeAndAuthority(srcf, fs);
      + String fullF2 = getQualifiedPathWithoutSchemeAndAuthority(destf, fs);

      Attachments

        1. HIVE-9325.1.patch
          2 kB
          Sergio Peña

        Activity

          People

            spena Sergio Peña
            spena Sergio Peña
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: