Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-821

reading profiling status disables profiling

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.10.1
    • None
    • None
    • linux 64 bit with --keyfile option

    Description

      When reading the profiling status, profiling will be disabled afterwards.
      Reproduce:
      Turn on profiling: db.setProfilingLevel(1,3000)
      PRIMARY> db.setProfilingLevel(1,3000)

      { "was" : 1, "slowms" : 3000, "ok" : 1 }

      Execute Java code to read out status:

      final CommandResult cr = offerStoreDb.command("profile");

      or even:

      DBObject command = new BasicDBObject();
      command.put("profile", "1");//may be -1 as well
      final CommandResult cr = offerStoreDb.command(command);

      When re-checking in console, profiling is OFF:
      PRIMARY> db.getProfilingLevel()
      0

      Attachments

        Activity

          People

            Unassigned Unassigned
            kay.agahd@idealo.de Kay Agahd
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: