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

Enis Soztutar commented on PHOENIX-1802:
----------------------------------------

Sorry my mess. For the trace test to succeed, we have made it so that we are 
depending on hbase-1.0.1-SNAPSHOT which causes this if an old version of 
1.0.1-SNAPSHOT is in the local repo. {{mvn -U}} or manually nuking the 
org/apache/hbase under .m2 should fix it. 

I had put up 1.0.1 for a vote. Once that is out, I'll fix PHOENIX-1757. 

> Intermittent compilation failure for SAMPLER_FRACTION_CONF_KEY has private 
> access in org.apache.htrace.impl.ProbabilitySampler
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-1802
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1802
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: Rajeshbabu Chintaguntla
>             Fix For: 5.0.0
>
>
> We've been seeing the following sometimes when we compile:
> [INFO] -------------------------------------------------------------
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] 
> /home/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-core/src/main/java/org/apache/phoenix/trace/util/Tracing.java:[119,49]
>  SAMPLER_FRACTION_CONF_KEY has private access in 
> org.apache.htrace.impl.ProbabilitySampler
> [ERROR] 
> /home/jenkins/jenkins-slave/workspace/Phoenix-master/phoenix-core/src/main/java/org/apache/phoenix/trace/util/Tracing.java:[143,39]
>  SAMPLER_FRACTION_CONF_KEY has private access in 
> org.apache.htrace.impl.ProbabilitySampler
> It's a strange one, as that static constant is public:
> {code}
> public class ProbabilitySampler implements Sampler<Object> {
>   public final double threshold;
>   private Random random = new Random();
>   public final static String SAMPLER_FRACTION_CONF_KEY = "sampler.fraction";
>   public ProbabilitySampler(HTraceConfiguration conf) {
>     this.threshold = Double.parseDouble(conf.get(SAMPLER_FRACTION_CONF_KEY));
>   }
>   @Override
>   public boolean next(Object info) {
>     return random.nextDouble() < threshold;
>   }
> }
> {code}
> Maybe it's a pom issue - we've got a dependency back to the cloudera version 
> of htrace somewhere? It'd be good to get to the bottom of it.
> Can you take a look, [~rajeshbabu]? Any ideas of the top of your head, 
> [~mujtabachohan] or [~enis]?



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

Reply via email to