Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21225

ACID: getAcidState() should cache a recursive dir listing locally

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • Transactions
    • None

    Description

      Currently getAcidState() makes 3 calls into the FS api which could be answered by making a single recursive listDir call and reusing the same data to check for isRawFormat() and isValidBase().

      All delta operations for a single partition can go against a single listed directory snapshot instead of interacting with the NameNode or ObjectStore within the inner loop.

      Attachments

        1. async-pid-44-2.svg
          619 kB
          Gopal Vijayaraghavan
        2. HIVE-21225.1.patch
          13 kB
          Vaibhav Gumashta
        3. HIVE-21225.10.patch
          47 kB
          Vaibhav Gumashta
        4. HIVE-21225.11.patch
          43 kB
          Vaibhav Gumashta
        5. HIVE-21225.12.patch
          76 kB
          Vaibhav Gumashta
        6. HIVE-21225.13.patch
          93 kB
          Vaibhav Gumashta
        7. HIVE-21225.14.patch
          75 kB
          Vaibhav Gumashta
        8. HIVE-21225.15.patch
          78 kB
          Vaibhav Gumashta
        9. HIVE-21225.15.patch
          76 kB
          Vaibhav Gumashta
        10. HIVE-21225.16.patch
          80 kB
          Vaibhav Gumashta
        11. HIVE-21225.17.patch
          79 kB
          Vaibhav Gumashta
        12. HIVE-21225.2.patch
          53 kB
          Vaibhav Gumashta
        13. HIVE-21225.3.patch
          14 kB
          Vaibhav Gumashta
        14. HIVE-21225.4.patch
          17 kB
          Vaibhav Gumashta
        15. HIVE-21225.4.patch
          17 kB
          Vaibhav Gumashta
        16. HIVE-21225.5.patch
          18 kB
          Vaibhav Gumashta
        17. HIVE-21225.6.patch
          18 kB
          Vineet Garg
        18. HIVE-21225.7.patch
          21 kB
          Vaibhav Gumashta
        19. HIVE-21225.7.patch
          21 kB
          Vaibhav Gumashta
        20. HIVE-21225.8.patch
          30 kB
          Vaibhav Gumashta
        21. HIVE-21225.9.patch
          30 kB
          Vineet Garg

        Issue Links

          Activity

            People

              vgumashta Vaibhav Gumashta
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: