We're updating the issue view to help you get more done. 

NoHostAvailable after session initialization

Description

1. python driver was disconnected
2. then we check if all nodes are up (this is test case precondition)
3. then we create new session, using round robin iirc (we enforce it)
4. then we execute stmt and it fails

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15:32:46 2019-08-05 22:32:46,118 with 0 nodes down and rf=3 running write with CL=ONE and expecting OK... 15:32:46 2019-08-05 22:32:46,228 Created new session with DSE Python Driver (2.9.0) in 0.108620882034 seconds 15:32:46 2019-08-05 22:32:46,239 insert into cars(plate, year, model, prod, miles, notes) values (?,?,?,?,?,?); FAILURE with data: ('QTOLJITW-87', 2000, 'Volvo', 2000, 1092, 'HsVNhMNPnRETZLoKpkAFvHyTPJm'): 15:32:46 Traceback (most recent call last): 15:32:46 File "/var/lib/automaton/tests/ndi/cars_table.py", line 103, in insert_data 15:32:46 sess.execute(prep_stmt, row_data, host=node_host_obj) 15:32:46 File "/var/lib/automaton/common/driver/python_driver.py", line 148, in execute_with_list 15:32:46 paging_state=paging_state, execute_as=execute_as, host=host) 15:32:46 File "dse/cluster.py", line 2163, in dse.cluster.Session.execute 15:32:46 return self.execute_async(query, parameters, trace, custom_payload, timeout, execution_profile, paging_state, execute_as, host).result() 15:32:46 File "dse/cluster.py", line 4233, in dse.cluster.ResponseFuture.result 15:32:46 raise self._final_exception 15:32:46 NoHostAvailable: ('Unable to complete the operation against any hosts', {<Host: 10.200.179.154:9042 Solr>: ConnectionException('Host has been marked down or removed',)}) 15:32:46

Adding delay between connect and query and setting wait_for_all_pools=True both seem to workaround the issue.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

James Falcon

Fix versions

None

Labels

None

Reproduced in

None

PM Priority

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Priority

Major