Added code to retry the query based on the retry policy. Preferred Datacenter and Preferred Rack settings are used when picking a connection to execute.