Skip to content

Conversation

@joshdover
Copy link
Contributor

Backports the following commits to 7.x:

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Josh Dover <me@joshdover.com>
@joshdover joshdover added the backport This PR is a backport of another PR label Jul 13, 2020
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack Reporting API Integration Tests.x-pack/test/reporting_api_integration/reporting/csv_saved_search·ts.Reporting APIs Generation from Saved Search ID Merge user state into the query for sort

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/71043

[00:00:00]       │
[00:00:00]         └-: Reporting APIs
[00:00:00]           └-> "before all" hook
[00:01:18]           └-: Generation from Saved Search ID
[00:01:18]             └-> "before all" hook
[00:01:56]             └-: Merge user state into the query
[00:01:56]               └-> "before all" hook
[00:01:56]               └-> for query
[00:01:56]                 └-> "before each" hook: global before each
[00:01:56]                 │ info [reporting/scripted_small] Loading "mappings.json"
[00:01:56]                 │ info [reporting/scripted_small] Loading "data.json.gz"
[00:01:56]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:01:57]                 │ info [reporting/scripted_small] Created index ".kibana_1"
[00:01:57]                 │ debg [reporting/scripted_small] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:01:57]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [babynames] creating index, cause [api], templates [], shards [1]/[0]
[00:01:57]                 │ info [reporting/scripted_small] Created index "babynames"
[00:01:57]                 │ debg [reporting/scripted_small] "babynames" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:01:57]                 │ info [reporting/scripted_small] Indexed 100 docs into "babynames"
[00:01:57]                 │ info [reporting/scripted_small] Indexed 8 docs into ".kibana"
[00:01:57]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_1/JrsOOmKnT_Oxj9Fo5b6KNg] update_mapping [_doc]
[00:01:57]                 │ debg Migrating saved objects
[00:01:57]                 │ proc [kibana]   log   [20:42:04.828] [info][savedobjects-service] Creating index .kibana_2.
[00:01:57]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:57]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:57]                 │ proc [kibana]   log   [20:42:04.909] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:57]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2/uUe0qumlRP-B7MN7G35NUA] update_mapping [_doc]
[00:01:57]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2/uUe0qumlRP-B7MN7G35NUA] update_mapping [_doc]
[00:01:57]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2/uUe0qumlRP-B7MN7G35NUA] update_mapping [_doc]
[00:01:57]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2/uUe0qumlRP-B7MN7G35NUA] update_mapping [_doc]
[00:01:57]                 │ proc [kibana]   log   [20:42:05.103] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:57]                 │ proc [kibana]   log   [20:42:05.172] [info][savedobjects-service] Finished in 346ms.
[00:01:57]                 │ proc [kibana]   log   [20:42:05.206] [info][csv_from_savedobject][execute-job][immediate][plugins][reporting][savedobject-csv] Executing job from Immediate API using request context
[00:01:58]                 │ proc [kibana]   log   [20:42:05.910] [info][plugins][reporting][savedobject-csv] Job output size: 127 bytes
[00:01:58]                 │ info [reporting/scripted_small] Unloading indices from "mappings.json"
[00:01:58]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_1/JrsOOmKnT_Oxj9Fo5b6KNg] deleting index
[00:01:58]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana_2/uUe0qumlRP-B7MN7G35NUA] deleting index
[00:01:58]                 │ info [reporting/scripted_small] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:58]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [babynames/L3V3SImrTzO_3VBCbt6seg] deleting index
[00:01:58]                 │ info [reporting/scripted_small] Deleted existing index "babynames"
[00:01:58]                 │ info [reporting/scripted_small] Unloading indices from "data.json.gz"
[00:01:58]                 └- ✓ pass  (1.5s) "Reporting APIs Generation from Saved Search ID Merge user state into the query for query"
[00:01:58]               └-> for sort
[00:01:58]                 └-> "before each" hook: global before each
[00:01:58]                 │ info [reporting/hugedata] Loading "mappings.json"
[00:01:58]                 │ info [reporting/hugedata] Loading "data.json.gz"
[00:01:58]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594668819916554222] [.kibana] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:01:58]                 └- ✖ fail: Reporting APIs Generation from Saved Search ID Merge user state into the query for sort
[00:01:58]                 │      Error: [invalid_alias_name_exception] Invalid alias name [.kibana], an index exists with the same name as the alias, with { index_uuid="cKPq2WQYRfONLHK-Cr4z9w" & index=".kibana" }
[00:01:58]                 │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:01:58]                 │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:01:58]                 │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:01:58]                 │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4929:19)
[00:01:58]                 │       at endReadableNT (_stream_readable.js:1145:12)
[00:01:58]                 │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:01:58]                 │ 
[00:01:58]                 │ 

Stack Trace

{ Error: [invalid_alias_name_exception] Invalid alias name [.kibana], an index exists with the same name as the alias, with { index_uuid="cKPq2WQYRfONLHK-Cr4z9w" & index=".kibana" }
    at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4929:19)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  status: 400,
  displayName: 'BadRequest',
  message:
   '[invalid_alias_name_exception] Invalid alias name [.kibana], an index exists with the same name as the alias, with { index_uuid="cKPq2WQYRfONLHK-Cr4z9w" & index=".kibana" }',
  path: '/.kibana_1',
  query: { include_type_name: false },
  body:
   { error:
      { root_cause: [Array],
        type: 'invalid_alias_name_exception',
        reason:
         'Invalid alias name [.kibana], an index exists with the same name as the alias',
        index_uuid: 'cKPq2WQYRfONLHK-Cr4z9w',
        index: '.kibana' },
     status: 400 },
  statusCode: 400,
  response:
   '{"error":{"root_cause":[{"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana], an index exists with the same name as the alias","index_uuid":"cKPq2WQYRfONLHK-Cr4z9w","index":".kibana"}],"type":"invalid_alias_name_exception","reason":"Invalid alias name [.kibana], an index exists with the same name as the alias","index_uuid":"cKPq2WQYRfONLHK-Cr4z9w","index":".kibana"},"status":400}',
  toString: [Function],
  toJSON: [Function] }

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@joshdover joshdover merged commit 3c7a9e1 into elastic:7.x Jul 13, 2020
@joshdover joshdover deleted the backport/7.x/pr-70775 branch July 13, 2020 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants