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

Improve error detection and reporting in MetastoreCacheInitializer.java

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: