Hi Bruno,
At test time, this is intentional. You're right, though, we shouldn't do
this if we're not testing - I filed PHOENIX-862 for this. Keep in mind that
short-lived clients are very expensive in Phoenix and HBase in-general.
There's a substantial cost with establishing the underlying HConnection
between the client and server (~3 seconds). I'd avoid bring the JVM up and
down to avoid this cost and let Phoenix  cache the HConnection. In other
words, don't do a ConnectionQueryServices.close() yourself, as this will be
done automatically when the JVM exits.
Thanks,
James


On Mon, Mar 17, 2014 at 6:24 AM, Bruno Dumon <[email protected]> wrote:

> Hi,
>
> Something I recently noticed and wondered about: when closing the
> PhoenixDriver, it closes the ConnectionQueryServices, which in turn will
> clear the meta data caches on all the region servers. Is this intentional?
> I find it surprising that a client disconnect would lead the server to
> clear meta data caches, I imagine this might be a problem when having lots
> of short running clients.
>
> Bruno.
>

Reply via email to