Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-6123

Auto adjust lock configs only for single writer

    XMLWordPrintableJSON

Details

    Description

      This is a follow-up fix for #8111.

      Currently, the hoodie.auto.adjust.lock.configs opiton is by default false for batch mode ingestion,
      and true for spark streaming sink and delta_streamer, while MDT is by default enabled.

      For multiple streaming writers with no explicit lock provider set up, InProcessLockProvider should not be used.

      Change list:

      1. Restrict the option hoodie.auto.adjust.lock.configs to take effect in single writer scope, because for multi-writer, the
        InProcessLockProvider can not work as expected among hosts/processes;
      2. The LockManager #lock and #unlock are invoked from the TransactionManager
        which already does the checks for the requirement of an explicit lock, remove the redundant check in LockManager.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danny0405 Danny Chen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: