)]}'
{"marconi/storage/mongodb/messages.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"16c5c5c231a897f7b5be2eb8a2a8f4e187feaa9c","unresolved":false,"context_lines":[{"line_number":69,"context_line":"    (\u0027p\u0027, 1),"},{"line_number":70,"context_line":"    (\u0027q\u0027, 1),"},{"line_number":71,"context_line":"    (\u0027k\u0027, -1)"},{"line_number":72,"context_line":"]"},{"line_number":73,"context_line":""},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"class MessageController(storage.MessageBase):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2Fxdg%3D","line":72,"updated":"2013-08-29 19:29:46.000000000","message":"I like this change - *a lot*. Self-documented indices.","commit_id":"3cbb7a02fe9042f495cf945b2a65a6c6786fc3b5"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"c88b90bc7df1a7d08155e8da8c85b6a313cd6f23","unresolved":false,"context_lines":[{"line_number":56,"context_line":"COUNTING_INDEX_FIELDS \u003d ["},{"line_number":57,"context_line":"    (\u0027p\u0027, 1),  # Project will to be unique, so put first"},{"line_number":58,"context_line":"    (\u0027q\u0027, 1),  # May not be unique, since user names it"},{"line_number":59,"context_line":"    (\u0027e\u0027, 1),  # For filtering out expired messages"},{"line_number":60,"context_line":"    (\u0027c.e\u0027, 1),  # Used for filtering out claimed messages"},{"line_number":61,"context_line":"]"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAASn%2F%2FP5E%3D","line":59,"updated":"2013-09-09 10:04:58.000000000","message":"Should this be kept here?","commit_id":"a0c6661789ee27019b8cfb53f246429e361d483d"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"b0722be37d6e9c1bb6ce3393820505ad2cc81b74","unresolved":false,"context_lines":[{"line_number":56,"context_line":"COUNTING_INDEX_FIELDS \u003d ["},{"line_number":57,"context_line":"    (\u0027p\u0027, 1),  # Project will to be unique, so put first"},{"line_number":58,"context_line":"    (\u0027q\u0027, 1),  # May not be unique, since user names it"},{"line_number":59,"context_line":"    (\u0027e\u0027, 1),  # For filtering out expired messages"},{"line_number":60,"context_line":"    (\u0027c.e\u0027, 1),  # Used for filtering out claimed messages"},{"line_number":61,"context_line":"]"},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"AAAASn%2F%2FN%2BQ%3D","line":59,"in_reply_to":"AAAASn%2F%2FP5E%3D","updated":"2013-09-09 19:48:57.000000000","message":"I benchmarked and it seems that the performance is pretty nearly the same to count with or without the \u0027e\u0027. I observed leaving it out makes count() run a tiny bit faster (0.2ms faster), though, so I might as well take it out. Making this change should also speed up inserts slightly, because it would simplify updating the index.","commit_id":"a0c6661789ee27019b8cfb53f246429e361d483d"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"cc9474e130ce0d4345b28f99ad5c4c22014747ab","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    (\u0027p\u0027, 1),"},{"line_number":74,"context_line":"    (\u0027q\u0027, 1),"},{"line_number":75,"context_line":"    (\u0027k\u0027, -1)"},{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class MessageController(storage.MessageBase):"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAASn%2F%2FHtw%3D","line":76,"updated":"2013-09-11 17:10:18.000000000","message":"I still love this. +1e3","commit_id":"8ea92b7331098087f8920e57bb65370b4e5968d2"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"cc9474e130ce0d4345b28f99ad5c4c22014747ab","unresolved":false,"context_lines":[{"line_number":372,"context_line":"        msgs \u003d self._col.find(query, sort\u003d[(\u0027k\u0027, 1)],"},{"line_number":373,"context_line":"                              read_preference\u003dpreference)"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        if limit is not None:"},{"line_number":376,"context_line":"            msgs \u003d msgs.limit(limit)"},{"line_number":377,"context_line":""},{"line_number":378,"context_line":"        now \u003d timeutils.utcnow()"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAASn%2F%2FHtU%3D","line":375,"updated":"2013-09-11 17:10:18.000000000","message":"+1 - fixes a tiny bug where limit \u003d\u003d 0","commit_id":"8ea92b7331098087f8920e57bb65370b4e5968d2"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"cc9474e130ce0d4345b28f99ad5c4c22014747ab","unresolved":false,"context_lines":[{"line_number":412,"context_line":"        separate queries for each queue, due to the requirement that"},{"line_number":413,"context_line":"        it must leave at least one message in each queue, and it"},{"line_number":414,"context_line":"        is impractical to send a huge list of _id\u0027s to filter out"},{"line_number":415,"context_line":"        in a single call. That being said, this is somewhat by"},{"line_number":416,"context_line":"        the fact that .remove is run on each queue seperately,"},{"line_number":417,"context_line":"        thereby reducing the duration that any given lock is held."},{"line_number":418,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAASn%2F%2FHtE%3D","line":415,"updated":"2013-09-11 17:10:18.000000000","message":"missing \u0027mitigated\u0027 between somewhat and by.","commit_id":"8ea92b7331098087f8920e57bb65370b4e5968d2"}],"marconi/storage/mongodb/queues.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"84eb503a90543b9e198a4b0ba6f9472ff3d3db06","unresolved":false,"context_lines":[{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        controller \u003d self.driver.message_controller"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"        active \u003d controller.count(name, project\u003dproject, include_claimed\u003dFalse)"},{"line_number":145,"context_line":"        total \u003d controller.count(name, project\u003dproject, include_claimed\u003dTrue)"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        message_stats \u003d {"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2Fu4A%3D","line":144,"updated":"2013-08-30 09:13:22.000000000","message":"FYI, I created this: https://bugs.launchpad.net/marconi/+bug/1218789","commit_id":"16994de668328e57bfdaa427ba1c31043f59c5af"}],"marconi/storage/mongodb/utils.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"84eb503a90543b9e198a4b0ba6f9472ff3d3db06","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    }"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"def filter_expired_messages(cursor, now):"},{"line_number":156,"context_line":"    \"\"\"Generator to filter out expired messages from a query result.\"\"\""},{"line_number":157,"context_line":"    for document in cursor:"},{"line_number":158,"context_line":"        if document[u\u0027e\u0027] \u003c now:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2Fu3w%3D","line":155,"updated":"2013-08-30 09:13:22.000000000","message":"mmh, not sure about this, TBH.\n\nWhat happens if 9/10 messages are expired? I thought we agreed on returning expired messages that haven\u0027t been GC\u0027d. \n\nThere\u0027s another case where this can be harmful, I think. If the GC process dies, the queue will be full of expired messages and this function will filter them out. I don\u0027t remember if we considered this case during the discussion.","commit_id":"16994de668328e57bfdaa427ba1c31043f59c5af"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"7eed661493dcd63f3fca6be2ab1d2648c917b765","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    }"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"def filter_expired_messages(cursor, now):"},{"line_number":156,"context_line":"    \"\"\"Generator to filter out expired messages from a query result.\"\"\""},{"line_number":157,"context_line":"    for document in cursor:"},{"line_number":158,"context_line":"        if document[u\u0027e\u0027] \u003c now:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAASn%2F%2FsaY%3D","line":155,"in_reply_to":"AAAASn%2F%2Fu3w%3D","updated":"2013-08-30 19:46:00.000000000","message":"megan_w was concerned about people complaining if they notice we are fudging the TTL.\n\nIf most messages are expired, we end up being a little less efficient, but I think this is mitigated by running GC often enough and also by the fact that you would only run into this situation on a queue that isn\u0027t very busy, in which case you wouldn\u0027t expect the queue to be listed very often (even if it were, then after a few seconds the expired ones would be GCd and there wouldn\u0027t be any messages to iterate over anyway).\n\nIf GC process dies, and you have lots off listing operations but few mesage posts, then you could see increased traffic between DB and app and a little more CPU usage. However, I am assuming the GC process will be running on several nodes and under something like supervisord.","commit_id":"16994de668328e57bfdaa427ba1c31043f59c5af"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"65d7829a421a4c7f47f412851b25bb8108ca9000","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    }"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"def filter_expired_messages(cursor, now):"},{"line_number":156,"context_line":"    \"\"\"Generator to filter out expired messages from a query result.\"\"\""},{"line_number":157,"context_line":"    for document in cursor:"},{"line_number":158,"context_line":"        if document[u\u0027e\u0027] \u003c now:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAASn%2F%2FUo0%3D","line":155,"updated":"2013-09-06 11:27:04.000000000","message":"I\u0027m still a bit hesitant about this function. Can we discuss it just 1 more time?","commit_id":"33639d34b211fde8e864af3f7cf06d652694647c"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"4115b9be6dfd0905b71044cd87831ca9bd508879","unresolved":false,"context_lines":[{"line_number":152,"context_line":"    }"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"def filter_expired_messages(cursor, now):"},{"line_number":156,"context_line":"    \"\"\"Generator to filter out expired messages from a query result.\"\"\""},{"line_number":157,"context_line":"    for document in cursor:"},{"line_number":158,"context_line":"        if document[u\u0027e\u0027] \u003c now:"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAASn%2F%2FTFU%3D","line":155,"in_reply_to":"AAAASn%2F%2FUo0%3D","updated":"2013-09-06 19:51:58.000000000","message":"Removed in the latest patch.","commit_id":"33639d34b211fde8e864af3f7cf06d652694647c"}],"marconi/tests/storage/base.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"16c5c5c231a897f7b5be2eb8a2a8f4e187feaa9c","unresolved":false,"context_lines":[{"line_number":348,"context_line":""},{"line_number":349,"context_line":"        [msgid] \u003d self.controller.post(self.queue_name, messages,"},{"line_number":350,"context_line":"                                       project\u003dself.project,"},{"line_number":351,"context_line":"                                       client_uuid\u003d\u0027my_uuid\u0027)"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"        with testing.expect(storage.exceptions.DoesNotExist):"},{"line_number":354,"context_line":"            self.controller.get(self.queue_name, msgid,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FxYg%3D","line":351,"updated":"2013-08-29 19:29:46.000000000","message":"What does this achieve? It seems to be a dupe of the command above.","commit_id":"3cbb7a02fe9042f495cf945b2a65a6c6786fc3b5"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"c810fdc23d40db0efe73bf56a5dadf6713cafa62","unresolved":false,"context_lines":[{"line_number":348,"context_line":""},{"line_number":349,"context_line":"        [msgid] \u003d self.controller.post(self.queue_name, messages,"},{"line_number":350,"context_line":"                                       project\u003dself.project,"},{"line_number":351,"context_line":"                                       client_uuid\u003d\u0027my_uuid\u0027)"},{"line_number":352,"context_line":""},{"line_number":353,"context_line":"        with testing.expect(storage.exceptions.DoesNotExist):"},{"line_number":354,"context_line":"            self.controller.get(self.queue_name, msgid,"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAASn%2F%2FxW4%3D","line":351,"in_reply_to":"AAAASn%2F%2FxYg%3D","updated":"2013-08-29 19:34:34.000000000","message":"I was just lazy. Let me change it to a bulk post.","commit_id":"3cbb7a02fe9042f495cf945b2a65a6c6786fc3b5"}]}
