You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Mujtaba Chohan (JIRA)" <ji...@apache.org> on 2015/04/03 20:18:54 UTC
[jira] [Resolved] (PHOENIX-1802) Intermittent compilation failure
for SAMPLER_FRACTION_CONF_KEY has private access in
org.apache.htrace.impl.ProbabilitySampler
[ https://issues.apache.org/jira/browse/PHOENIX-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mujtaba Chohan resolved PHOENIX-1802.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.0
> 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)