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

Fix pending instants determination for MDT compaction

    XMLWordPrintableJSON

Details

    Description

      Currently the logic to deduce pending instants in MDT is as below

      • a = we get latest completed delta commit from MDT.
      • Find any inflights in DT timeline before {a}

      and if we don't find any such inflights, we will go ahead and may be compact MDT.

      But what incase the latest delta commit in MDT succeeded in MDT, but failed in DT. so, it could potentially result in triggering compaction in MDT which should not happen. 

       

      So, the right fix is 

      • a = we get latest completed delta commit from MDT.
      • Find any inflights in DT timeline before or equals to {a}

      This should take care of not triggering compaction in MDT when here are inflights in DT which is committed to MDT. 

       

      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: