You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexey Kuznetsov (JIRA)" <ji...@apache.org> on 2015/12/11 05:27:10 UTC

[jira] [Resolved] (IGNITE-2118) CacheBinaryAutoStore Example output depends on number of runs

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

Alexey Kuznetsov resolved IGNITE-2118.
--------------------------------------
    Resolution: Fixed
      Assignee: Sergey Kozlov  (was: Alexey Kuznetsov)

Fixed example to produce stable output and make output more informative.
Fix pushed into ignite-1.5 and ignite-1.5.1.

> CacheBinaryAutoStore Example output depends on number of runs
> -------------------------------------------------------------
>
>                 Key: IGNITE-2118
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2118
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Sergey Kozlov
>            Assignee: Sergey Kozlov
>             Fix For: 1.5
>
>
> 1. Start H2 server
> 2. Start ignite node
> 3. Start CacheBinaryAutoStore a few times. Each time "Loaded cache entries" incremented by one.
> {noformat}
> >>> Cache auto store example started.
> Read value: null
> Overwrote old value: null
> Read value: Person [firstName=Isaac, lastName=Newton, id=5980051555829975513, orgId=null, resume=null, salary=0.0]
> Read value after commit: Person [firstName=Isaac, lastName=Newton, id=5980051555829975513, orgId=null, resume=null, salary=0.0]
> >>> ------------------------------------------
> >>> Load data to cache from DB with custom SQL...
> Loaded cache entries: 3
> >>> Load ALL data to cache from DB...
> Loaded cache entries: 7
> {noformat}
> {noformat}
> >>> Cache auto store example started.
> Read value: null
> Overwrote old value: null
> Read value: Person [firstName=Isaac, lastName=Newton, id=5677607654468819582, orgId=null, resume=null, salary=0.0]
> Read value after commit: Person [firstName=Isaac, lastName=Newton, id=5677607654468819582, orgId=null, resume=null, salary=0.0]
> >>> ------------------------------------------
> >>> Load data to cache from DB with custom SQL...
> Loaded cache entries: 3
> >>> Load ALL data to cache from DB...
> Loaded cache entries: 8
> {noformat}
> {noformat}
> >>> Cache auto store example started.
> Read value: null
> Overwrote old value: null
> Read value: Person [firstName=Isaac, lastName=Newton, id=5702655301354862064, orgId=null, resume=null, salary=0.0]
> Read value after commit: Person [firstName=Isaac, lastName=Newton, id=5702655301354862064, orgId=null, resume=null, salary=0.0]
> >>> ------------------------------------------
> >>> Load data to cache from DB with custom SQL...
> Loaded cache entries: 3
> >>> Load ALL data to cache from DB...
> Loaded cache entries: 9
> {noformat}
> Also current output is not clear for user. Why "read value" and "read valeu after commit" provided same data and some fields have null or zero values:
> {noformat}
> Read value: Person [firstName=Isaac, lastName=Newton, id=5188611429809916525, orgId=null, resume=null, salary=0.0]
> Read value after commit: Person [firstName=Isaac, lastName=Newton, id=5188611429809916525, orgId=null, resume=null, salary=0.0]
> {noformat}



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