[
https://issues.apache.org/jira/browse/PHOENIX-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394827#comment-14394827
]
Mujtaba Chohan commented on PHOENIX-1802:
-----------------------------------------
Done. Now build will clean local htrace repo.
> 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
>
> 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)