[CDRIVER-1305] Some tests hang on 32-bit Unix Created: 24/May/16  Updated: 18/Jan/17  Resolved: 30/Aug/16

Status: Closed
Project: C Driver
Component/s: libmongoc, tests
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-752 Server selection times out immediatel... Closed
related to CDRIVER-1437 ismaster_ssl fails on 32bit Solaris Closed
related to CDRIVER-1439 Deal with spurious wakeups from pthre... Closed
related to CDRIVER-1995 /Topology/cooldown/standalone sometim... Closed

 Description   

Test bug or driver bug?:

/Topology/connect_timeout/pooled

https://evergreen.mongodb.com/task/mongo_c_driver_solaris_32_bit_integration_test_latest_replica_set_504d9db956ca83cdb49715df960606db2de1c347_16_05_24_18_46_34

/Topology/cooldown/rs

https://evergreen.mongodb.com/task/mongo_c_driver_solaris_32_bit_integration_test_2.4_34284e02c13baa093748ecc23aa7886823d58b45_16_07_14_00_39_41

/Client/sends_metadata_pooled

https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_solaris_32_bit_integration_test_3.0_b9f5cb78c0acfd032f671816f6d485fd92fa6846_16_07_27_12_52_49/0?type=T#L354

Fails on 32-bit Solaris but not 64-bit.

On 32-bit Ubuntu, these tests can fail after a few seconds:

/Topology/cooldown/rs
/Topology/cooldown/standalone

https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_ubuntu_1404_32_integration_test_2.6_no_auth_b9f5cb78c0acfd032f671816f6d485fd92fa6846_16_07_27_12_52_49/0?type=T#L1333

And in one case it hung forever on 32-bit Ubuntu, same as on 32-bit Solaris:

https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_ubuntu_1404_32_integration_test_2.6_sharded_no_auth_b9f5cb78c0acfd032f671816f6d485fd92fa6846_16_07_27_12_52_49/0?type=T#L1326



 Comments   
Comment by Githook User [ 23/Aug/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1473 delete flakey timeout test

This test was to prove the scanner obeys connectTimeoutMS (CDRIVER-799),
but test_select_after_try_once does that more simply and reliably.

Also deals with CDRIVER-1305.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0402b055070d76b6ffe830dd26a1c4b4299085e4

Comment by Ian Boros [ 09/Aug/16 ]

Here's another example of the /Topology/cooldown/rs test hanging AFTER Jesse made the change to the mock server to handle spurious wakeups, which probably means that bug is independent from this one.

https://evergreen.mongodb.com/task/mongo_c_driver_solaris_32_bit_integration_test_latest_replica_set_0fe818d046886f4facd2c2ef82a879230e76cf42_16_08_05_17_42_53

Comment by Githook User [ 27/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1305 disable timeout tests on all 32-bit Unix
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6de38dd0963dbe99fa594ca25d5a2d4ce3eca12f

Comment by A. Jesse Jiryu Davis [ 26/Jul/16 ]

Example hang:

Begin /Topology/connect_timeout/pooled
listening on port 44638
listening on port 44935
server on port 44638 down, server on port 44935 secondary
 0.00  41938 -> server port 44638 (connected) DOWN
 0.00  43653 -> server port 44935 (connected)
 0.00  41938 -> 44638 OP_QUERY admin.$cmd { "isMaster" : 1, "client" : { "driver" : { "name" : "mongoc", "version" : "1.4.0-dev" }, "os" : { "type" : "Unix", "name" : "Solaris" } } } flags=SLAVE_OK
 0.00  43653 -> 44935 OP_QUERY admin.$cmd { "isMaster" : 1, "client" : { "driver" : { "name" : "mongoc", "version" : "1.4.0-dev" }, "os" : { "type" : "Unix", "name" : "Solaris" } } } flags=SLAVE_OK
 0.00  43653 <- 44935   { "ok" : 1, "ismaster" : false, "secondary" : true, "setName" : "rs" }
 
 0.70  38464 -> server port 44638 (connected) 
 0.70  43653 -> 44935 OP_QUERY admin.$cmd { "isMaster" : 1 } flags=SLAVE_OK
 0.70  38464 -> 44638 OP_QUERY admin.$cmd { "isMaster" : 1, "client" : { "driver" : { "name" : "mongoc", "version" : "1.4.0-dev" }, "os" : { "type" : "Unix", "name" : "Solaris" } } } flags=SLAVE_OK
 0.70  43653 <- 44935   { "ok" : 1, "ismaster" : false, "secondary" : true, "setName" : "rs" }
 
 1.40  33856 -> server port 44638 (connected)
 1.40  43653 -> 44935 OP_QUERY admin.$cmd { "isMaster" : 1 } flags=SLAVE_OK
 1.40  33856 -> 44638 OP_QUERY admin.$cmd { "isMaster" : 1, "client" : { "driver" : { "name" : "mongoc", "version" : "1.4.0-dev" }, "os" : { "type" : "Unix", "name" : "Solaris" } } } flags=SLAVE_OK
 1.40  43653 <- 44935   { "ok" : 1, "ismaster" : false, "secondary" : true, "setName" : "rs" }

Comment by Githook User [ 23/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1305 fix build on Solaris
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3dc9d484d97294281ea4217cffe482e716d4aebd

Comment by Githook User [ 23/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: Revert "CDRIVER-1305 enable timeout tests on Solaris"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e483e91f7e03fbfbd404472efcf899597c49b283

Comment by A. Jesse Jiryu Davis [ 22/Jul/16 ]

These tests appear to have been fixed by recent improvements in the topology scanner.

Comment by Githook User [ 22/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1305 enable timeout tests on Solaris

These tests appear to have been fixed by recent improvements in the
topology scanner.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c24d78360d26495c7bd03399cbc59e26a3a29ece

Comment by Githook User [ 14/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1305 more tests that time out on Sun
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/7e0105c26ef1b295739465afc8d4dac6218f0ea5

Comment by Githook User [ 26/May/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1305 skip timing test on Solaris
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5d7aa4cc56d3d10396ab9b13899bca2f55c5e823

Generated at Wed Feb 07 21:12:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.