Skip to content

error when some data in mongodb had been updated #6

Description

@kendozen

when updating data,it throw en exception such as behind:

Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.5/site-packages/mongo_connector/util.py", line 107, in wrapped
func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/mongo_connector/oplog_manager.py", line 298, in run
entry["o2"]["_id"], entry["o"], ns, timestamp
File "/usr/local/lib/python3.5/site-packages/mongo_connector/util.py", line 33, in wrapped
return f(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/solr_doc_manager-0.1.0-py3.5.egg/mongo_connector/doc_managers/solr_doc_manager.py", line 252, in update
doc.pop('ns')
KeyError: 'ns'

so when debuging the source, I found that there's no ns in doc,so after I comment it, it does work.

Activity

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