Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4577

Getting namespaceId using tableId when table deleted throws wrong expection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.2, 1.8.0
    • 1.7.3, 1.8.1, 2.0.0
    • None
    • None

    Description

      While working on ACCUMULO-4575 I noticed that Tables.getNamespaceId(String tableId) has odd behavior. When the table is not found, it throws an illegal argument exception. In many cases what should happen in this case is that a ThriftTableNotFound exception should be thrown. Doing this will cause clients to get a clean TableNotFound exception instead of an internal server error message.

      One possible solution is to make this method throw TableNotFoundException and also offer a new method that wraps, catches TableNotFoundException and throws ThriftTableNotFound.

      Attachments

        Issue Links

          Activity

            People

              milleruntime Michael Miller
              kturner Keith Turner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h