Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[query-cache] Client side query cache xml configuration no supporting * in query-cache mapName="*" #9990

Closed
Danny-Hazelcast opened this issue Feb 28, 2017 · 1 comment · Fixed by #11109
Assignees
Labels
Milestone

Comments

@Danny-Hazelcast
Copy link
Member

version 3.8

Client size xml config

<query-caches>
        <query-cache mapName="queryCacheMapBak1HD*"  name="queryCacheMapBak1HD_query-cache">
            <in-memory-format>OBJECT</in-memory-format>
            <buffer-size>50</buffer-size>
            <batch-size>5</batch-size>
            <delay-seconds>0</delay-seconds>
            <coalesce>true</coalesce>
            <include-value>true</include-value>
            <populate>true</populate>
            <predicate type="class-name">hzcmd.map.cqc.PersonIdPredicate</predicate>
        </query-cache>
    </query-caches>

member size config

<map name="queryCacheMapBak1HD*">
        <backup-count>1</backup-count>
        <in-memory-format>NATIVE</in-memory-format>
        <eviction-policy>LRU</eviction-policy>
        <max-size policy="FREE_NATIVE_MEMORY_PERCENTAGE">15</max-size>
        <hot-restart enabled="false">
            <fsync>false</fsync>
        </hot-restart>

        <query-caches>
            <query-cache name="queryCacheMapBak1HD*">
                <in-memory-format>OBJECT</in-memory-format>
                <buffer-size>50</buffer-size>
                <batch-size>5</batch-size>
                <delay-seconds>0</delay-seconds>
                <coalesce>true</coalesce>
                <include-value>true</include-value>
                <populate>true</populate>
                <predicate type="class-name">hzcmd.map.cqc.PersonIdPredicate</predicate>
            </query-cache>
        </query-caches>
    </map>

member size is ok, but on the client size

queryCache = map.getQueryCache(name);

returns null.

as

  • is not support for mapName on the client side. but it is support on the member size
@sancar
Copy link
Contributor

sancar commented Aug 3, 2017

It seems like both server and client does not work when * is used in query cache name as regex.

Server does support * in map name as regex. Client does not support * in map name as regex.

@mmedenjak mmedenjak changed the title Client side query cache xml configuration no supporting * in query-cache mapName="*" [query-cache] Client side query cache xml configuration no supporting * in query-cache mapName="*" Aug 3, 2017
ihsandemir added a commit to ihsandemir/hazelcast that referenced this issue Aug 15, 2017
ihsandemir added a commit that referenced this issue Aug 17, 2017
…ork as expected (#11109)

* Fixes the wildcard usage for query cache configuration at the client config. Adds two methods to ClientConfig.

fixes #9990

* Added wildcard usage in xml config tests for both client and server. Implemented some more fixes at the server side for pattern matching.

* Added the new config class ClientClasspathXmlConfig and used this in the test.
@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants