jhowell-comcast opened a new issue #3536: TO: WIll not recognize RIAK servers 
as available when server state set to REPORTED instead of ONLINE
URL: https://github.com/apache/trafficcontrol/issues/3536
 
 
   in: 
   // GetRiakServers returns the riak servers from the database. The riakPort 
may be nil, in which case the default port is returned.
   func GetRiakServers(tx *sql.Tx, riakPort *uint) ([]ServerAddr, error) {
        rows, err := tx.Query(`
   SELECT CONCAT(s.host_name, '.', s.domain_name) FROM server s
   JOIN type t ON s.type = t.id
   JOIN status st ON s.status = st.id
   WHERE t.name = 'RIAK' AND st.name = 'ONLINE'
   `)
   
   If the RIAK server is set to REPORTED, TO will treat it as offline. If 
there's only a single RIAK node in the setup, this will cause all keystore 
activities to fail with a nil server set returned. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to