Uploaded image for project: 'Couchbase Elasticsearch Connector'
  1. Couchbase Elasticsearch Connector
  2. CBES-18

AttributeError thrown sometimes during setup

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • None
    • None
    • Security Level: Public
    • None

    Description

      Seeing this error in topology tests where a test is aborted because of the following exception thrown while attempting to shutdown an es instance:

      ERROR: test_topology (xdcr.esXDCR.ESTests)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "pytests/xdcr/esXDCR.py", line 13, in setUp
      super(ESTests, self).setUp()
      File "pytests/xdcr/xdcrbasetests.py", line 87, in setUp
      self._cleanup_previous_setup()
      File "pytests/xdcr/xdcrbasetests.py", line 202, in _cleanup_previous_setup
      self._do_cleanup()
      File "pytests/xdcr/xdcrbasetests.py", line 424, in _do_cleanup
      ClusterOperationHelper.cleanup_cluster([node], self)
      File "lib/membase/helper/cluster_helper.py", line 258, in cleanup_cluster
      wait_for_rebalance=wait_for_rebalance)
      File "lib/membase/api/rest_client.py", line 87, in remove_nodes
      self.rest.rebalance(knownNodes, ejectedNodes)
      File "lib/membase/api/esrest_client.py", line 349, in rebalance
      self.eject_node(node)
      File "lib/membase/api/esrest_client.py", line 352, in eject_node
      api = "http://%s:%s/_cluster/nodes/%s/_shutdown" % (node.ip, node.ht_port, node.key)
      AttributeError: 'ESNode' object has no attribute 'ht_port'

      perhaps this node was already shutdown.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tommie Tommie McAfee (Inactive)
            tommie Tommie McAfee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty