Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6842

the jar used in coprocessor is not deleted in local which will exhaust the space of /tmp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.94.1
    • 0.94.2
    • Coprocessors
    • None
    • Reviewed

    Description

      FileSystem fs = path.getFileSystem(HBaseConfiguration.create());
      Path dst = new Path(System.getProperty("java.io.tmpdir") +
      java.io.File.separator +"." + pathPrefix +
      "." + className + "." + System.currentTimeMillis() + ".jar");
      fs.copyToLocalFile(path, dst);
      fs.deleteOnExit(dst);

      change to

      File tmpLocal = new File(dst.toString());
      tmpLocal.deleteOnExit();

      Attachments

        1. HBASE-6842-trunk.patch
          0.8 kB
          Zhou wenjian

        Issue Links

          Activity

            People

              zhou wen jian Zhou wenjian
              zhou wen jian Zhou wenjian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: