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

Atlas Client Support for Export & Import APIs: Change Signature to Support Streams

    XMLWordPrintableJSON

Details

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

    Description

      Background

      Existing implementation of AtlasClient.exportData and AtlasClient.importData converts the stream returned by the REST APIs to byte array and then passes it on to the caller. 

      In case of importData with absolute file path, it converts it to byte array and then writes the bytes to the file.

      This is inefficient from memory perspective and may cause problems on client-side if the data is large.

      Solution

      • The APIs should return streams.
      • The API that writes file, should implement a version that works with streams.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: