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

Metastore is caching too aggressively

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None
    • None

    Description

      The metastore is caching values, like table names and locations too aggressively, leading to inconsistencies across Hive clients and metastore Thrift servers.

      For example, open two Hive clients, in each call
      DESCRIBE FORMATTED table_foo;

      Then in one of those clients, execute
      ALTER TABLE table_foo RENAME TO table_bar;

      Then in both clients call
      DESCRIBE FORMATTED table_bar;

      In the client that executed the alter command, the location is correct, however, in the other Hive client, it will still show the original location of table_foo.

      A similar experiment can be done using metastore Thrift servers, substituting get_table for DESCRIBE FORMATTED and alter_table for ALTER TABLE ... RENAME TO.

      On the Thrift server you can see that the one which did not execute the alter command, not only returns the wrong location, despite calling get_table('table_bar') it will return a table that still has the name table_foo.

      Attachments

        Issue Links

          Activity

            People

              kevinwilfong Kevin Wilfong
              kevinwilfong Kevin Wilfong
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: