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

Figure out how to handle NamespaceNotFound error in TTL Index Delete

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 8.3 Required
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL

      As part of the new rs->configShard procedure, there is a period of time where users are connected directly to a replica set started with --configsvr, but the replica set has not been added as a shard yet. As a result of this, TTL index delete will fail with NamespaceNotFound because it will attempt to get sharding database metadata which is only created after the replica set has been added as a shard. 

      A possible solution could be to attempt to refresh the sharding filtering metadata on namespace not found error similar to how StaleShardVersion errors are handled

            Assignee:
            Unassigned Unassigned
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: