Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-26843

[MoveIndex] Wrong error message:GSI AlterIndex() - cause: Unable to find Index service for destination.

    XMLWordPrintable

Details

    • Untriaged
    • No

    Description

      1. Run the aggregate index rqg job:

      ./testrunner.py -i ${resource_tuq} -p gsi_type=${gsi_type} -t rqg.test_rqg.RQGTests.test_rqg_concurrent_with_secondary,test_file_path=b/resources/rqg/simple_table_db/query_tests_using_templates/query_50000_aggregate_functions.txt.zip,database=simple_table_db,reset_database=True,concurreny_count=5,index_quota_percent=30,password=password,use_mysql=True,replicas=0,run_query_with_secondary=True,run_explain_with_hints=True,total_queries=1000,record_failure=True,check_covering_index=True,failure_record_path=/tmp,skip_cleanup=${skip_cleanup},ram_quota=10000,indexer_memQuota=1000
      

      This test creates 374 indexes. Some of them are created in batches using defer_build=true.
      Then these indexes are used in queries.
      This test works fine as it is.

      2. Pick an index which got created fully and is showing as ready in index tab, alter it using:
      ALTER INDEX simple_table_db_3116_simple_table.simple_table_expression_based_1073 WITH

      {"action":"move","nodes": ["172.23.107.133:8091"]}

      ;

      Here 172.23.107.133 is not part of the cluster but it does have the index service running on it.

      But alter index reports this error:

      [
        {
          "code": 5000,
          "msg": "GSI AlterIndex() - cause: Unable to find Index service for destination 172.23.107.133:8091",
          "query_from_user": "ALTER INDEX simple_table_db_3116_simple_table.simple_table_expression_based_1073 WITH {\"action\":\"move\",\"nodes\": [\"172.23.107.133:8091\"]};"
        }
      ]
      
      

      4. Same error is seen when I pick an index which is in created state and not in ready state.

      Attaching logs.

      Attachments

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

        Activity

          People

            prathibha Prathibha Bisarahalli (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty