[SERVER-7562] Change OplogReader to send query as OpTime, not Date Created: 05/Nov/12  Updated: 11/Jul/16  Resolved: 06/Nov/12

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.2.1
Fix Version/s: 2.3.1

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7714 currentop() from master in master-sla... Closed
related to SERVER-4045 Display queries for getmore ops in db... Closed
Operating System: ALL
Participants:

 Description   

Now that we're exposing the SyncTail query in currentOp, it looks weird as a date:

"query" : {
    "ts" : {
        "$gte" : ISODate("184032358-01--2147483647T05:06:59.688Z")
    }
},

It's also causing parsing problems for Python deserialization.



 Comments   
Comment by Kristina Chodorow (Inactive) [ 06/Nov/12 ]

Looks like Kevin added it recently: SERVER-4045 and it wasn't backported, so it should be fine in 2.2.x.

Comment by A. Jesse Jiryu Davis [ 06/Nov/12 ]

My impression is, the $gte value has had the wrong BSON type for ages, but is only reported in currentOp post-2.2.1.

Comment by Bernie Hackett [ 06/Nov/12 ]

k.chodorow@gmail.com: Are you sure this problem exists in 2.2.1? PyMongo is only failing tests in Jenkins using the latest nightly.

If it does exist in 2.2.x can we backport?

Comment by Kristina Chodorow (Inactive) [ 06/Nov/12 ]

You're welcome!

Comment by Bernie Hackett [ 06/Nov/12 ]

w00t!

Thanks for turning this around so fast.

Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-11-06T16:34:45Z', u'email': u'kristina@10gen.com', u'name': u'Kristina'}

Message: SERVER-7562 Query sync target with OpTime, not date
Branch: master
https://github.com/mongodb/mongo/commit/116af887d49190ebffbe2f4ad73e1275ee8c1d11

Comment by Bernie Hackett [ 05/Nov/12 ]

It will likely cause problems for other drivers as well. PyMongo just has unittests that exercise Database.current_op.

Generated at Thu Feb 08 03:14:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.