Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2926

ZipSink: Very Large Entities Cause Out Of Memory Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2, 0.8.3, trunk
    • 0.8.3, 1.2.0, 2.0.0
    • atlas-core
    • None

    Description

      Steps to Duplicate

      1. Setup Atlas with very large data. Atlas one entity should be about 300 MB in size.
      2. Perform export with parameters that will include the large entity.

      Following error will be encountered:

      java.lang.OutOfMemoryError: Requested array size exceeds VM limit     at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300)     at java.lang.StringCoding.encode(StringCoding.java:344)     at java.lang.StringCoding.encode(StringCoding.java:387)     at java.lang.String.getBytes(String.java:958)     at org.apache.atlas.repository.impexp.ZipSink.addToZipStream(ZipSink.java:106)     at org.apache.atlas.repository.impexp.ZipSink.saveToZip(ZipSink.java:95)     at org.apache.atlas.repository.impexp.ZipSink.add(ZipSink.java:55)     at org.apache.atlas.repository.impexp.ExportService.addEntity(ExportService.java:467)
      

      Additional Information

      During conversion of entity string to bytes, a known JDK error is encountered.

       

      Attachments

        1. ATLAS-2926-ZipSink-OOM.patch
          5 kB
          Ashutosh Mestry

        Activity

          People

            amestry Ashutosh Mestry
            amestry Ashutosh Mestry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: