[CDRIVER-2542] Investigate behavior of poll on zSeries Created: 09/Mar/18  Updated: 27/Oct/23  Resolved: 06/Mar/23

Status: Closed
Project: C Driver
Component/s: network
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: bgtrack
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Tests for CDRIVER-1972 encountered some unexpected behavior of poll in zSeries.

The test introduced a mock poll function. This called the library function poll and sometimes would change the response. The tests would simulate a delayed connection by changing the response of poll to indicate no results. A consequence of this is that poll could be called many more times than it would be in a normal case.

Surprisingly, it seems like because of this mock poll, zSeries would occasionally have large delays (5 or 10 seconds). As a workaround, the timeout passed to poll was reduced to 5ms. We should investigate why this happened, and if there is a better solution.



 Comments   
Comment by Kevin Albertson [ 06/Mar/23 ]

Mock server tests are no longer run on zSeries as of https://github.com/mongodb/mongo-c-driver/pull/1187

Comment by Kevin Albertson [ 02/May/18 ]

Example of spurious failure:

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

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