Skip to content
Permalink
Branch: master
Commits on Jul 19, 2019
  1. RUBY-1871 Associate connections with pools (#1448)

    HanaPearlman committed Jul 19, 2019
    * maintain pool id in connection to distinguish connections checked out by different pools
    
    * add address label to some errors in connection
    
    * correctly assert on pool error messages in tests
    
    * error when a connection is checked into a pool twice
    
    * use register_pool in connection pool spec
    
    * update documentation in connection
  2. RUBY-1874 Add "connectionError" as a valid "reason" for a ConnectionC…

    HanaPearlman committed Jul 19, 2019
    …heckOutFailedEvent when connection set up fails (#1453)
    
    * Add connectionError as a valid reason for a ConnectionCheckOutFailedEvent when connection setup fails
    
    * Start populator after pool created event is emitted to enforce cmap event order
    
    * use authorized client instead of local
  3. RUBY-1605 Establish working connections in a background thread; RUBY-…

    HanaPearlman committed Jul 19, 2019
    …1863 Ignore ConnectionReadyEvent in CMAP pool creation test (#1442)
    
    * add pending connection to bg thread, connect in check_out and bg thread
    
    * attempt to clean up pools and no tls
    
    * ssl options in bg thread spec
    
    * not mocking cluster
    
    * get pool from server
    
    * undo config change
    
    * Remove the legacy DescriptionChanged event
    
    * Encapsulate sdam flow running in cluster
    
    * Fix tests
    
    * Pass Server instance to Monitor
    
    * Move scan semaphore into Server
    
    * Revise Monitor description
    
    * Move round trip time averager into Server
    
    * Move description out of Monitor into Server
    
    * Move last scan into Server
    
    * Omit server monitor if monitoring io is false
    
    * Move heartbeat interval into Cluster
    
    * Retrieve all cluster configuration on a single connection for performance
    
    * Make monitor test into an integration one
    
    * merge auth options in pool spec and bg thread spec
    
    * Remove unneeded obsolete code
    
    * make cps like cpbts
    
    * move test from cps to cpbts
    
    * allow double cluster to receive sdam flow
    
    * make storage engine non private
    
    * auth credentials for cmap servers
    
    * kill bg thread in a server spec test, send server description in cmap
    
    * quick fix for disabling populator; not complete
    
    * stop_populator method to avoid race conditions
    
    * retry in populate
    
    * add register_pool
    
    * typo fix
    
    * implement feedback
    
    * add close checks back to populate
    
    * stop populator outside of lock, attempt to address jruby
    
    * implement feedback
    
    * use pending_connections for in-flow connecting
    
    * for now, always wait for populator to be killed when stopping it
    
    * rename to just populator
    
    * undo rename of populator
    
    * remove old populate code
    
    * clean up
    
    * log errors occurring during connect, only retry on network errors
    
    * output full exception diagnostics
    
    * RUBY-1863 Ignore ConnectionReadyEvent in CMAP pool creation test
Commits on Jul 18, 2019
  1. RUBY-1498 Resync CRUD v1 tests for new bulkWrite() tests (#1450)

    p-mongo committed Jul 18, 2019
    * RUBY-1498 sync crud v1 write spec tests
    
    * revise language
    
    * Format remaining transforms consistently
    
    * RUBY-1498 mpass all arguments to bulk write operations
Commits on Jul 17, 2019
  1. RUBY-1884 Always wait for background threads to finish when closing r…

    p-mongo committed Jul 17, 2019
    …esources (#1447)
    
    * use a temporary scope
    
    * RUBY-1884 Always wait for background threads to finish when closing resources
    
    * RUBY-1884 RUBY-1605 stop connection pool populator outside of pool lock
  2. RUBY-1655 Implement CRUD v2 spec tests (#1438)

    p-mongo committed Jul 17, 2019
    * RUBY-1655 implement crud v2 spec runner
    
    * RUBY-1655 crud v2 spec tests
    
    * RUBY-1655 crud v2 tests use inserted count of 0 in assertions
    
    * RUBY-1655 change assertions to match current driver behavior
  3. 1879 do_connect closes socket if an error occurs during any connect s…

    HanaPearlman committed Jul 17, 2019
    …tep (#1443)
    
    * do_connect closes socket if an error occurs during any connect step
    
    * implemented feedback
  4. RUBY-1868 wait for all client closes in test suite (#1445)

    p-mongo committed Jul 17, 2019
    * RUBY-1868 wait for all client closes in test suite
    
    * Repair intermittent failures in connection spec
Commits on Jul 16, 2019
  1. RUBY-1878 RUBY-1711 Do not send multi: false & upsert: false to the s…

    p-mongo committed Jul 16, 2019
    …erver (#1439)
    
    * RUBY-1878 only set upsert and multi fields when they are true
    
    * RUBY-1878 remove multi: false and upsert: false assertions from transaction spec tests
    
    * RUBY-1878 fix non-spec tests
    
    * RUBY-1711 sync apm spec tests to remove multi:false & upsert:false assertions
Commits on Jul 15, 2019
  1. RUBY-1868 Further reduce non-determinism in the whole of ruby test su…

    p-mongo committed Jul 15, 2019
    …ite (#1437)
    
    * RUBY-1868 assert on warnings logged, not logger level inquiries
    
    * RUBY-1868 initialize pool for both cursor finalizer tests
    
    * RUBY-1868 use try_next for testing change streams on jruby
    
    * RUBY-1868 loosen session pool cluster time assertions
    
    * RUBY-1868 close more local clients
    
    * RUBY-1868 Compare cluster times more strictly
    
    * RUBY-1868 increase the wait for reliability
    
    * RUBY-1868 try closing all clients
    
    * RUBY-1868 add a cluster time test
    
    * RUBY-1868 RUBY-1877 disable change stream examples spec on jruby
    
    * RUBY-1868 omit client construction
    
    * RUBY-1868 implement remaining logical operators for cluster time
    
    * RUBY-1868 test cluster time equality also
    
    * RUBY-1868 try to be more aggressive with pool creation
    
    * RUBY-1868 allow a longer timeout
    
    * RUBY-1868 stop background thread when asserting on scan! calls
Commits on Jul 12, 2019
  1. RUBY-1872 Refactor background threading code (#1429)

    p-mongo committed Jul 12, 2019
    * Remove the legacy DescriptionChanged event
    
    * Encapsulate sdam flow running in cluster
    
    * Fix tests
    
    * Pass Server instance to Monitor
    
    * Move scan semaphore into Server
    
    * Revise Monitor description
    
    * Move round trip time averager into Server
    
    * Move description out of Monitor into Server
    
    * Move last scan into Server
    
    * Omit server monitor if monitoring io is false
    
    * Move heartbeat interval into Cluster
    
    * Retrieve all cluster configuration on a single connection for performance
    
    * Make monitor test into an integration one
    
    * Remove unneeded obsolete code
    
    * Storage engine method needs to be public
    
    * Rename variable
  2. RUBY-1855 Run all transaction tests on sharded clusters (#1404)

    p-mongo committed Jul 12, 2019
    * RUBY-1855 Sync remaining transaction tests to run on sharded clusters
    
    skip other ones
    
    * RUBY-1855 Run distinct prep prior to setting fail points in sharded clusters
  3. Fix RUBY-1840 Legacy write retries are used when modern retryable wri…

    p-mongo committed Jul 12, 2019
    …tes are requested on some operations (#1433)
    
    * Fix RUBY-1840 Legacy write retries are used when modern retryable writes are requested on some operations
    
    * Return to default write retry configuration
Commits on Jul 11, 2019
  1. RUBY-1853 Test server 3.6/4.0 + mmapv1 configurations in Evergreen (#…

    p-mongo committed Jul 11, 2019
    …1430)
    
    * RUBY-1853 Test server 3.6/4.0 + mmapv1 configurations in Evergreen
    
    * Add a marker test for mmapv1
    
    * Allow uri options to take priority over test defaults
    
    * Fix URI
    
    * Turn off read & write retries when running on mmapv1
  2. RUBY-1383 RUBY-1854 RUBY-1834 test & fix read preference handling by …

    p-mongo committed Jul 11, 2019
    …the driver in various scenarios (#1406)
    
    * RUBY-1383 integration test for read preference handling
    
    * DRY event search
    
    * RUBY-1840 work around unexpected write retries
    
    * RUBY-1854 fix read preference passing in the driver in various places
    
    * RUBY-1383 RUBY-1834 Adjust read preference spec to the final understanding of how read preferences work
    
    * RUBY-1834 do not send read preference to standalones
    
    * Remove obsolete code
    
    * Add a comment
  3. RUBY-1833 Implement missing Change Stream prose tests (#1427)

    HanaPearlman committed Jul 11, 2019
    * test change stream will not resume on non-resumable error
    
    * test change stream will perform server selection before attempting to resume
    
    * test cursor returned from aggregate command w cursor id and initial empty batch is not closed on driver side
    
    * test resuming after a killCursors command is issued for its child cursor
    
    * assert on events size and contents for resuem token tests
    
    * verify cs tests execute directly after a get_more
    
    * refactor non-resumable error test into shared example
    
    * small refactor
    
    * test removing cursor code
    
    * implement feedback
  4. RUBY-1875 Pass read concern options through normal driver mechanisms (#…

    p-mongo committed Jul 11, 2019
    …1431)
    
    * Disable monitoring io when it is not needed
    
    * Fix read concern test
    
    * Hack the test to make read concern a symbol
    
    * Fix read concern in URI parsing
    
    * Fix URI spec tests
    
    * Convert read concern values to strings everywhere
Commits on Jul 10, 2019
  1. RUBY-1860 Standardize on :write_concern for write concern options (#1413

    p-mongo committed Jul 10, 2019
    )
    
    * Change client and collection from :write to :write_concern
    
    * Use :write_concern internally
    
    * Switch gridfs code to :write_concern
    
    * Fix the docs
Commits on Jul 9, 2019
Commits on Jul 8, 2019
  1. RUBY-1868 Further test suite reliability improvements (#1420)

    p-mongo committed Jul 8, 2019
    * Add more synchronization for jruby
    
    * JRuby can also not drop documents, turns out
    
    * Lock reads of sdam log entries also
  2. RUBY-1563 Abstract SRV record query behavior for use in mongos polling (

    p-mongo committed Jul 8, 2019
    #1426)
    
    * RUBY-1563 Abstract SRV record query behavior for use in mongos polling
    
    * add docs
    
    * small fixes
    
    * Provide better diagnostics on empty arguments
    
    * Clean up headers
    
    * Line length
    
    * Prepended
    
    * Spell out txt options
    
    * Rename Records to Result
    
    * Clarify Result api
    
    * TXT option handling
    
    * Fix constructor call
    
    * Camel case Srv
  3. RUBY-1605 Hook up connection pool to synchronous close machinery (#1425)

    p-mongo committed Jul 8, 2019
    * Standardize on run! method for background runners
    
    * Hook up connection pool to synchronous close machinery
    
    * Adjust cursor spec
    
    * Add tests around connection pool replacement when server disconnects
  4. RUBY-1872 Start background threads last and stop them first (#1419)

    p-mongo committed Jul 8, 2019
    * Start background threads last and stop them first
    
    * Set up finalizer prior to running monitor
    
    * Do not monitor servers when monitoring io is false
Commits on Jul 7, 2019
  1. RUBY-1867 Perform another round of server selection if server selecto…

    p-mongo committed Jul 7, 2019
    …r waited and is at deadline (#1416)
Commits on Jul 2, 2019
  1. RUBY-1868 Assorted fixes to improve test suite reliability (#1415)

    p-mongo committed Jul 2, 2019
    * Close the client used for discovering cluster topology when done with it
    
    * Ensure that all clients created by the test suite are closed
    
    * Ensure the server is polled
    
    * Omit failing enterprise auth configurations
    
    * Improve robustness of server description test
    
    * Fix the test on jruby
    
    * Fix step down spec
    
    * Retry ssl tests when they fail
    
    * Fix auth test failures
    
    * Isolate intermittently failing tests by closing clients more aggressively
    
    * Improve robustness of sdam proc test
    
    * Lock formatter for JRuby
    
    * Fix change stream spec tests on JRuby
    
    * Assert on actual log call rather than logger level inquiry
Older
You can’t perform that action at this time.