ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Suntsov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2128) Incorrect output in CacheClientBinaryQueryExample
Date Thu, 10 Dec 2015 15:06:11 GMT
Ilya Suntsov created IGNITE-2128:
------------------------------------

             Summary: Incorrect output in CacheClientBinaryQueryExample
                 Key: IGNITE-2128
                 URL: https://issues.apache.org/jira/browse/IGNITE-2128
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 1.5
         Environment: OS X 10.10.2
jdk 1.7
            Reporter: Ilya Suntsov
            Assignee: Yakov Zhdanov
            Priority: Critical
             Fix For: 1.5


Steps to reproduce:
1. Start 1 node in IDEA
2. Start org/apache/ignite/examples/binary/datagrid/CacheClientBinaryQueryExample.java
Result:
{noformat}
[17:41:30]    __________  ________________ 
[17:41:30]   /  _/ ___/ |/ /  _/_  __/ __/ 
[17:41:30]  _/ // (7 7    // /  / / / _/   
[17:41:30] /___/\___/_/|_/___/ /_/ /___/  
[17:41:30] 
[17:41:30] ver. 1.5.0-b2#20151210-sha1:d2008c53
[17:41:30] 2015 Copyright(C) Apache Software Foundation
[17:41:30] 
[17:41:30] Ignite documentation: http://ignite.apache.org
[17:41:30] 
[17:41:30] Quiet mode.
[17:41:30]   ^-- Logging to file '/Users/gridgain/Downloads/apache-ignite-fabric-1.5-2.0-b2-bin/work/log/ignite-c96bd940.log'
[17:41:30]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[17:41:30] 
[17:41:30] OS: Mac OS X 10.10.3 x86_64
[17:41:30] VM information: Java(TM) SE Runtime Environment 1.7.0_79-b15 Oracle Corporation
Java HotSpot(TM) 64-Bit Server VM 24.79-b02
[17:41:30] Initial heap size is 192MB (should be no less than 512MB, use -Xms512m -Xmx512m).
[17:41:30] Configured plugins:
[17:41:30]   ^-- None
[17:41:30] 
[17:41:30] Security status [authentication=off, tls/ssl=off]
[17:41:32] Attempting to start more nodes than physical RAM available on current host (this
can cause significant slowdown)
[17:41:33] Performance suggestions for grid  (fix if possible)
[17:41:33] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[17:41:33]   ^-- Disable peer class loading (set 'peerClassLoadingEnabled' to false)
[17:41:33]   ^-- Disable grid events (remove 'includeEventTypes' from configuration)
[17:41:33] 
[17:41:33] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[17:41:33] 
[17:41:33] Ignite node started OK (id=c96bd940)
[17:41:33] Topology snapshot [ver=7, servers=5, clients=0, CPUs=8, heap=13.0GB]

>>> Binary objects cache query example started.

>>> Employees with zip 94109:

>>> Employees working for GridGain:
>>>     Employee [idHash=1570448684, hash=1704762760, departments=BinaryObject [idHash=1957010358,
hash=-1143237694, typeId=179563853], addr=Address [idHash=613549454, hash=220889046, street=1096
Eddy Street, San Francisco, CA, zip=94109], name=James Wilson, salary=12500]
>>>     Employee [idHash=1856684131, hash=1443330375, departments=BinaryObject [idHash=205315160,
hash=1785031702, typeId=179563853], addr=Address [idHash=1873157038, hash=78336113, street=184
Fidler Drive, San Antonio, TX, zip=78130], name=Daniel Adams, salary=11000]
>>>     Employee [idHash=40072646, hash=1100837732, departments=BinaryObject [idHash=1338579811,
hash=290257426, typeId=179563853], addr=Address [idHash=472197505, hash=1208142819, street=667
Jerry Dove Drive, Florence, SC, zip=29501], name=Cristian Moss, salary=12500]

>>> Employee names and their salaries:
>>>     [Name=James Wilson, salary=12500]
>>>     [Name=Daniel Adams, salary=11000]
>>>     [Name=Cristian Moss, salary=12500]
>>>     [Name=Allison Mathis, salary=25300]
>>>     [Name=Breana Robbin, salary=6500]
>>>     [Name=Philip Horsley, salary=19800]
>>>     [Name=Brian Peters, salary=10600]

>>> Employees living in Texas:
{noformat}

as you can see in output no employees with zip code "94109" and no employees from Texas but
in code were created 2 employees with zip  "94109":
{noformat}
 employeeCache.put(new EmployeeKey(1, 1), new Employee(
            "James Wilson",
            12500,
            new Address("1096 Eddy Street, San Francisco, CA", 94109),
            Arrays.asList("Human Resources", "Customer Service")
        ));

employeeCache.put(new EmployeeKey(4, 2), new Employee(
            "Allison Mathis",
            25300,
            new Address("2702 Freedom Lane, San Francisco, CA", 94109),
            Arrays.asList("Development")
        ));
{noformat}
 and two employees from TX:
{noformat}
 employeeCache.put(new EmployeeKey(2, 1), new Employee(
            "Daniel Adams",
            11000,
            new Address("184 Fidler Drive, San Antonio, TX", 78130),
            Arrays.asList("Development", "QA")
        ));
 employeeCache.put(new EmployeeKey(5, 2), new Employee(
            "Breana Robbin",
            6500,
            new Address("3960 Sundown Lane, Austin, TX", 78130),
            Arrays.asList("Sales")
        ));
{noformat}




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

Mime
View raw message