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

create collection coordinator waits on wrong opTime to be mojority committed

    • Fully Compatible
    • ALL

      Create collection coordinator explicitly wait for majority write concern after creating the shard key index.

      The problem is that if the index was already created no write will be performed , in this case the last op time on the current client could be a very old op time, associated with the last write performed by a previous task scheduled on that thead.
      In fact the client associated with a thread of the POS pool is instantiated on thread creation and is reused by different tasks.

      So the solution would be to properly set the last op time before to wait it to be majority written.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: