Uploaded image for project: 'Sqoop (READ-ONLY)'
  1. Sqoop (READ-ONLY)
  2. SQOOP-128

Allow customized ExportRecordWriters the opportunity to exceute code after the last commit is performed and before the database connection is closed.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: export
    • Labels:
      None

      Description

      Custom ExportRecordWriters currently have no way of executing code after the last commit is performed and before the connection is closed.
      The close() method that is available is not suitable, as it is called prior to the last batch of rows are inserted into the database. Attempting to execute code after the close() method executes is not viable, as the database connection is unavailable at this point.

      The motivation for this change is prompted by the need to perform database operations after all the data has been inserted into the export table. For example, to drop temporary database tables etc.

        Attachments

          Activity

            People

            • Assignee:
              guylemar Guy le Mar
              Reporter:
              guylemar Guy le Mar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: