Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a Problem
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None
    • Sprint:

      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

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              james.falcon James Falcon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: