synchronous_reader: Either the code or documentation is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.db |
Fix Released
|
High
|
Mike Bayer |
Bug Description
Line https:/
""" :param synchronous_reader: whether or not to assume a "reader" context
needs to guarantee it can read data committed by a "writer" assuming
@reader context works the same as @async_reader and will select
the "slave" database if present.
"""
According to code
https:/
When synchronous_reader or _ASYNC_READER set to True it uses the reader, but the documentation describes opposite.
Please clarify how this is supposed to work and how an operator is supposed to set synchronous_reader to False from configuration (nova doesn't seem to have anything related to synchronous_reader)
Changed in oslo.db: | |
importance: | Undecided → High |
code is wrong. All of the intent for synchronous_reader throughout enginefacade as well as in the test code in test_enginefacade needs to have the role of synchronous_reader reversed. it is written as though it means to say "asynchronous_ reader" , which might have been a better name for this field.