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

Instance API should state when returning null is expected.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 1.7.1, 1.7.2, 1.8.0
    • Fix Version/s: None
    • Component/s: client
    • Labels:
      None

      Description

      This is an issue at least in 1.6.0+. Ran into during ACCUMULO-4556.

      In that case the TablesServlet is making use of Instance to get root tablet location information via the Instance interface. The API for getRootTablet in master is:

        /**
         * Returns the location of the tablet server that is serving the root tablet.
         *
         * @return location in "hostname:port" form
         */
        String getRootTabletLocation();
      

      When the root tablet is offline, all of our current implementations return null. The data structure used in TablesServlet can't handle nulls, so the code fails with an NPE.

      We should review the current implementations for Instance and update the API to include details on the circumstances where a null will be returned from all of the defined methods.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              busbey Sean Busbey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: