[SERVER-10073] jstests/compact.js (via parallel/basic.js) failing on V2.4 OS X 64-bit Created: 01/Jul/13  Updated: 10/Dec/14  Resolved: 25/Jul/13

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.4.5
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Matt Kangas Assignee: Unassigned
Resolution: Done Votes: 0
Labels: buildbot
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Buildbot: V2.4 OS X 10.5 64-bit


Issue Links:
Duplicate
duplicates SERVER-8808 compact.js failed via parallel test o... Closed
Operating System: ALL
Steps To Reproduce:

git co v2.4
git pull --ff-only
scons --release  --64 -j4 --allocator=system  --sharedclient  --release all
./buildscripts/smoke.py --mode=files jstests/parallel/basic.js

Participants:

 Description   

The OS X 64 (V2.4) builder is failing:

http://buildbot.10gen.cc/builders/V2.4%20OS%20X%2010.5%2064-bit/builds/136

http://buildbot.10gen.cc/builders/V2.4%20OS%20X%2010.5%2064-bit/builds/136/steps/test_12/logs/stdio

The following tests failed (with exit code):
/data/buildslaves/OS_X_105_64bit_V2.4/mongo/jstests/parallel/basic.js	253

http://buildlogs.mongodb.org/V2.4%20OS%20X%2010.5%2064-bit/builds/136/test/parallel/basic.js

Mon Jul  1 05:57:32.180 [conn30] build index test.many { 54: 1.0 }
Mon Jul  1 05:57:32.181 [conn30] build index done.  scanned 2 total records. 0 secs
Mon Jul  1 05:57:32.181 [conn30] build index test.many { 55: 1.0 }
         S2 Test : jstests/index_many.js 171ms
         S2 Test : jstests/or4.js ...
         S2 Test : jstests/or4.js 48ms
         S2 Test : jstests/all3.js ...
         S2 Test : jstests/all3.js 1ms
assert: [0] != [1] are not equal : one or more tests failed
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:37:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at Function.assert.eq (src/mongo/shell/assert.js:32:5)
    at Function.assert.parallelTests (src/mongo/shell/utils.js:323:16)
    at ParallelTester.run (src/mongo/shell/utils.js:180:16)
    at /data/buildslaves/OS_X_105_64bit_V2.4/mongo/jstests/parallel/basic.js:11:3
Mon Jul  1 05:57:32.368 JavaScript execution failed: [0] != [1] are not equal : one or more tests failed at src/mongo/shell/assert.js:L7
failed to load: /data/buildslaves/OS_X_105_64bit_V2.4/mongo/jstests/parallel/basic.js

What seems strange is that, looking at the builder timeline, apparently this build has SUCCEEDED previously on the same commit a6462d21ea94

http://buildbot.10gen.cc/builders/V2.4%20OS%20X%2010.5%2064-bit?numbuilds=20

When I attempt to reproduce this failure on my own Mac (OSX 10.8.4) I get a different, but consistent, failure when running jstests/parallel/basic.js.

         S1 Test : jstests/nestedobj1.js ...
Mon Jul  1 15:01:14.070 [conn6] CMD: drop test.objNestTest
Mon Jul  1 15:01:14.081 [conn6] build index test.objNestTest { _id: 1 }
Mon Jul  1 15:01:14.083 [conn6] build index done.  scanned 0 total records. 0.001 secs
Mon Jul  1 15:01:14.083 [conn6] info: creating collection test.objNestTest on add index
Mon Jul  1 15:01:14.083 [conn6] build index test.objNestTest { a: 1.0 }
Mon Jul  1 15:01:14.093 [conn6] build index done.  scanned 0 total records. 0.009 secs
                    7.8824 minutes
test /Users/kangas/workspace/mongo/jstests/parallel/basic.js exited with status -4

Is it real or is it Memorex?


EDIT: as Eric points out, parallel/basic.js is just a wrapper for a number of other tests. The underlying test which failed was:

         S3 Test : jstests/compact.js ...
1
{ "ok" : 1 }
2
assert failed
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:37:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at assert (src/mongo/shell/assert.js:14:5)
    at jstests/compact.js:31:1
    at <anonymous>:7:61
    at Function.Date.timeFunc (src/mongo/shell/types.js:27:17)
    at <anonymous>:7:38
    at Array.forEach (native)
    at Number.__parallelTests__fun (<anonymous>:4:14)
    at ____MongoToV8_newFunction_temp (<anonymous>:180:65)
Mon Jul  1 05:54:53.633 JavaScript execution failed: assert failed at src/mongo/shell/assert.js:L7
********** Parallel Test FAILED: Error: error loading js file: jstests/compact.js



 Comments   
Comment by Matt Kangas [ 25/Jul/13 ]

Hasn't recurred in the past 25 builds (25 days)

Comment by Eric Milkie [ 01/Jul/13 ]

It's an intermittent failure. Actually, I've never seen it fail before.

Comment by Spencer Brody (Inactive) [ 01/Jul/13 ]

That's not the failure I'm seeing on my machine.

> scons smokeParallel | tee testOutput.txt
[...]
 
> grep "FAILED" testOutput.txt
>
 
> grep "compact.js" testOutput.txt
         S0 Test : jstests/compact.js ...
         S0 Test : jstests/compact.js 405ms

Comment by Eric Milkie [ 01/Jul/13 ]

Note that the error with the 2.4 build running basic.js is that compact.js failed:

Mon Jul  1 05:54:53.630 [conn27] compact create index { _id: 1 }
assert failed
Mon Jul  1 05:54:53.630 [conn27] build index test.compacttest { _id: 1 }
Mon Jul  1 05:54:53.630 [conn29] build index done.  scanned 9 total records. 0 secs
Mon Jul  1 05:54:53.630 [conn29] build index test_extent2.foo { x: 1.0 }
Mon Jul  1 05:54:53.631 [conn27] compact test.compacttest end (with error)
Mon Jul  1 05:54:53.631 [conn29] build index done.  scanned 3 total records. 0 secs
Mon Jul  1 05:54:53.631 [conn29] CMD: drop test_extent2.foo
Mon Jul  1 05:54:53.632 [conn29] build index test_extent2.foo { _id: 1 }
Mon Jul  1 05:54:53.632 [conn29] build index done.  scanned 0 total records. 0 secs
Error: Printing Stack Trace
    at printStackTrace (src/mongo/shell/utils.js:37:15)
    at doassert (src/mongo/shell/assert.js:6:5)
    at assert (src/mongo/shell/assert.js:14:5)
    at jstests/compact.js:31:1
    at <anonymous>:7:61
Mon Jul  1 05:54:53.632 [conn29] build index test_extent2.foo { x: 1.0 }
Mon Jul  1 05:54:53.633 [conn29] build index done.  scanned 3 total records. 0 secs
Mon Jul  1 05:54:53.633 [conn29] CMD: drop test_extent2.foo
    at Function.Date.timeFunc (src/mongo/shell/types.js:27:17)
    at <anonymous>:7:38
    at Array.forEach (native)
    at Number.__parallelTests__fun (<anonymous>:4:14)
    at ____MongoToV8_newFunction_temp (<anonymous>:180:65)
Mon Jul  1 05:54:53.633 JavaScript execution failed: assert failed at src/mongo/shell/assert.js:L7
********** Parallel Test FAILED: Error: error loading js file: jstests/compact.js

Generated at Thu Feb 08 03:22:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.