You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/05/01 15:52:04 UTC

[GitHub] [trafficcontrol] jhowell-comcast opened a new issue #3536: TO: WIll not recognize RIAK servers as available when server state set to REPORTED instead of ONLINE

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:
users@infra.apache.org


With regards,
Apache Git Services