Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1603

Why is the MongoDB Shell prompting to kill op?

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS: SUSE Linux Enterprise Server 12 SP5
      MongoDB: v3.4.24
    • Not Needed

      Problem Statement/Rationale

      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 6)} } )

       

      When I run the above command I get prompted with the following:

      "do you want to kill the current op(s) on the server? (y/n)"

      I can run the command fine on the mongo shell and robo3t. However when I run it via ControlM I get prompted with this message. Please can you advise on how this prompt is being triggered and how I can prevent it from happening?

       

      Here is the full script being executed. The previous commands run fine, I only get prompted for the last remove operation.

      use dfm
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 15)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 14)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 13)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 12)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 10)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 9)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 8)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 7)} } )
      db.getCollection('dfm_nodeBatchStatus').remove( {"action": "SKIP", "status": "SKIPPED",date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 6)} } )
      exit

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            sanjay.sanghera@gmail.com Sanjay Sanghera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: