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

Deadlock w/ multi writer due to double locking

    XMLWordPrintableJSON

Details

    Description

      With synchronous metadata patch, we added locking for cleaning and rollbacks. but there are code paths, where we do double locking and hence it hangs or fails after sometime.

       

      inline cleaning enabled.

       

      C1 acquires lock. 

          post commit -> triggers cleaning. 

                            cleaning again tries to acquire lock when about to commit and this is problematic.

       

      Also, when upgrade is needed, we take a lock and rollback failed writes. this again will run into issues w/ double locking. 

       

       

                            

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              shivnarayan sivabalan narayanan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified