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, 23 May 2019 18:42:00 GMT

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

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

Since this change I can no longer start sqlline:
{code}
Setting property: [incremental, false]
Setting property: [isolation, TRANSACTION_READ_COMMITTED]
issuing: !connect jdbc:phoenix:localhost none none org.apache.phoenix.jdbc.PhoenixDriver
Connecting to jdbc:phoenix:localhost
19/05/23 11:04:04 ERROR query.GuidePostsCacheProvider: Could not load/instantiate class org.apache.phoenix.query.DefaultGuidePostsCacheFactory
org.apache.phoenix.shaded.com.google.common.util.concurrent.UncheckedExecutionException: org.apache.phoenix.exception.PhoenixNonRetryableRuntimeException:
Could not load/instantiate class 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)
        at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:241)
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:147)
        at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:154)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:202)
        at sqlline.Commands.connect(Commands.java:1165)
        at sqlline.Commands.connect(Commands.java:1055)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:643)
        at sqlline.SqlLine.initArgs(SqlLine.java:385)
        at sqlline.SqlLine.begin(SqlLine.java:485)
        at sqlline.SqlLine.start(SqlLine.java:233)
        at sqlline.SqlLine.main(SqlLine.java:175)
Caused by: org.apache.phoenix.exception.PhoenixNonRetryableRuntimeException: Could not load/instantiate
class org.apache.phoenix.query.DefaultGuidePostsCacheFactory
        at org.apache.phoenix.query.GuidePostsCacheProvider.loadAndGetGuidePostsCacheFactory(GuidePostsCacheProvider.java:57)
        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)
        ... 19 more
sqlline version 1.5.0
{code}

> 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
>         Attachments: 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