Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1564

Improve error detection and reporting in MetastoreCacheInitializer.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • None

    Description

      Turns out malformed HMS database is pretty common phenomenon and MetastoreCacheInitializer.java is not really helpful in figuring out what's wrong. The result is failure in initializing MetastorePlugin.

      Adding simple stuff, like testing for returned null objects as opposed to waiting till dereferencing them produces NullPointerException would go a long way in making life easier.

      Attachments

        1. SENTRY-1564.001.patch
          6 kB
          Vadim Spector

        Activity

          People

            vspector@gmail.com Vadim Spector
            vspector@gmail.com Vadim Spector
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: