)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"e49684a98ce4e5eb74f75eba595933e75607b715","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2013-11-01 18:20:30 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"feat(health): make health API storage-aware"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: 1243268"},{"line_number":10,"context_line":"Change-Id: I75c3b46ccb1a5a66e6c12766d3e451fd3478822c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"AAAATn%2F%2B02k%3D","line":8,"updated":"2013-11-19 16:58:21.000000000","message":"Could you explain the rationale for this patch in the commit message? Thanks!","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"d00e66757f090bb8e8b70024b26becac0db74409","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2013-11-01 18:20:30 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"feat(health): make health API storage-aware"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: 1243268"},{"line_number":10,"context_line":"Change-Id: I75c3b46ccb1a5a66e6c12766d3e451fd3478822c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"AAAATn%2F%2B0mk%3D","line":8,"in_reply_to":"AAAATn%2F%2B02k%3D","updated":"2013-11-19 17:53:05.000000000","message":"Done","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"}],"marconi/queues/storage/mongodb/driver.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"9f5dffda8cc5580620d7f5ec8ca1b8c421945d39","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            return self.connection.alive()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        except Exception:"},{"line_number":46,"context_line":"            return False"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":49,"context_line":"    def queues_database(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATX%2F%2F8SE%3D","line":46,"updated":"2013-10-23 21:44:08.000000000","message":"I\u0027m a little concerned about the use of \u0027alive\u0027 here. As per the docs:\n\n\"\"\"Does this cursor have the potential to return more data?\n\nThis is mostly useful with tailable cursors since they will stop iterating even though they may return more results in the future.\n\"\"\"\n\nWhat does alive actually do under the covers? Is this operation short-circuited in the case of a non-tailable-cursor? If so, then this will fail to be a slightly more useful health check.","commit_id":"4f1b41cc4533280a3e2f3a5d178d2bf5cfa227ac"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"a6780ccecd4c44247ac521bcfed8396c40a2a3c7","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            return self.connection.alive()"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        except Exception:"},{"line_number":46,"context_line":"            return False"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    @decorators.lazy_property(write\u003dFalse)"},{"line_number":49,"context_line":"    def queues_database(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAATX%2F%2F73s%3D","line":46,"in_reply_to":"AAAATX%2F%2F8SE%3D","updated":"2013-10-24 00:17:43.000000000","message":"What it actually does is:\n\nIf there is existing socket, select() on them, see if they are disconnected;\notherwise, try \"ping\" the server, hence create a connection.\n\nConfirmed its behavior with down server.\n\nThe reason why it\u0027s described as \"not reliable\" is because, if the connection\nis there, it does not ping mongo server, and mongo server may stucked\n(but the connection is not closed).  If we want to test this situation as well,\nwe need to use \"ping\" command.","commit_id":"4f1b41cc4533280a3e2f3a5d178d2bf5cfa227ac"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"526cca86492848bd33ed228fa08e22704fb0e189","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.conf.register_opts(opts,"},{"line_number":56,"context_line":"                                group\u003doptions.MONGODB_GROUP)"},{"line_number":57,"context_line":"        self.mongodb_conf \u003d self.conf[options.MONGODB_GROUP]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def is_alive(self):"},{"line_number":60,"context_line":"        try:"},{"line_number":61,"context_line":"            return \u0027ok\u0027 in self.connection.admin.command(\u0027ping\u0027)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F%2B004%3D","line":58,"updated":"2013-11-19 17:03:09.000000000","message":"Could you leave a note here expressing that this will require admin access to the mongodb instance? This will be the case if the mongodb instance is deployed with authentication requirements, e.g., user/pass needed to access DB.","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"d00e66757f090bb8e8b70024b26becac0db74409","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self.conf.register_opts(opts,"},{"line_number":56,"context_line":"                                group\u003doptions.MONGODB_GROUP)"},{"line_number":57,"context_line":"        self.mongodb_conf \u003d self.conf[options.MONGODB_GROUP]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def is_alive(self):"},{"line_number":60,"context_line":"        try:"},{"line_number":61,"context_line":"            return \u0027ok\u0027 in self.connection.admin.command(\u0027ping\u0027)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F%2B0mg%3D","line":58,"in_reply_to":"AAAATn%2F%2B004%3D","updated":"2013-11-19 17:53:05.000000000","message":"Done","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"9cfb87afc874849c5088b3f9da8be3915e6b28d7","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        try:"},{"line_number":61,"context_line":"            return \u0027ok\u0027 in self.connection.admin.command(\u0027ping\u0027)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        except Exception:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @decorators.lazy_property(write\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F%2B02Q%3D","line":63,"updated":"2013-11-19 17:08:53.000000000","message":"I think we should log the exception here and maybe just catch PyMongoError.\n\nhttps://github.com/mongodb/mongo-python-driver/blob/master/pymongo/errors.py#L25","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"d00e66757f090bb8e8b70024b26becac0db74409","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        try:"},{"line_number":61,"context_line":"            return \u0027ok\u0027 in self.connection.admin.command(\u0027ping\u0027)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        except Exception:"},{"line_number":64,"context_line":"            return False"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @decorators.lazy_property(write\u003dFalse)"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAATn%2F%2B0mc%3D","line":63,"in_reply_to":"AAAATn%2F%2B02Q%3D","updated":"2013-11-19 17:53:05.000000000","message":"Done","commit_id":"ae5db747038b7852b0ec744d9d68b5e4a886975d"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"4f6af1ff6a21c92648c125fe0d14a477b1d6f14e","unresolved":false,"context_lines":[{"line_number":56,"context_line":"                                group\u003doptions.MONGODB_GROUP)"},{"line_number":57,"context_line":"        self.mongodb_conf \u003d self.conf[options.MONGODB_GROUP]"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    # NOTE(zyuan): Requires admin access to shards"},{"line_number":60,"context_line":"    def is_alive(self):"},{"line_number":61,"context_line":"        try:"},{"line_number":62,"context_line":"            return \u0027ok\u0027 in self.connection.admin.command(\u0027ping\u0027)"}],"source_content_type":"text/x-python","patch_set":9,"id":"AAAATn%2F%2BTZQ%3D","line":59,"updated":"2013-11-27 16:40:15.000000000","message":"It actually requires admin access to mongodb (regardless it\u0027s sharded or replicated)\n\nReally small nit. Could you update the comment and move it to line 62?","commit_id":"037a3a18f132eb66fa2fe2c1320c3c8be48707a9"}]}
