phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-5231) Configurable Stats Cache
Date Thu, 30 May 2019 05:57:00 GMT

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

Lars Hofhansl commented on PHOENIX-5231:
----------------------------------------

I hate to say it. But there's still a different problem. I built everything from scratch and
now in Presto (which uses the embedded client) I see this when I try to connect to Phoenix:
{code:java}
org.apache.phoenix.shaded.com.google.common.util.concurrent.UncheckedExecutionException: org.apache.phoenix.exception.PhoenixNonRetryableRuntimeException:
java.lang.ClassNotFoundException: org.apache.phoenix.query.DefaultGuidePostsCacheFactory
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2258)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache.get(LocalCache.java:3990)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4793)
...
...
Caused by: org.apache.phoenix.exception.PhoenixNonRetryableRuntimeException: java.lang.ClassNotFoundException:
org.apache.phoenix.query.DefaultGuidePostsCacheFactory
	at org.apache.phoenix.query.GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(GuidePostsCacheProvider.java:61)
	at org.apache.phoenix.query.GuidePostsCacheProvider.getGuidePostsCache(GuidePostsCacheProvider.java:73)
	at org.apache.phoenix.query.ConnectionQueryServicesImpl.<init>(ConnectionQueryServicesImpl.java:425)
	at org.apache.phoenix.jdbc.PhoenixDriver$3.call(PhoenixDriver.java:248)
	at org.apache.phoenix.jdbc.PhoenixDriver$3.call(PhoenixDriver.java:241)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4796)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
	at org.apache.phoenix.shaded.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
	... 40 more
Caused by: java.lang.ClassNotFoundException: org.apache.phoenix.query.DefaultGuidePostsCacheFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.phoenix.query.GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(GuidePostsCacheProvider.java:36)
	... 49 more{code}
[~vincentpoon]

> Configurable Stats Cache
> ------------------------
>
>                 Key: PHOENIX-5231
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5231
>             Project: Phoenix
>          Issue Type: Test
>            Reporter: Daniel Wong
>            Assignee: Daniel Wong
>            Priority: Major
>             Fix For: 4.15.0, 5.1.0
>
>         Attachments: 5231-quickfix-v2.txt, 5231-quickfix.txt, 5231-services-fix.patch,
PHOENIX-5231.4.x-HBase-1.3.patch, PHOENIX-5231.4.x-HBase-1.3.v2.patch, PHOENIX-5231.4.x-HBase-1.3.v3.patch,
PHOENIX-5231.master.v3.patch, PHOENIX-5231.master.v4.patch
>
>          Time Spent: 8h 40m
>  Remaining Estimate: 0h
>
> Currently, the phoenix stats cache is per ConnectionQuerySerivce/ConnectionProfile, which
leads to duplicated cached entry (the guideposts) and waste resources if these separate connections
are querying the same underlying table. It would be good to be able to provide a configurable
stats cache as control the cache level so it could be per JVM.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message