Interface TransactionLogSynchronizer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isUnsafe()
      Whether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.
      void write​(ConnectorSession session, String clusterId, org.apache.hadoop.fs.Path newLogEntryPath, byte[] entryContents)
      Performs atomic write of transaction log entry file.
    • Method Detail

      • write

        void write​(ConnectorSession session,
                   String clusterId,
                   org.apache.hadoop.fs.Path newLogEntryPath,
                   byte[] entryContents)
        Performs atomic write of transaction log entry file.
        Throws:
        TransactionConflictException - If file cannot be written because of conflict with other transaction
        RuntimeException - If some other unexpected error occurs
      • isUnsafe

        boolean isUnsafe()
        Whether or not writes using this Synchronizer need to be enabled with the "delta.enable-non-concurrent-writes" config property.
        Returns:
        False if collision detection for writes from multiple clusters is supported, else true.