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

Implement a self-releasing FileLock for multiple writers scenario

    XMLWordPrintableJSON

Details

    Description

      when using HiveMetastoreBasedLockProvider or ZookeeperBasedLockProvider, if the writer with locker crash before releasing the locker,  no writers can obtain the locker anymore, hence can not cleaning/expiring the lock after a failed write.

      Instead of those lockers depending on external components, FIleBaseLocker only relies on FileSystem's atomic file creation behavior.  an instant will be written to the file, so it will clean the lock when failing writer rollback. also can set expire strategy on it.

       

      Attachments

        Activity

          People

            fengjian_428 Jian Feng
            fengjian_428 Jian Feng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: