Evgenii Zhuravlev created IGNITE-11831:
------------------------------------------

             Summary: Eviction doesn't work properly for data region with big 
objects of different sizes
                 Key: IGNITE-11831
                 URL: https://issues.apache.org/jira/browse/IGNITE-11831
             Project: Ignite
          Issue Type: Bug
            Reporter: Evgenii Zhuravlev


Reproducer:
{code:java}
public class ExampleNodeStartup {
    /**
     * Start up an empty node with example compute configuration.
     *
     * @param args Command line arguments, none required.
     * @throws IgniteException If failed.
     */
    public static void main(String[] args) throws IgniteException {
        Ignite ignite = Ignition.start("examples/config/example-ignite.xml");

        IgniteCache<String, Object> keywordCache = 
ignite.getOrCreateCache("keyword");
        for(int i=0;i<10000000;i++){
            int mega = new Random().nextInt(3) + 1;
            keywordCache.put(UUID.randomUUID().toString(), new byte[mega * 1024 
* 1024]);
            System.out.println("current:"+i);
        }
    }
}
{code}


data region configuration:
{code:java}
        <property name="dataStorageConfiguration">
            <bean 
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="defaultDataRegionConfiguration">
                    <bean 
class="org.apache.ignite.configuration.DataRegionConfiguration">
                        <property name="name" value="keywordRegion"/>
                        <property name="maxSize" value="#{1024L * 1024 * 1024 * 
8}"/>
                        <property name="pageEvictionMode" value="RANDOM_2_LRU"/>
                        <property name="persistenceEnabled" value="false"/>
                    </bean>
                </property>
            </bean>
        </property>
{code}



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

Reply via email to