dannote / mod-ndb

Automatically exported from code.google.com/p/mod-ndb
0 stars 0 forks source link

Test failures on scans with multiple data nodes #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Test typ101 (and others) passes with only one data node, but fails when there 
are multiple 
nodes.

Expected result:

[
  { "id":1 , "name":"fred    " , "color":null , "nvisits":5 , "channel":12 },
  { "id":4 , "name":"jen     " , "color":"brown" , "nvisits":12 , "channel":12 },
  { "id":5 , "name":"tom     " , "color":"brown" , "nvisits":2 , "channel":13 },
  { "id":3 , "name":"joe     " , "color":"yellow" , "nvisits":12 , "channel":19 },
  { "id":2 , "name":"mary    " , "color":"greenish" , "nvisits":11 , "channel":680 } 
]

Actual result:

[
  { "id":1 , "name":"fred    " , "color":null , "nvisits":5 , "channel":12 },
  { "id":4 , "name":"jen     " , "color":"brown" , "nvisits":12 , "channel":12 },
  { "id":5 , "name":"tom     " , "color":"brown" , "nvisits":2 , "channel":13 },
  { "id":3 , "name":"joe     " , "color":"yellow" , "nvisits":12 , "channel":19 } 
],
  { "id":2 , "name":"mary    " , "color":"greenish" , "nvisits":11 , "channel":680 } 
]

Original issue reported on code.google.com by john.david.duncan on 11 Feb 2009 at 1:22

GoogleCodeExporter commented 9 years ago
Maybe a bug in  ScanLoop::Run() due to improper use of nextResult()

Original comment by john.david.duncan on 11 Feb 2009 at 1:59

GoogleCodeExporter commented 9 years ago
Fixed in svn rev#541, but there is still a problem where the ordering of result 
rows in a scan depends on the 
number of NDB nodes, and this causes some tests to fail erroneously.

Original comment by john.david.duncan on 11 Feb 2009 at 6:17

GoogleCodeExporter commented 9 years ago
All related issues for existing test suite fixed in svn rev 545.  However it 
could be possible in the future to 
generate test cases that have this problem.

Original comment by john.david.duncan on 11 Feb 2009 at 8:13