You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/09/14 23:13:46 UTC

[jira] [Commented] (TAJO-1848) ShutdownHook in TajoMaster can throw NPE if serviceInit() is failed.

    [ https://issues.apache.org/jira/browse/TAJO-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14744272#comment-14744272 ] 

ASF GitHub Bot commented on TAJO-1848:
--------------------------------------

GitHub user hyunsik opened a pull request:

    https://github.com/apache/tajo/pull/759

    TAJO-1848: ShutdownHook in TajoMaster can throw NPE if serviceInit() …

    …is failed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hyunsik/tajo TAJO-1848

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/759.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #759
    
----
commit 59fe6784187a5940622c52f537844f235d1c5b61
Author: Hyunsik Choi <hy...@apache.org>
Date:   2015-09-14T21:12:32Z

    TAJO-1848: ShutdownHook in TajoMaster can throw NPE if serviceInit() is failed.

----


> ShutdownHook in TajoMaster can throw NPE if serviceInit() is failed.
> --------------------------------------------------------------------
>
>                 Key: TAJO-1848
>                 URL: https://issues.apache.org/jira/browse/TAJO-1848
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>            Priority: Minor
>             Fix For: 0.11.0
>
>
> If serviceInit() is failed, ShutdownHook in TajoMaster can throw NPE.
> {noformat}
> // If embedded derby is used as catalog, shutdown it.
>         if (catalogServer.getStoreClassName().equals("org.apache.tajo.catalog.store.DerbyStore")
>             && AbstractDBStore.needShutdown(catalogServer.getStoreUri())) {
>           DerbyStore.shutdown();
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)