accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ACCUMULO-4557) Instance API should state when returning null is expected.
Date Mon, 19 Mar 2018 18:27:01 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-4557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christopher Tubbs resolved ACCUMULO-4557.
-----------------------------------------
       Resolution: Not A Problem
    Fix Version/s:     (was: 1.7.4)
                       (was: 1.9.0)
                       (was: 2.0.0)

No response from the reporter. Closing as "Not A Problem" for now. Please create a new issue
or pull request at https://github.com/apache/accumulo/issues if the problem persists.

> Instance API should state when returning null is expected.
> ----------------------------------------------------------
>
>                 Key: ACCUMULO-4557
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4557
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.7.1, 1.7.2, 1.8.0
>            Reporter: Sean Busbey
>            Priority: Critical
>
> 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:
> {code}
>   /**
>    * Returns the location of the tablet server that is serving the root tablet.
>    *
>    * @return location in "hostname:port" form
>    */
>   String getRootTabletLocation();
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message