ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-1494) putAll after put doesn't update values
Date Tue, 15 Sep 2015 20:20:46 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Kozlov updated IGNITE-1494:
----------------------------------
    Attachment: CacheEvictExample.java
                example-evict.xml

> putAll after put doesn't update values
> --------------------------------------
>
>                 Key: IGNITE-1494
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1494
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: ignite-1.4
>            Reporter: Sergey Kozlov
>            Assignee: Yakov Zhdanov
>            Priority: Critical
>             Fix For: ignite-1.4
>
>         Attachments: CacheEvictExample.java, example-evict.xml
>
>
> 1. Copy example-evict.xml in examples/config directory
> 2. Copy CacheEvictExample in org.apache.ignite.examples.datagrid package
> 3. Start node bin/ignite.sh examples/config/example-evict.xml
> 4. Build and run CacheEvictExample (it makes 100 single key-value puts and then putAll
with 100 keys/values)
> 5. The output if following:
> {noformat}
> C:\Java\jdk1.8.0_31\bin\java -Didea.launcher.port=7544 "-Didea.launcher.bin.path=C:\Program
Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.4\bin" -Dfile.encoding=UTF-8 -classpath
"C:\Java\jdk1.8.0_31\jre\lib\charsets.jar;C:\Java\jdk1.8.0_31\jre\lib\deploy.jar;C:\Java\jdk1.8.0_31\jre\lib\javaws.jar;C:\Java\jdk1.8.0_31\jre\lib\jce.jar;C:\Java\jdk1.8.0_31\jre\lib\jfr.jar;C:\Java\jdk1.8.0_31\jre\lib\jfxswt.jar;C:\Java\jdk1.8.0_31\jre\lib\jsse.jar;C:\Java\jdk1.8.0_31\jre\lib\management-agent.jar;C:\Java\jdk1.8.0_31\jre\lib\plugin.jar;C:\Java\jdk1.8.0_31\jre\lib\resources.jar;C:\Java\jdk1.8.0_31\jre\lib\rt.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\access-bridge-64.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\cldrdata.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\dnsns.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\jaccess.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\jfxrt.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\localedata.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\nashorn.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\sunec.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\sunjce_provider.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\sunmscapi.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\sunpkcs11.jar;C:\Java\jdk1.8.0_31\jre\lib\ext\zipfs.jar;D:\1.4.0\gridgain-community-fabric-1.4.0-QASVK150901\examples\target\classes;D:\.m2\repository\javax\cache\cache-api\1.0.0\cache-api-1.0.0.jar;D:\.m2\repository\org\apache\ignite\ignite-core\1.4.0-QASVK150901\ignite-core-1.4.0-QASVK150901.jar;D:\.m2\repository\org\gridgain\ignite-shmem\1.0.0\ignite-shmem-1.0.0.jar;D:\.m2\repository\org\apache\ignite\ignite-hibernate\1.4.0-QASVK150901\ignite-hibernate-1.4.0-QASVK150901.jar;D:\.m2\repository\org\hibernate\hibernate-core\4.2.6.Final\hibernate-core-4.2.6.Final.jar;D:\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\.m2\repository\org\jboss\logging\jboss-logging\3.1.0.GA\jboss-logging-3.1.0.GA.jar;D:\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;D:\.m2\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.1_spec\1.0.1.Final\jboss-transaction-api_1.1_spec-1.0.1.Final.jar;D:\.m2\repository\org\hibernate\javax\persistence\hibernate-jpa-2.0-api\1.0.1.Final\hibernate-jpa-2.0-api-1.0.1.Final.jar;D:\.m2\repository\org\hibernate\common\hibernate-commons-annotations\4.0.2.Final\hibernate-commons-annotations-4.0.2.Final.jar;D:\.m2\repository\org\javassist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;D:\.m2\repository\org\apache\ignite\ignite-spring\1.4.0-QASVK150901\ignite-spring-1.4.0-QASVK150901.jar;D:\.m2\repository\org\springframework\spring-core\4.1.0.RELEASE\spring-core-4.1.0.RELEASE.jar;D:\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\.m2\repository\org\springframework\spring-aop\4.1.0.RELEASE\spring-aop-4.1.0.RELEASE.jar;D:\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\.m2\repository\org\springframework\spring-beans\4.1.0.RELEASE\spring-beans-4.1.0.RELEASE.jar;D:\.m2\repository\org\springframework\spring-context\4.1.0.RELEASE\spring-context-4.1.0.RELEASE.jar;D:\.m2\repository\org\springframework\spring-expression\4.1.0.RELEASE\spring-expression-4.1.0.RELEASE.jar;D:\.m2\repository\org\springframework\spring-tx\4.1.0.RELEASE\spring-tx-4.1.0.RELEASE.jar;D:\.m2\repository\org\springframework\spring-jdbc\4.1.0.RELEASE\spring-jdbc-4.1.0.RELEASE.jar;D:\.m2\repository\org\apache\ignite\ignite-log4j\1.4.0-QASVK150901\ignite-log4j-1.4.0-QASVK150901.jar;D:\.m2\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\.m2\repository\org\apache\ignite\ignite-indexing\1.4.0-QASVK150901\ignite-indexing-1.4.0-QASVK150901.jar;D:\.m2\repository\commons-codec\commons-codec\1.6\commons-codec-1.6.jar;D:\.m2\repository\org\apache\lucene\lucene-core\3.5.0\lucene-core-3.5.0.jar;D:\.m2\repository\com\h2database\h2\1.3.175\h2-1.3.175.jar;D:\.m2\repository\org\apache\ignite\ignite-schedule\1.4.0-QASVK150901\ignite-schedule-1.4.0-QASVK150901.jar;D:\.m2\repository\it\sauronsoftware\cron4j\cron4j\2.2.5\cron4j-2.2.5.jar;D:\.m2\repository\com\google\code\simple-spring-memcached\spymemcached\2.7.3\spymemcached-2.7.3.jar;D:\.m2\repository\org\jboss\netty\netty\3.2.0.Final\netty-3.2.0.Final.jar;D:\.m2\repository\org\codehaus\jettison\jettison\1.1\jettison-1.1.jar;D:\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;C:\Program
Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain
org.apache.ignite.examples.datagrid.CacheEvictExample
> [23:13:17]    __________  ________________ 
> [23:13:17]   /  _/ ___/ |/ /  _/_  __/ __/ 
> [23:13:17]  _/ // (7 7    // /  / / / _/   
> [23:13:17] /___/\___/_/|_/___/ /_/ /___/  
> [23:13:17] 
> [23:13:17] ver. 1.4.0-QASVK150901#20150915-sha1:3e762e25
> [23:13:17] 2015 Copyright(C) Apache Software Foundation
> [23:13:17] 
> [23:13:17] Ignite documentation: http://ignite.apache.org
> [23:13:17] 
> [23:13:17] Quiet mode.
> [23:13:17]   ^-- Logging to file 'D:\1.4.0\gridgain-community-fabric-1.4.0-QASVK150901\work\log\ignite-00c70137.log'
> [23:13:17]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to
ignite.{sh|bat}
> [23:13:17] 
> [23:13:17] Initial heap size is 256MB (should be no less than 512MB, use -Xms512m -Xmx512m).
> [23:13:18] Configured plugins:
> [23:13:18]   ^-- None
> [23:13:18] 
> [23:13:19] Security status [authentication=off, communication encryption=off]
> [23:13:26] Performance suggestions for grid  (fix if possible)
> [23:13:26] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
> [23:13:26]   ^-- Disable peer class loading (set 'peerClassLoadingEnabled' to false)
> [23:13:26]   ^-- Disable grid events (remove 'includeEventTypes' from configuration)
> [23:13:26]   ^-- Disable eviction policy (remove from configuration)
> [23:13:26]   ^-- Decrease number of backups (set 'keyBackups' to 0)
> [23:13:26]   ^-- Enable ATOMIC mode if not using transactions (set 'atomicityMode' to
ATOMIC)
> [23:13:26]   ^-- Disable swap store (set 'swapEnabled' to false)
> [23:13:26] 
> [23:13:26] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
> [23:13:26] 
> [23:13:26] Ignite node started OK (id=00c70137)
> [23:13:26] Topology snapshot [ver=4, servers=2, clients=0, CPUs=4, heap=4.5GB]
> Got [key=0, val=put0]
> Got [key=1, val=put1]
> Got [key=2, val=put2]
> ...
> Got [key=97, val=put97]
> Got [key=98, val=put98]
> Got [key=99, val=put99]
> Got entry [key=0, val=putAll 0]
> Got entry [key=1, val=put1]
> Got entry [key=2, val=putAll 2]
> Got entry [key=3, val=put3]
> Got entry [key=4, val=putAll 4]
> Got entry [key=5, val=putAll 5]
> Got entry [key=6, val=put6]
> Got entry [key=7, val=putAll 7]
> Got entry [key=8, val=putAll 8]
> Got entry [key=9, val=putAll 9]
> Got entry [key=10, val=put10]
> Got entry [key=11, val=put11]
> Got entry [key=12, val=put12]
> Got entry [key=13, val=putAll 13]
> ...
> Got entry [key=93, val=put93]
> Got entry [key=94, val=put94]
> Got entry [key=95, val=put95]
> Got entry [key=96, val=putAll 96]
> Got entry [key=97, val=putAll 97]
> Got entry [key=98, val=put98]
> Got entry [key=99, val=put99]
> [23:13:27] Ignite node stopped OK [uptime=00:00:00:482]
> Process finished with exit code 0
> {noformat}
> Why some keys still have old values and weren't overwritten?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message