)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1865,"name":"Andrea Rosa","email":"andrea.rosa@gmail.com","username":"andrea-rosa-m"},"change_message_id":"b638f585b01aa1640cf1d8c1b794ec5f027170cc","unresolved":false,"context_lines":[{"line_number":12,"context_line":"have enabled options to be mutated at runtime, now we need to do the"},{"line_number":13,"context_line":"same for logging config."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"After investigating and writing the patch"},{"line_number":16,"context_line":"I8ca8e6b4e9218f3a2edaf9ecf53653d829bc0c12 I don\u0027t know if this really"},{"line_number":17,"context_line":"needs a spec? It turned out quite simple. Still, leaving it up for"},{"line_number":18,"context_line":"now."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Change-Id: Ifee9aa74fd1c540b199ad7c0af761c8b1df8be14"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1af94dfe_d71c69c3","line":18,"range":{"start_line":15,"start_character":0,"end_line":18,"end_character":4},"updated":"2016-03-17 11:19:05.000000000","message":"if that patch land and if I got it correctly what\u0027s left here is just to write the code to manage the SIGUP signals and that probably doesn\u0027t require a spec","commit_id":"6e3567f711d5ba333f767f71f8ad0560621057cc"}],"specs/newton/mutable-logging-config.rst":[{"author":{"_account_id":1865,"name":"Andrea Rosa","email":"andrea.rosa@gmail.com","username":"andrea-rosa-m"},"change_message_id":"d3e43fe9097192b16c33abdae62472f4a6752c1f","unresolved":false,"context_lines":[{"line_number":36,"context_line":"of the file it points to changes."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"This will be achieved by calling fileConfig for a second time. With"},{"line_number":39,"context_line":"disable_existing_loggers\u003dFalse this appears to work nicely. Internally it takes"},{"line_number":40,"context_line":"a lock so either the old or new config applies to any one log message, never a"},{"line_number":41,"context_line":"mix. Loggers created before the reload continue to work, with new levels,"},{"line_number":42,"context_line":"handlers and formatters if so configured."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1af94dfe_6ee16d9a","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":24},"updated":"2016-03-16 16:18:09.000000000","message":"where does this come from? it is not clear how that value is relevant to this spec.","commit_id":"e4f09f46391f38be7f74492fb50a7870ebeb198e"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"ebc5a32367f3b91dd77ae6ac1ae5d1f1bfafc7d4","unresolved":false,"context_lines":[{"line_number":36,"context_line":"of the file it points to changes."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"This will be achieved by calling fileConfig for a second time. With"},{"line_number":39,"context_line":"disable_existing_loggers\u003dFalse this appears to work nicely. Internally it takes"},{"line_number":40,"context_line":"a lock so either the old or new config applies to any one log message, never a"},{"line_number":41,"context_line":"mix. Loggers created before the reload continue to work, with new levels,"},{"line_number":42,"context_line":"handlers and formatters if so configured."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1af94dfe_f4ca6ca0","line":39,"range":{"start_line":39,"start_character":0,"end_line":39,"end_character":24},"in_reply_to":"1af94dfe_6ee16d9a","updated":"2016-03-16 16:30:46.000000000","message":"Removed mention of this - I don\u0027t think it adds anything to the spec","commit_id":"e4f09f46391f38be7f74492fb50a7870ebeb198e"},{"author":{"_account_id":1865,"name":"Andrea Rosa","email":"andrea.rosa@gmail.com","username":"andrea-rosa-m"},"change_message_id":"d3e43fe9097192b16c33abdae62472f4a6752c1f","unresolved":false,"context_lines":[{"line_number":44,"context_line":"Alternatives"},{"line_number":45,"context_line":"------------"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"We could simply reload logging config every time. This would be simpler and"},{"line_number":48,"context_line":"presumably SIGHUP is sent rarely enough that the performance hit would be"},{"line_number":49,"context_line":"negligible."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"We could use EG SIGUSR1, SIGUSR2, but there are a very limited number of"},{"line_number":52,"context_line":"signals and it seems wasteful to use an additional one for such a similar"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1af94dfe_f9ca65a0","line":49,"range":{"start_line":47,"start_character":0,"end_line":49,"end_character":11},"updated":"2016-03-16 16:18:09.000000000","message":"as you put it, I read this alternative as a valid one, can you explain a bit more what are the weakness of this alternative compared to the new proposal?","commit_id":"e4f09f46391f38be7f74492fb50a7870ebeb198e"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"ebc5a32367f3b91dd77ae6ac1ae5d1f1bfafc7d4","unresolved":false,"context_lines":[{"line_number":44,"context_line":"Alternatives"},{"line_number":45,"context_line":"------------"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"We could simply reload logging config every time. This would be simpler and"},{"line_number":48,"context_line":"presumably SIGHUP is sent rarely enough that the performance hit would be"},{"line_number":49,"context_line":"negligible."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"We could use EG SIGUSR1, SIGUSR2, but there are a very limited number of"},{"line_number":52,"context_line":"signals and it seems wasteful to use an additional one for such a similar"}],"source_content_type":"text/x-rst","patch_set":2,"id":"1af94dfe_b40584c3","line":49,"range":{"start_line":47,"start_character":0,"end_line":49,"end_character":11},"in_reply_to":"1af94dfe_f9ca65a0","updated":"2016-03-16 16:30:46.000000000","message":"I\u0027m looking for feedback, I\u0027d be happy with either solution. I\u0027ll try and come up with some strawman counterargument.","commit_id":"e4f09f46391f38be7f74492fb50a7870ebeb198e"}],"specs/newton/reconfigurable-oslo-logging.rst":[{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"804476cbec08827cdb658e8b5da282d7d5912c5d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"-------------"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Currently the \u0027logging\u0027 module is initialised before eventlet is monkeypatched."},{"line_number":33,"context_line":"As part of this it creates a \u0027threading.RLock\u0027 to serialise reconfiguration."},{"line_number":34,"context_line":"\u0027threading\u0027 locks are unsafe for use in an eventlet environment."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Eventlet advises monkeypatching be applied as soon as possible. Why aren\u0027t we"}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_7b144d9f","line":33,"updated":"2016-03-23 12:10:27.000000000","message":"s/serialise/serialize/","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"0e8a04cd4f48b8e13cf648faeb281b36c3a57592","unresolved":false,"context_lines":[{"line_number":30,"context_line":"-------------"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Currently the \u0027logging\u0027 module is initialised before eventlet is monkeypatched."},{"line_number":33,"context_line":"As part of this it creates a \u0027threading.RLock\u0027 to serialise reconfiguration."},{"line_number":34,"context_line":"\u0027threading\u0027 locks are unsafe for use in an eventlet environment."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Eventlet advises monkeypatching be applied as soon as possible. Why aren\u0027t we"}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_fb4812b5","line":33,"in_reply_to":"fa0719c6_7b144d9f","updated":"2016-03-24 17:52:09.000000000","message":"I\u0027m British and a couple hundred years ago we decided to make English more interesting by Francifying some of our spellings. You\u0027re welcome!","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"804476cbec08827cdb658e8b5da282d7d5912c5d","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Currently the \u0027logging\u0027 module is initialised before eventlet is monkeypatched."},{"line_number":33,"context_line":"As part of this it creates a \u0027threading.RLock\u0027 to serialise reconfiguration."},{"line_number":34,"context_line":"\u0027threading\u0027 locks are unsafe for use in an eventlet environment."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Eventlet advises monkeypatching be applied as soon as possible. Why aren\u0027t we"},{"line_number":37,"context_line":"doing this? We need to know whether to use eventlet. For example, Keystone can"}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_bb58a58b","line":34,"updated":"2016-03-23 12:10:27.000000000","message":"Add that it 100% locks on first re-entry in the same thread but in different green thread.","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"0e8a04cd4f48b8e13cf648faeb281b36c3a57592","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"Currently the \u0027logging\u0027 module is initialised before eventlet is monkeypatched."},{"line_number":33,"context_line":"As part of this it creates a \u0027threading.RLock\u0027 to serialise reconfiguration."},{"line_number":34,"context_line":"\u0027threading\u0027 locks are unsafe for use in an eventlet environment."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"Eventlet advises monkeypatching be applied as soon as possible. Why aren\u0027t we"},{"line_number":37,"context_line":"doing this? We need to know whether to use eventlet. For example, Keystone can"}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_db570e56","line":34,"in_reply_to":"fa0719c6_bb58a58b","updated":"2016-03-24 17:52:09.000000000","message":"I did some testing on this: https://gist.github.com/lxsli/9d2458834e13ad0f5e25\n\nYou\u0027re right that an RLock blocks in this scenario. This is true whether the RLock was created before or after monkeypatching. It seems that this is expected not unsafe behaviour? Please check the gist and ensure I haven\u0027t made a mistake in testing!","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"804476cbec08827cdb658e8b5da282d7d5912c5d","unresolved":false,"context_lines":[{"line_number":44,"context_line":"block forever. Greenthreads all run within a single native thread, so if a"},{"line_number":45,"context_line":"greenthread yields while it holds a Lock and another greenthread attempts to"},{"line_number":46,"context_line":"acquire it, the single native thread will block and the entire process will"},{"line_number":47,"context_line":"freeze."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"An RLock can be taken by a native thread multiple times so it will not freeze"},{"line_number":50,"context_line":"in the above scenario. However this also means two greenthreads can freely"}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_5e2df793","line":47,"updated":"2016-03-23 12:10:27.000000000","message":"Not exactly.\n\nRLock is used to allow reentrant lock: for example, when logging is performed inside the critical section (it\u0027s possible).\nUnpatched RLock actually is reentrant, but for the same thread.\nThe question \"if this thread is the same?\" is answered by comparing thread identifiers returned by a function, that just got patched and therefore returns different IDs for different green threads.\n\nThat\u0027s it.","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"0e8a04cd4f48b8e13cf648faeb281b36c3a57592","unresolved":false,"context_lines":[{"line_number":44,"context_line":"block forever. Greenthreads all run within a single native thread, so if a"},{"line_number":45,"context_line":"greenthread yields while it holds a Lock and another greenthread attempts to"},{"line_number":46,"context_line":"acquire it, the single native thread will block and the entire process will"},{"line_number":47,"context_line":"freeze."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"An RLock can be taken by a native thread multiple times so it will not freeze"},{"line_number":50,"context_line":"in the above scenario. However this also means two greenthreads can freely"}],"source_content_type":"text/x-rst","patch_set":8,"id":"da0c15f0_02573003","line":47,"in_reply_to":"fa0719c6_5e2df793","updated":"2016-03-24 17:52:09.000000000","message":"Did you mean to comment on the next para? I\u0027ll respond further after we\u0027ve discussed the other point.","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"804476cbec08827cdb658e8b5da282d7d5912c5d","unresolved":false,"context_lines":[{"line_number":55,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":58,"context_line":"global lock containing an eventlet.green.threading.RLock."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Mutable config is triggered by SIGHUP. The first time we get this, if the"},{"line_number":61,"context_line":"world has been greened, we will replace logging._lock with our green lock."}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_61dada4d","line":58,"updated":"2016-03-23 12:10:27.000000000","message":"What if the app doesn\u0027t use eventlet then?","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":1865,"name":"Andrea Rosa","email":"andrea.rosa@gmail.com","username":"andrea-rosa-m"},"change_message_id":"878fb0ec21810461f1a91a895d727f2c3285dd0d","unresolved":false,"context_lines":[{"line_number":55,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":58,"context_line":"global lock containing an eventlet.green.threading.RLock."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Mutable config is triggered by SIGHUP. The first time we get this, if the"},{"line_number":61,"context_line":"world has been greened, we will replace logging._lock with our green lock."}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_f5cd0186","line":58,"in_reply_to":"fa0719c6_61dada4d","updated":"2016-03-23 13:47:44.000000000","message":"is the line #64 answers your question?","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"804476cbec08827cdb658e8b5da282d7d5912c5d","unresolved":false,"context_lines":[{"line_number":57,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":58,"context_line":"global lock containing an eventlet.green.threading.RLock."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Mutable config is triggered by SIGHUP. The first time we get this, if the"},{"line_number":61,"context_line":"world has been greened, we will replace logging._lock with our green lock."},{"line_number":62,"context_line":"There is no need to take the lock first as a green world implies a cooperative"},{"line_number":63,"context_line":"yielding model, IE we cannot be interrupted unless we do network IO or yield."}],"source_content_type":"text/x-rst","patch_set":8,"id":"fa0719c6_a138723e","line":60,"updated":"2016-03-23 12:10:27.000000000","message":"This should be managed by the application, oslo is just to provide a way to reconfigure.\n\nIn case of logging recreating logging handlers is just what\u0027s needed.\n\nI\u0027d suggest adding a call that does it and that\u0027s it.","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"0e8a04cd4f48b8e13cf648faeb281b36c3a57592","unresolved":false,"context_lines":[{"line_number":57,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":58,"context_line":"global lock containing an eventlet.green.threading.RLock."},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"Mutable config is triggered by SIGHUP. The first time we get this, if the"},{"line_number":61,"context_line":"world has been greened, we will replace logging._lock with our green lock."},{"line_number":62,"context_line":"There is no need to take the lock first as a green world implies a cooperative"},{"line_number":63,"context_line":"yielding model, IE we cannot be interrupted unless we do network IO or yield."}],"source_content_type":"text/x-rst","patch_set":8,"id":"da0c15f0_026e10c9","line":60,"in_reply_to":"fa0719c6_a138723e","updated":"2016-03-24 17:52:09.000000000","message":"I\u0027ve made the wording more specific here.","commit_id":"aef911d74822988d4cca815a7765fd00e1720dcb"},{"author":{"_account_id":13055,"name":"Alexander Makarov","email":"ajiekcahdp.makapob@gmail.com","username":"amakarov"},"change_message_id":"ddecd24667279544eb32aaae873f24b8b3ab70ff","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Proposed change"},{"line_number":54,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":57,"context_line":"global LOCK containing an eventlet.green.threading.RLock. Otherwise, assume a"},{"line_number":58,"context_line":"non-eventlet environment and leave LOCK set to None."},{"line_number":59,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"ba0121b8_926b9e84","line":56,"range":{"start_line":56,"start_character":27,"end_line":56,"end_character":49},"updated":"2016-04-01 14:51:37.000000000","message":"eventlet is not the only solution to make things green, so if it is not installed and, say, gevent is used - it will not work.","commit_id":"866d1b3cb5d059a6ee81126aee0537fbeb9f1d13"},{"author":{"_account_id":1297,"name":"Joshua Harlow","email":"jxharlow@godaddy.com","username":"harlowja"},"change_message_id":"065011e5b2534b536e746082010f7e1c67456ede","unresolved":false,"context_lines":[{"line_number":53,"context_line":"Proposed change"},{"line_number":54,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"When oslo.log is imported, try to import eventlet. If this succeeds, create a"},{"line_number":57,"context_line":"global LOCK containing an eventlet.green.threading.RLock. Otherwise, assume a"},{"line_number":58,"context_line":"non-eventlet environment and leave LOCK set to None."},{"line_number":59,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"9a061dce_ead98158","line":56,"range":{"start_line":56,"start_character":27,"end_line":56,"end_character":49},"in_reply_to":"ba0121b8_926b9e84","updated":"2016-04-07 05:49:53.000000000","message":"Is there a project in openstack that is using gevent?","commit_id":"866d1b3cb5d059a6ee81126aee0537fbeb9f1d13"}]}
