)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16233,"name":"Mauricio Lima","email":"mauriciolimab@gmail.com","username":"limamauricio"},"change_message_id":"c8b4e491e83192322e1b7d59d880421e63a3814f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     huweihua \u003chuwh@dtdream.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-03-27 17:04:17 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"check mariadb galera status in every loop."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"in extend_start.sh, if Mariadb galera is not ready at first time, it will sleep 60s and then exit 1."},{"line_number":10,"context_line":"we should check it`s status every time in the loop."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ffe62b97_17578a5a","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":42},"updated":"2017-03-28 13:10:45.000000000","message":"Check mariadb galera status in every loop.","commit_id":"f1d143128e8f8840f068f821e8fcf71212a1ba99"},{"author":{"_account_id":16233,"name":"Mauricio Lima","email":"mauriciolimab@gmail.com","username":"limamauricio"},"change_message_id":"c8b4e491e83192322e1b7d59d880421e63a3814f","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"check mariadb galera status in every loop."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"in extend_start.sh, if Mariadb galera is not ready at first time, it will sleep 60s and then exit 1."},{"line_number":10,"context_line":"we should check it`s status every time in the loop."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Change-Id: I89174969687eecbf467ca3cad9aad1bfbfb8c4fe"},{"line_number":13,"context_line":"Closes-Bug: #1676316"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"ffe62b97_977a7aee","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":51},"updated":"2017-03-28 13:10:45.000000000","message":"please, rewrite it and break line, it makes reading better.","commit_id":"f1d143128e8f8840f068f821e8fcf71212a1ba99"}],"docker/mariadb/extend_start.sh":[{"author":{"_account_id":19316,"name":"Eduardo Gonzalez","email":"dabarren@gmail.com","username":"egonzalez90"},"change_message_id":"0021b21f0fa31402202e0799c7b01aff2b632b1a","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":23,"context_line":"        TIMEOUT\u003d${DB_MAX_TIMEOUT:-60}"},{"line_number":24,"context_line":"        while [[ -z \"${CLUSTER_READY}\" ]]; do"},{"line_number":25,"context_line":"            CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":26,"context_line":"            if [[ ${TIMEOUT} -gt 0 ]]; then"},{"line_number":27,"context_line":"                let TIMEOUT-\u003d1"},{"line_number":28,"context_line":"                sleep 1"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ffe62b97_073b0a9c","line":25,"range":{"start_line":25,"start_character":12,"end_line":25,"end_character":25},"updated":"2017-03-27 15:08:12.000000000","message":"I don\u0027t think this check here is needed, as cluster_ready var will be evaluated at each attempt in while loop.","commit_id":"f1d143128e8f8840f068f821e8fcf71212a1ba99"},{"author":{"_account_id":23588,"name":"huwh","email":"huwh@dtdream.com","username":"huwh"},"change_message_id":"e0175c2544157fc7d675985ec9a611ce3960b7d4","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":23,"context_line":"        TIMEOUT\u003d${DB_MAX_TIMEOUT:-60}"},{"line_number":24,"context_line":"        while [[ -z \"${CLUSTER_READY}\" ]]; do"},{"line_number":25,"context_line":"            CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":26,"context_line":"            if [[ ${TIMEOUT} -gt 0 ]]; then"},{"line_number":27,"context_line":"                let TIMEOUT-\u003d1"},{"line_number":28,"context_line":"                sleep 1"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ffe62b97_594684c2","line":25,"range":{"start_line":25,"start_character":12,"end_line":25,"end_character":25},"in_reply_to":"ffe62b97_073b0a9c","updated":"2017-03-28 00:46:01.000000000","message":"without this check, cluster_ready do not change at all. if it is empty, the loop just sleep 60s and then exit 1.","commit_id":"f1d143128e8f8840f068f821e8fcf71212a1ba99"},{"author":{"_account_id":19316,"name":"Eduardo Gonzalez","email":"dabarren@gmail.com","username":"egonzalez90"},"change_message_id":"6d9f7c993ecf63cdb77ac7f9baaaac21301ece3e","unresolved":false,"context_lines":[{"line_number":22,"context_line":"        CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":23,"context_line":"        TIMEOUT\u003d${DB_MAX_TIMEOUT:-60}"},{"line_number":24,"context_line":"        while [[ -z \"${CLUSTER_READY}\" ]]; do"},{"line_number":25,"context_line":"            CLUSTER_READY\u003d$(mysql -u root --exec\u003d\"SHOW STATUS LIKE \u0027wsrep_ready\u0027\" | grep ON)"},{"line_number":26,"context_line":"            if [[ ${TIMEOUT} -gt 0 ]]; then"},{"line_number":27,"context_line":"                let TIMEOUT-\u003d1"},{"line_number":28,"context_line":"                sleep 1"}],"source_content_type":"text/x-sh","patch_set":1,"id":"ffe62b97_affad3b9","line":25,"range":{"start_line":25,"start_character":12,"end_line":25,"end_character":25},"in_reply_to":"ffe62b97_594684c2","updated":"2017-03-28 08:12:35.000000000","message":"yes, you are right","commit_id":"f1d143128e8f8840f068f821e8fcf71212a1ba99"}]}
