)]}'
{"neutron_lib/db/api.py":[{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"11958bc56c35165c6ce22585ab08c8ac21bed22e","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_3635b1a8","line":151,"updated":"2018-07-19 08:31:49.000000000","message":"why not try to do this interval random from let\u0027s say range between 0.5 and 2 seconds? Thanks that if You have to calls which are done in almost same time and has some conflict, will be retried in totally different time and all should works better than","commit_id":"7821a12bdcca3fad6d7901b7e9923127b08208b9"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"3e7fb81f1bb2a442a8c3cf20688a286624747c6a","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_f62e59f7","line":151,"in_reply_to":"5f7c97a3_3635b1a8","updated":"2018-07-19 08:53:04.000000000","message":"Actually when retry get a DBDeadlock exception [1], the behavior indeed as you dicribe here, it will random an interval [2]. : )\nCorrect me if I\u0027m missing something.\n\n[1] https://github.com/openstack/oslo.db/blob/master/oslo_db/api.py#L168\n[2] https://github.com/openstack/oslo.db/blob/master/oslo_db/api.py#L195\n\nSo, for this bug, during the IP allocation, it is DBDeadlock exception in every retry.","commit_id":"7821a12bdcca3fad6d7901b7e9923127b08208b9"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"0e4c4b587c72f392a919908f5fd4fdc9407e2344","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_60f2609d","line":151,"in_reply_to":"5f7c97a3_f62e59f7","updated":"2018-07-20 07:33:47.000000000","message":"Yes, it will do what I described so it\u0027s fine now for me. Thx :)","commit_id":"7821a12bdcca3fad6d7901b7e9923127b08208b9"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"3abeea2c2cf2cd7d5ee7192c06d14fd5593fecba","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_f0d44b20","line":151,"range":{"start_line":151,"start_character":19,"end_line":151,"end_character":22},"updated":"2018-07-29 07:28:03.000000000","message":"i am not sure about this. what we see is that this happens quite often when creating multiple instances at the same time on the same network. so this would be a degradation int he API performance. Why not stick with the 0.1?","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"7f164fe9b8b5626a3471b99d01c23f256713509f","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_981ad579","line":151,"range":{"start_line":151,"start_character":19,"end_line":151,"end_character":22},"in_reply_to":"5f7c97a3_0c652b49","updated":"2018-07-30 08:47:10.000000000","message":"IMO it should be good like it\u0027s proposed now :) I agree that lower it to 0.1 can lead to more retries which can lead to same API performance but also slightly higher db load maybe.","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"a6f991aff4c03da2f25de0ddd4d64a28b9e3c40a","unresolved":false,"context_lines":[{"line_number":148,"context_line":""},{"line_number":149,"context_line":"_retry_db_errors \u003d oslo_db_api.wrap_db_retry("},{"line_number":150,"context_line":"    max_retries\u003dMAX_RETRIES,"},{"line_number":151,"context_line":"    retry_interval\u003d0.5,"},{"line_number":152,"context_line":"    inc_retry_interval\u003dTrue,"},{"line_number":153,"context_line":"    exception_checker\u003dis_retriable"},{"line_number":154,"context_line":")"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_0c652b49","line":151,"range":{"start_line":151,"start_character":19,"end_line":151,"end_character":22},"in_reply_to":"5f7c97a3_f0d44b20","updated":"2018-07-30 02:48:35.000000000","message":"Not all api will hit a DB retry, so API performance will not be influenced eveywhere. Acctually a larger retry_interval  can increase the performance, since a larger random range can make a  more lower collision chance, then fewer retry times. So we save time here, right? And, according to our test results, 0.1 is too frequent to reduce the retry times.","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"}],"releasenotes/notes/reset-db-retry-settings-49e51cef4c842f69.yaml":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4b09876d5d3f9c0bc22bcf5aae9c36a84f03f8d9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_2b21fbb0","line":4,"range":{"start_line":4,"start_character":49,"end_line":4,"end_character":54},"updated":"2018-08-10 20:04:25.000000000","message":"I think you should mention the decorator by name...\n\ntimes for the ``retry_db_errors`` decorator in ``neutron_lib.db.api`` to 0.5 seconds and 20 times, respectively.","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"181738a49601c51f02bc023a0437bfe33bc19e33","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_8c72a248","line":4,"range":{"start_line":4,"start_character":49,"end_line":4,"end_character":54},"in_reply_to":"3f79a3b5_2b21fbb0","updated":"2018-08-11 09:35:18.000000000","message":"Done","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4b09876d5d3f9c0bc22bcf5aae9c36a84f03f8d9","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_4b7eb7af","line":5,"range":{"start_line":5,"start_character":20,"end_line":5,"end_character":43},"updated":"2018-08-10 20:04:25.000000000","message":"have a higher chance for DBDeadlock,","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"4b09876d5d3f9c0bc22bcf5aae9c36a84f03f8d9","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_eb48e387","line":5,"range":{"start_line":5,"start_character":45,"end_line":5,"end_character":53},"updated":"2018-08-10 20:04:25.000000000","message":"users should have","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"181738a49601c51f02bc023a0437bfe33bc19e33","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_2c910e48","line":5,"range":{"start_line":5,"start_character":20,"end_line":5,"end_character":43},"in_reply_to":"3f79a3b5_4b7eb7af","updated":"2018-08-11 09:35:18.000000000","message":"Done","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"},{"author":{"_account_id":9531,"name":"liuyulong","display_name":"LIU Yulong","email":"i@liuyulong.me","username":"LIU-Yulong"},"change_message_id":"181738a49601c51f02bc023a0437bfe33bc19e33","unresolved":false,"context_lines":[{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Increase the DB retry interval and max retry times. For those actions"},{"line_number":5,"context_line":"    which have much more DBDeadlock chances, will get a higher success rate"},{"line_number":6,"context_line":"    due to the larger random range and retry times. For more information"},{"line_number":7,"context_line":"    see bug `1777968 \u003chttps://bugs.launchpad.net/neutron/+bug/1777968\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"3f79a3b5_4c96ca41","line":5,"range":{"start_line":5,"start_character":45,"end_line":5,"end_character":53},"in_reply_to":"3f79a3b5_eb48e387","updated":"2018-08-11 09:35:18.000000000","message":"Done","commit_id":"5d19f3adf3545e97f5fddcc7e539ad588383fe6f"}]}
