Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20476

CopyUtils used by REPL LOAD and EXPORT/IMPORT operations ignore distcp error.

    XMLWordPrintableJSON

    Details

      Description

      CopyUtils uses FileUtils.distCp to copy files but doesn't check the return value. It returns false if the copy fails.
      Now, REPL LOAD and EXPORT/IMPORT commands internally uses CopyUtils to copy data files across clusters and here it may return success even if file copy fails and may cause data loss.

      Need to throw error and retry.

        Attachments

        1. HIVE-20476.01.patch
          7 kB
          Sankar Hariappan

          Issue Links

            Activity

              People

              • Assignee:
                sankarh Sankar Hariappan
                Reporter:
                sankarh Sankar Hariappan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: