Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-89748

Retry _flushRoutingTableCacheUpdates command if it fails in retry_on_transient_error_basic.js

    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • 0

      The _flushRoutingTableCacheUpdates command can fail if run right after startup. This is because _flushRoutingTableCacheUpdates requires a key in the key cache to correctly work. However on startup, the key cache is empty and the KeyCollectionManager which periodically refreshes keys into the key cache is not guaranteed to be run by the time _flushRoutingTableCacheUpdates is run. 

      I think the easiest solution is just to have the retry_on_transient_error_basic.js retry the _flushRoutingTableCacheUpdates command if it fails (via assert.soon).

            Assignee:
            daniel.segel@mongodb.com Daniel Segel
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: