)]}'
{"neutron/agent/l3/item_allocator.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"ebd7af405603c1fe92f80cd52e19eac6231136a4","unresolved":false,"context_lines":[{"line_number":32,"context_line":"    one record per line."},{"line_number":33,"context_line":"    \"\"\""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def __init__(self, state_file, ItemClass, item_pool, delimiter\u003d\u0027,\u0027):"},{"line_number":36,"context_line":"        \"\"\"Read the file with previous allocations recorded."},{"line_number":37,"context_line":" "},{"line_number":38,"context_line":"        See the note in the allocate method for more detail."}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_fe5c6b4c","line":35,"updated":"2015-08-06 22:16:36.000000000","message":"why are you passing a class in like this?","commit_id":"ba93d09eb3d1bde6229655d9533ed23f06b6b4b0"},{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"ebd7af405603c1fe92f80cd52e19eac6231136a4","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        \"\"\""},{"line_number":40,"context_line":"        self.ItemClass \u003d ItemClass"},{"line_number":41,"context_line":"        self.state_file \u003d state_file"},{"line_number":42,"context_line":" "},{"line_number":43,"context_line":"        self.allocations \u003d {}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        self.remembered \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_5e347ffa","line":42,"updated":"2015-08-06 22:16:36.000000000","message":"nits: white sapces.","commit_id":"ba93d09eb3d1bde6229655d9533ed23f06b6b4b0"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"c75e3a0c3eab6487818def6336f7d34760c2fe7f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        \"\"\""},{"line_number":40,"context_line":"        self.ItemClass \u003d ItemClass"},{"line_number":41,"context_line":"        self.state_file \u003d state_file"},{"line_number":42,"context_line":" "},{"line_number":43,"context_line":"        self.allocations \u003d {}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        self.remembered \u003d {}"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_a9b8ef11","line":42,"in_reply_to":"1a4dcd0f_5e347ffa","updated":"2015-08-06 22:27:25.000000000","message":"@Aaron, this is a refactoring of https://review.openstack.org/#/c/193711 - ItemAllocator is handling allocation of different class types, hence the ItemClass is being passed down","commit_id":"ba93d09eb3d1bde6229655d9533ed23f06b6b4b0"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"1854ac7df04ced12a5273b8d751acd8db50fd03e","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    Some of the allocations such as link local addresses used for routing"},{"line_number":22,"context_line":"    inside the fip namespaces need to persist across agent restarts to maintain"},{"line_number":23,"context_line":"    consistency. Persisting such allocations in the database is unnecessary and"},{"line_number":24,"context_line":"    would degrade performance. ItemAllocator utilizes local file system"},{"line_number":25,"context_line":"    to track allocations made for objects of a given class."},{"line_number":26,"context_line":"        The persistent datastore is a file. The records are one per line"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_485cbc7c","line":23,"range":{"start_line":23,"start_character":52,"end_line":23,"end_character":60},"updated":"2015-08-07 05:46:01.000000000","message":"\"the database\" here means neutron db?\n\nhave you considered to use a local database? eg. sqlite3?\nit would be more reliable and provides atomic updates.","commit_id":"bf4930e10249d81b78dd54d868bd4da97bce1686"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"39e019d112bd529a57360fd74f79fd604cce7b26","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    Some of the allocations such as link local addresses used for routing"},{"line_number":22,"context_line":"    inside the fip namespaces need to persist across agent restarts to maintain"},{"line_number":23,"context_line":"    consistency. Persisting such allocations in the database is unnecessary and"},{"line_number":24,"context_line":"    would degrade performance. ItemAllocator utilizes local file system"},{"line_number":25,"context_line":"    to track allocations made for objects of a given class."},{"line_number":26,"context_line":"        The persistent datastore is a file. The records are one per line"}],"source_content_type":"text/x-python","patch_set":11,"id":"1a4dcd0f_713dc529","line":23,"in_reply_to":"1a4dcd0f_485cbc7c","updated":"2015-08-07 16:26:22.000000000","message":"Yes, doc string updated to say neutron database\n\nThis is only refactoring existing code to address the particular defect.  Changing from backing with a file to backing with something like sqlite3 would (imo) require a separate defect.","commit_id":"bf4930e10249d81b78dd54d868bd4da97bce1686"}],"neutron/tests/unit/agent/l3/test_item_allocator.py":[{"author":{"_account_id":4395,"name":"Aaron Rosen","email":"aaronorosen@gmail.com","username":"arosen"},"change_message_id":"ebd7af405603c1fe92f80cd52e19eac6231136a4","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class TestItemAllocator(base.BaseTestCase):"},{"line_number":23,"context_line":"    def setUp(self):"},{"line_number":24,"context_line":"        super(TestItemAllocator, self).setUp()"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def test__init__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a4dcd0f_be7b43bd","line":23,"updated":"2015-08-06 22:16:36.000000000","message":"nit: not needed.","commit_id":"ba93d09eb3d1bde6229655d9533ed23f06b6b4b0"}]}
