Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing ES Promotion: API Integration Tests.test/api_integration/apis/saved_objects/migrations·ts.apis saved_objects Kibana index migration Coordinates migrations across the Kibana cluster #84438

Closed
mistic opened this issue Nov 26, 2020 · 2 comments · Fixed by #84602
Labels
blocker failed-es-promotion skipped-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.11.0 v8.0.0

Comments

@mistic
Copy link
Member

mistic commented Nov 26, 2020

This failure is preventing the promotion of the current Elasticsearch nightly snapshot.

For more information on the Elasticsearch snapshot promotion process: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html

Stacktrace
Error: expected [ { status: 'skipped', destIndex: undefined },
  { status: 'migrated', destIndex: '.migration-c_2' } ] to sort of equal [ { status: 'migrated', destIndex: '.migration-c_2' },
  { status: 'skipped', destIndex: undefined } ]
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/saved_objects/migrations.ts:316:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16) {
  actual: '[\n' +
    '  {\n' +
    '    "destIndex": [undefined]\n' +
    '    "status": "skipped"\n' +
    '  }\n' +
    '  {\n' +
    '    "destIndex": ".migration-c_2"\n' +
    '    "status": "migrated"\n' +
    '  }\n' +
    ']',
  expected: '[\n' +
    '  {\n' +
    '    "destIndex": ".migration-c_2"\n' +
    '    "status": "migrated"\n' +
    '  }\n' +
    '  {\n' +
    '    "destIndex": [undefined]\n' +
    '    "status": "skipped"\n' +
    '  }\n' +
    ']',
  showDiff: true
}
Standard Output
Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:00:22]           └-: saved_objects
[00:00:22]             └-> "before all" hook
[00:01:26]             └-: Kibana index migration
[00:01:26]               └-> "before all" hook
[00:01:26]               └-> "before all" hook
[00:01:26]               └-> Migrates an existing index that has never been migrated before
[00:01:26]                 └-> "before each" hook: global before each
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] adding template [migration_test_a_template] for index patterns [migration_test_a]
[00:01:26]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] adding template [migration_a_template] for index patterns [.migration-a]
[00:01:26]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] removing template [migration_a_template]
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-a_2]
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a_1] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-a_1]
[00:01:26]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-s-1606419968126992669] 7245 finished with response BulkByScrollResponse[took=13.7ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:26]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a/G0DTkC6ZS_-jNjYpI5nhEg] deleting index
[00:01:26]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a_2/v1iaGXxeSyaFb7Z56o7X4g] update_mapping [_doc]
[00:01:26]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-a_2/v1iaGXxeSyaFb7Z56o7X4g] update_mapping [_doc]
[00:01:26]                 └- ✓ pass  (541ms) "apis saved_objects Kibana index migration Migrates an existing index that has never been migrated before"
[00:01:26]               └-> migrates a previously migrated index, if migrations change
[00:01:26]                 └-> "before each" hook: global before each
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-b_2]
[00:01:26]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_1] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-b_1]
[00:01:26]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-s-1606419968126992669] 7334 finished with response BulkByScrollResponse[took=10.6ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b/QXemW9wBTTOTh27FBZjURg] deleting index
[00:01:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_2/O5dxGMXuQ4a7FIUh1pZheA] update_mapping [_doc]
[00:01:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_2/O5dxGMXuQ4a7FIUh1pZheA] update_mapping [_doc]
[00:01:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_3] creating index, cause [api], templates [], shards [1]/[1]
[00:01:27]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-b_3]
[00:01:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_3/0vCd-KC6TEeUwVBMD70R1w] update_mapping [_doc]
[00:01:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-b_3/0vCd-KC6TEeUwVBMD70R1w] update_mapping [_doc]
[00:01:27]                 └- ✓ pass  (590ms) "apis saved_objects Kibana index migration migrates a previously migrated index, if migrations change"
[00:01:27]               └-> Coordinates migrations across the Kibana cluster
[00:01:27]                 └-> "before each" hook: global before each
[00:01:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-c] creating index, cause [api], templates [], shards [1]/[1]
[00:01:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-c_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:27]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-c_2]
[00:01:27]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-c_1] creating index, cause [api], templates [], shards [1]/[1]
[00:01:27]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] updating number_of_replicas to [0] for indices [.migration-c_1]
[00:01:27]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-s-1606419968126992669] 7460 finished with response BulkByScrollResponse[took=12.9ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-c/rGCu6CClRXGE9h4hz1-vEA] deleting index
[00:01:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-s-1606419968126992669] [.migration-c_2/2ApT8pl7TeaOoMhPKsDgKA] update_mapping [_doc]
[00:01:27]                 └- ✖ fail: apis saved_objects Kibana index migration Coordinates migrations across the Kibana cluster
[00:01:27]                 │       Error: expected [ { status: 'skipped', destIndex: undefined },
[00:01:27]                 │   { status: 'migrated', destIndex: '.migration-c_2' } ] to sort of equal [ { status: 'migrated', destIndex: '.migration-c_2' },
[00:01:27]                 │   { status: 'skipped', destIndex: undefined } ]
[00:01:27]                 │       + expected - actual
[00:01:27]                 │ 
[00:01:27]                 │        [
[00:01:27]                 │          {
[00:01:27]                 │       +    "destIndex": ".migration-c_2"
[00:01:27]                 │       +    "status": "migrated"
[00:01:27]                 │       +  }
[00:01:27]                 │       +  {
[00:01:27]                 │            "destIndex": [undefined]
[00:01:27]                 │            "status": "skipped"
[00:01:27]                 │          }
[00:01:27]                 │       -  {
[00:01:27]                 │       -    "destIndex": ".migration-c_2"
[00:01:27]                 │       -    "status": "migrated"
[00:01:27]                 │       -  }
[00:01:27]                 │        ]
[00:01:27]                 │       
[00:01:27]                 │       at Assertion.assert (packages/kbn-expect/expect.js:100:11)
[00:01:27]                 │       at Assertion.eql (packages/kbn-expect/expect.js:244:8)
[00:01:27]                 │       at Context.<anonymous> (test/api_integration/apis/saved_objects/migrations.ts:316:12)
[00:01:27]                 │       at runMicrotasks (<anonymous>)
[00:01:27]                 │       at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:01:27]                 │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:01:27]                 │ 
[00:01:27]                 │
@mistic mistic added blocker Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc skipped-test failed-es-promotion v7.11.0 labels Nov 26, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

mistic added a commit that referenced this issue Nov 26, 2020
@mistic
Copy link
Member Author

mistic commented Nov 26, 2020

Skipped in order to unblock the snapshot.

master/8.0: 31c1ca0
7.x/7.11: 7dbfd26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-es-promotion skipped-test Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.11.0 v8.0.0
Projects
None yet
2 participants