You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2014/12/05 20:27:13 UTC

[jira] [Commented] (BOOKKEEPER-805) NullPointException in bookie server when using twitter-ostrich-provider

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

Hadoop QA commented on BOOKKEEPER-805:
--------------------------------------

Testing JIRA BOOKKEEPER-805


Patch [BOOKKEEPER-805.patch|https://issues.apache.org/jira/secure/attachment/12684341/BOOKKEEPER-805.patch] downloaded at Fri Dec  5 18:51:52 UTC 2014

----------------------------

{color:green}+1 PATCH_APPLIES{color}
{color:green}+1 CLEAN{color}
{color:red}-1 RAW_PATCH_ANALYSIS{color}
.    {color:green}+1{color} the patch does not introduce any @author tags
.    {color:green}+1{color} the patch does not introduce any tabs
.    {color:green}+1{color} the patch does not introduce any trailing spaces
.    {color:green}+1{color} the patch does not introduce any line longer than 120
.    {color:red}-1{color} the patch does not add/modify any testcase
{color:green}+1 RAT{color}
.    {color:green}+1{color} the patch does not seem to introduce new RAT warnings
.    {color:red}WARNING: the current HEAD has 1 RAT warning(s), they should be addressed ASAP{color}
{color:green}+1 JAVADOC{color}
.    {color:green}+1{color} the patch does not seem to introduce new Javadoc warnings
{color:green}+1 COMPILE{color}
.    {color:green}+1{color} HEAD compiles
.    {color:green}+1{color} patch compiles
.    {color:green}+1{color} the patch does not seem to introduce new javac warnings
{color:green}+1 FINDBUGS{color}
.    {color:green}+1{color} the patch does not seem to introduce new Findbugs warnings
{color:green}+1 TESTS{color}
.    Tests run: 933
{color:green}+1 DISTRO{color}
.    {color:green}+1{color} distro tarball builds with the patch 

----------------------------
{color:red}*-1 Overall result, please check the reported -1(s)*{color}

{color:red}.   There is at least one warning, please check{color}

The full output of the test-patch run is available at

.   https://builds.apache.org/job/bookkeeper-trunk-precommit-build/867/

> NullPointException in bookie server when using twitter-ostrich-provider
> -----------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-805
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-805
>             Project: Bookkeeper
>          Issue Type: Bug
>    Affects Versions: 4.3.0
>            Reporter: Youngjoon Kim
>            Assignee: Youngjoon Kim
>             Fix For: 4.4.0, 4.3.1
>
>         Attachments: BOOKKEEPER-805.patch, BOOKKEEPER-805.patch
>
>
> How to reproduce this bug
> 1) Set configurations in conf/bk_server.conf to use twitter-ostrich-provider.
> {noformat}
> statsProviderClass=org.apache.bookkeeper.stats.twitter.ostrich.OstrichProvider
> statsExport=true
> {noformat}
> 2) Copy twitter-ostrich-provider-4.3.0.jar and required library jars to lib directory.
> {noformat}
> (library jars)
> ostrich_2.9.2-9.1.3.jar
> scala-json_2.9.2-3.0.1.jar
> scala-library-2.9.2.jar
> util-app_2.9.2-6.3.7.jar
> util-core_2.9.2-6.3.7.jar
> util-eval_2.9.2-6.3.7.jar
> util-jvm_2.9.2-6.3.7.jar
> util-logging_2.9.2-6.3.7.jar
> {noformat}
> 3) Start a bookie server. Then, the server doesn't start and server log shows NullPointException.
> {noformat}
> 2014-11-25 17:30:27,796 - ERROR [main:BookieServer@396] - Exception running bookie server :
> java.lang.NullPointerException
>     at com.twitter.ostrich.stats.StatsListener.<init>(StatsListener.scala:90)
>     at com.twitter.ostrich.stats.LatchedStatsListener.<init>(StatsListener.scala:144)
>     at com.twitter.ostrich.stats.StatsListener$$anonfun$apply$4.apply(StatsListener.scala:68)
>     at com.twitter.ostrich.stats.StatsListener$$anonfun$apply$4.apply(StatsListener.scala:68)
>     at com.twitter.ostrich.stats.StatsListener$$anonfun$getOrRegister$1.apply(StatsListener.scala:40)
>     at com.twitter.ostrich.stats.StatsListener$$anonfun$getOrRegister$1.apply(StatsListener.scala:39)
>     at scala.Option.getOrElse(Option.scala:108)
>     at com.twitter.ostrich.stats.StatsListener$.getOrRegister(StatsListener.scala:39)
>     at com.twitter.ostrich.stats.StatsListener$.apply(StatsListener.scala:67)
>     at com.twitter.ostrich.admin.AdminServiceFactory$$anonfun$configureStatsListeners$1.apply(AdminServiceFactory.scala:81)
>     at com.twitter.ostrich.admin.AdminServiceFactory$$anonfun$configureStatsListeners$1.apply(AdminServiceFactory.scala:81)
>     at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
>     at scala.collection.immutable.List.foreach(List.scala:76)
>     at com.twitter.ostrich.admin.AdminServiceFactory.configureStatsListeners(AdminServiceFactory.scala:81)
>     at com.twitter.ostrich.admin.AdminServiceFactory.apply(AdminServiceFactory.scala:61)
>     at org.apache.bookkeeper.stats.twitter.ostrich.OstrichProvider.start(OstrichProvider.java:57)
>     at org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:375)
> {noformat}



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