8000 Dex won't read analyst system.profile from secondary (KeyError: 'supported') · Issue #26 · mongolab/dex · GitHub
[go: up one dir, main page]

Skip to content

Dex won't read analyst system.profile from secondary (KeyError: 'supported') #26

Open

Description

@meersjo

Visible error:

Traceback (most recent call last):
  File "/usr/local/bin/dex", line 233, in <module>
    main(sys.argv[1:])
  File "/usr/local/bin/dex", line 206, in main
    return md.analyze_profile()
  File "/usr/local/lib/python2.7/dist-packages/dex/dex.py", line 162, in analyze_profile
    profile_parser)
  File "/usr/local/lib/python2.7/dist-packages/dex/dex.py", line 101, in _process_query
    if parsed['supported']:
KeyError: 'supported'

How to reproduce:

  • Replicaset, app read_preference = secondary_preferred
  • Log in to a secondary, set slaveOk(), setProfilingLevel(2)
  • Run loadtests
  • setProfilingLevel(0)
  • Run Dex from a remote machine with -p -n

Additional info:

  • Dex installed today, using pip, from Github repo.
  • MongoDB 2.4.8 running on all repset nodes.
  • If I change the hostname to one of the other nodes, I get no error, but also no data as the system.profile collection doesn't exist there.
  • I tried changing the PRIMARY_PREFERRED to NEAREST in dex.py and analyser.py, but no change in behaviour.

I'm going to export the collection and import it into the master, but any help here would be appreciated - I don't like having to turn on profiling globally.

Activity

  1. meersjo commented on Apr 30, 2014

    @meersjo
    Author

    We did more tests, now with setProfilingLevel(1) on all nodes; Dex now gives the same error on all the nodes. Analysis using mongodb.log does work.

  2. meersjo commented on Apr 30, 2014

    @meersjo
    Author

    Dex 0.6 (using simply "pip install dex") does work with system.profile, but only on the primary of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0