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-2118) CacheBinaryAutoStore Example output depends on number of runs
Date Thu, 10 Dec 2015 08:54:10 GMT

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

Sergey Kozlov updated IGNITE-2118:
----------------------------------
    Description: 
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}


  was:
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}




> 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: Yakov Zhdanov
>             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)

Mime
View raw message