Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1068

The DOC page for touch command does not warn that it puts a replica set node in recovery mode

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.2
    • None
    • manual
    • None

    Description

      This is documented for compact:
      http://docs.mongodb.org/manual/reference/command/compact/

      but not for touch:
      http://docs.mongodb.org/manual/reference/command/touch/

      Others commands do this.

      See example on a secondary on 2.2.2

      Tue Jan 29 14:29:01 [conn81] replSet going into maintenance mode (0 other tasks)
      Tue Jan 29 14:29:01 [conn81] replSet RECOVERING
      Tue Jan 29 14:29:01 [conn81] touching namespace enron.messages
      Tue Jan 29 14:29:05 [conn82] end connection 10.7.100.10:54146 (2 connections now open)
      Tue Jan 29 14:29:05 [initandlisten] connection accepted from 10.7.100.10:54159 #84 (3 connections now open)
      Tue Jan 29 14:29:08 [conn83] end connection 10.7.100.10:54147 (2 connections now open)
      Tue Jan 29 14:29:08 [initandlisten] connection accepted from 10.7.100.10:54160 #85 (3 connections now open)
      Tue Jan 29 14:29:12 [conn81] touching namespace enron.messages complete
      Tue Jan 29 14:29:12 [conn81] leaving maintenance mode (0 other tasks)
      Tue Jan 29 14:29:12 [conn81] command enron.$cmd command: { touch: "messages", data: true, index: true } ntoreturn:1 keyUpdates:0 locks(micros) r:43834 reslen:37 10577ms
      Tue Jan 29 14:29:12 [conn81] command denied: { replSetGetStatus: 1.0 }
      Tue Jan 29 14:29:12 [rsSync] replSet SECONDARY

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            gianfranco Gianfranco Palumbo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 51 weeks, 2 days ago