Closed
Description
In order to make internals testable we need to split to code from Conn.querySystemPeers
into query execution and decision on what to execute, at the end we should end up with:
isSchemaV2
flag onConn
that is initiated on Conn duringConn.init
:
Right nowisSchemaV2
is set inquerySystemPeers
, let's move it to init and do it once.
Please check thatinit()
is called onreconnect
, to ensure that when/if node is updated, driver rereads it as well.- Function
Conn.querySystem
() thatConn.session.usingTimeoutClause
into consideration when executes a query. - Standalone function that takes
Conn
(as interface) and returns same result as querySystemPeers
Metadata
Assignees
Labels
No labels
Activity