Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-2564

Improve management of dataset resources

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Datasets
    • Labels:
      None
    • Rank:
      1|hzytsf:

      Description

      Today, RemoteDatasetFramework uses a DatasetTypeClassLoaderFactory in order to create a classloader to create dataset instances. This factory will unpack the dataset jar in a local directory, then create a DirectoryClassLoader over that directory. The problem is that this happens every time a dataset or datasetType is instantiated, and the unpacked directories never get cleaned up.

      In order to properly clean up, we will need to do some refactoring to make the right classes closeable and close them properly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ashau Albert Shau
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: