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

[ML] Update cloning for jobs to use exclude_generated #88898

Merged
merged 21 commits into from
Feb 1, 2021

Conversation

qn895
Copy link
Member

@qn895 qn895 commented Jan 20, 2021

Summary

This PR addresses #79281. It adds a exclude_generated flag when fetching data when cloning an Anomaly Detection job or a Data Frame Analytics job.

@qn895 qn895 added :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Data Frame Analytics ML data frame analytics features v7.12.0 labels Jan 20, 2021
@qn895 qn895 self-assigned this Jan 20, 2021
@qn895 qn895 requested a review from a team as a code owner January 20, 2021 19:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson peteharverson changed the title [ML] Update cloning for ad jobs to use exclude_generated [ML] Update cloning for anomaly detection jobs to use exclude_generated Jan 21, 2021
jobs(jobIds: string[]) {
const body = JSON.stringify({ jobIds });
jobs(jobIds: string[], excludeGenerated?: boolean) {
const body = JSON.stringify({ jobIds, excludeGenerated });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as excludeGenerated could be undefined, it should be optionally added to the body

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed here as it's no longer needed
e9ad8f1

const analyticsIdString = analyticsId !== undefined ? `/${analyticsId}` : '';
return http<GetDataFrameAnalyticsResponse>({
path: `${basePath()}/data_frame/analytics${analyticsIdString}`,
method: 'GET',
query: { excludeGenerated },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excludeGenerated shouldn't be added to the query if it is undefined

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed here as it's no longer needed
e9ad8f1

@@ -42,6 +42,7 @@ export const forceStartDatafeedSchema = schema.object({
export const jobIdsSchema = schema.object({
/** Optional list of job IDs. */
jobIds: schema.maybe(schema.arrayOf(schema.maybe(schema.string()))),
excludeGenerated: schema.maybe(schema.boolean()),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should also be added to the datafeeds schema

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this here as it's no longer needed
e9ad8f1

const job = await loadFullJob(jobId);
if (job.custom_settings && job.custom_settings.created_by) {
const [cloneableJob, originalJob] = await Promise.all([
loadFullJob(jobId, true),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loadFullJob shouldn't be used here anymore as it adds job and datafeed stats to the job object.
The job and datafeed should be loaded directly from es. Ideally they would also not be combined and we would have a separate datafeed object in tempJobCloningObjects. but if that has unexpected side effects we can continue to combine them into a CombinedJob.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated added a new method called loadJobForExport which will only get the CombinedJob with datafeed and the job config with exclude_generated: true. I also tried fetching them separately but encountered some side effects with the wizard behaving unpredictably, but if that's still the preferred method I can revert the change to do that instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this to getJobForCloning which will return them separately with exclude_generated to always be true.

loadFullJob(jobId, true),
loadFullJob(jobId, false),
]);
if (cloneableJob.custom_settings && originalJob?.custom_settings?.created_by) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if custom_settings does not exist in cloneableJob this entire block will be skipped.
To be safe we should only check for originalJob?.custom_settings?.created_by and then create cloneableJob.custom_settings if it doesn't exist.

const tempJob = cloneDeep(job);

// remove all of the items which should not be copied
// such as counts, state and times
delete tempJob.state;
delete tempJob.job_version;
delete tempJob.calendars;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

none of these deletes should be needed, this should be solved by not using loadFullJob when loading the job for cloning.
The same goes for the datafeed below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this cloneJob utility completely now 9f446c2#diff-bfe918c1ce7b408b4f1552aa1cf94e37bea099c0b11f239abd55e7567bfc5eccR76 as the new getJobForCloning service no longer includes these.

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and functionality all looks good. Just left some comments on the code.

* @apiGroup JobService
*
* @api {post} /api/ml/jobs/job_for_cloning Get job for cloning
* @apiName GetJobForCloning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetJobForCloning needs to be added to ml/server/routes/apidoc.json too, so that API docs are generated for this new endpoint.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here a1fb963

@qn895 qn895 changed the title [ML] Update cloning for anomaly detection jobs to use exclude_generated [ML] Update cloning for jobs to use exclude_generated Jan 27, 2021
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested latest edits and LGTM. Just need to add the new route to apidoc.json.

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested DFA functionality and code LGTM ⚡

if (Array.isArray(datafeedsResults)) {
if (datafeedsResults.length === 1) {
const datafeed = datafeedsResults[0];
if (datafeed.job_id === jobId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the job id doesn't match, this should load all of the datafeeds to find one that does.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here 6ea5508

// if the job was doesn't use the standard datafeedId format
// get all the datafeeds and match it with the jobId
const {
body: { datafeeds: allDatafeedsResults },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, i think the variable name allDatafeedsResults is unnecessary

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here 6ea5508

datafeed = datafeedResults?.datafeeds[0];
}

// create jobs objects containing job stats, datafeeds, datafeed stats and calendars
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this comment has been copied from somewhere else.
the check below to find the job could be the same as the datafeed check above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here 6ea5508

if (jobResults && jobResults.jobs) {
const job = jobResults.jobs.find((j) => j.job_id === jobId);
if (job && datafeed) {
return { job, datafeed };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a chance that the datafeed for a job can be missing.
I think this should always return an object, but with job and datafeed possibly being undefined

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here 6ea5508

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts.alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: alerting api integration security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:04:00]           └-: Alerts
[00:04:00]             └-> "before all" hook
[00:04:00]             └-: legacy alerts
[00:04:00]               └-> "before all" hook
[00:04:00]               └-: alerts
[00:04:00]                 └-> "before all" hook
[00:04:00]                 └-> "before all" hook
[00:04:00]                   │ info [alerts_legacy] Loading "mappings.json"
[00:04:00]                   │ info [alerts_legacy] Loading "data.json"
[00:04:00]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_001/GlJEWdjnTPGIxGoMSz3s7A] deleting index
[00:04:00]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/uWQ14H8XQVGRZoD2lYplcg] deleting index
[00:04:00]                   │ info [alerts_legacy] Deleted existing index [".kibana_8.0.0_001",".kibana_task_manager_8.0.0_001"]
[00:04:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:00]                   │ info [alerts_legacy] Created index ".kibana_1"
[00:04:00]                   │ debg [alerts_legacy] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_1] creating index, cause [api], templates [], shards [1]/[0]
[00:04:00]                   │ info [alerts_legacy] Created index ".kibana_task_manager_1"
[00:04:00]                   │ debg [alerts_legacy] ".kibana_task_manager_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:04:00]                   │ info [alerts_legacy] Indexed 6 docs into ".kibana_1"
[00:04:00]                   │ info [alerts_legacy] Indexed 5 docs into ".kibana_task_manager_1"
[00:04:00]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_1/en8DPen8RW2bXMqabWN9yQ] update_mapping [_doc]
[00:04:00]                   │ debg Migrating saved objects
[00:04:00]                   │ proc [kibana]   log   [17:13:51.039] [info][savedobjects-service] [.kibana_task_manager] INIT -> SET_SOURCE_WRITE_BLOCK
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] adding block write to indices [[.kibana_task_manager_1/uTI5LAGzSDu_V7yzpW8tPg]]
[00:04:00]                   │ proc [kibana]   log   [17:13:51.051] [info][savedobjects-service] [.kibana] INIT -> SET_SOURCE_WRITE_BLOCK
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] adding block write to indices [[.kibana_1/en8DPen8RW2bXMqabWN9yQ]]
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] completed adding block write to indices [.kibana_task_manager_1]
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] completed adding block write to indices [.kibana_1]
[00:04:00]                   │ proc [kibana]   log   [17:13:51.126] [info][savedobjects-service] [.kibana_task_manager] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:04:00]                   │ proc [kibana]   log   [17:13:51.144] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:04:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:00]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:04:00]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:04:00]                   │ proc [kibana]   log   [17:13:51.236] [info][savedobjects-service] [.kibana_task_manager] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:04:00]                   │ proc [kibana]   log   [17:13:51.240] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:04:00]                   │ proc [kibana]   log   [17:13:51.254] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:04:00]                   │ proc [kibana]   log   [17:13:51.256] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:04:00]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_reindex_temp/CzHYiWt3SUSQtbQTtaJAwA] update_mapping [_doc]
[00:04:00]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_reindex_temp/vzFBvTr-SquH57HDTV8hJA] update_mapping [_doc]
[00:04:00]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:04:00]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] updating number_of_replicas to [0] for indices [.tasks]
[00:04:00]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] 11631 finished with response BulkByScrollResponse[took=45.4ms,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:04:00]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] 11630 finished with response BulkByScrollResponse[took=139.9ms,timed_out=false,sliceId=null,updated=0,created=6,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:00]                   │ proc [kibana]   log   [17:13:51.469] [info][savedobjects-service] [.kibana_task_manager] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] adding block write to indices [[.kibana_task_manager_8.0.0_reindex_temp/CzHYiWt3SUSQtbQTtaJAwA]]
[00:04:00]                   │ proc [kibana]   log   [17:13:51.474] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] adding block write to indices [[.kibana_8.0.0_reindex_temp/vzFBvTr-SquH57HDTV8hJA]]
[00:04:00]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] completed adding block write to indices [.kibana_task_manager_8.0.0_reindex_temp]
[00:04:01]                   │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:04:01]                   │ proc [kibana]   log   [17:13:51.537] [info][savedobjects-service] [.kibana_task_manager] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] applying create index request using existing index [.kibana_task_manager_8.0.0_reindex_temp] metadata
[00:04:01]                   │ proc [kibana]   log   [17:13:51.555] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:01]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:04:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:04:01]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:04:01]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_001/O3HI0tfARaG0YXJaYyX-Tg] create_mapping
[00:04:01]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/OfOwSE47Su6yBoCK1U_42w] create_mapping
[00:04:01]                   │ proc [kibana]   log   [17:13:51.709] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:04:01]                   │ proc [kibana]   log   [17:13:51.724] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM
[00:04:01]                   │ proc [kibana]   log   [17:13:51.766] [info][savedobjects-service] [.kibana_task_manager] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:04:01]                   │ proc [kibana]   log   [17:13:51.805] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:04:01]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_001/O3HI0tfARaG0YXJaYyX-Tg] update_mapping [_doc]
[00:04:01]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] 11733 finished with response BulkByScrollResponse[took=20.7ms,timed_out=false,sliceId=null,updated=5,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:01]                   │ proc [kibana]   log   [17:13:51.882] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:04:01]                   │ proc [kibana]   log   [17:13:51.921] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:04:01]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/OfOwSE47Su6yBoCK1U_42w] update_mapping [_doc]
[00:04:01]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_task_manager_8.0.0_reindex_temp/CzHYiWt3SUSQtbQTtaJAwA] deleting index
[00:04:01]                   │ proc [kibana]   log   [17:13:51.983] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:04:01]                   │ proc [kibana]   log   [17:13:51.984] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 955ms
[00:04:02]                   │ proc [kibana]   log   [17:13:52.624] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH
[00:04:02]                   │ proc [kibana]   log   [17:13:52.635] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:04:02]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/OfOwSE47Su6yBoCK1U_42w] update_mapping [_doc]
[00:04:02]                   │ proc [kibana]   log   [17:13:52.708] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:04:02]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] 11789 finished with response BulkByScrollResponse[took=30.3ms,timed_out=false,sliceId=null,updated=6,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:04:02]                   │ proc [kibana]   log   [17:13:52.746] [info][eventLog][plugins] event logged: {"@timestamp":"2021-02-01T17:13:52.741Z","event":{"provider":"alerting","action":"execute","start":"2021-02-01T17:13:52.741Z","end":"2021-02-01T17:13:52.745Z","duration":4000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"d41a6abb-b93b-46df-a80a-926221ea847c","namespace":"space1"}],"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"error":{"message":"Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found"},"message":"test.always-firing:d41a6abb-b93b-46df-a80a-926221ea847c: execution failed","ecs":{"version":"1.6.0"}}
[00:04:02]                   │ proc [kibana]   log   [17:13:52.749] [info][eventLog][plugins] event logged: {"@timestamp":"2021-02-01T17:13:52.741Z","event":{"provider":"alerting","action":"execute","start":"2021-02-01T17:13:52.741Z","end":"2021-02-01T17:13:52.748Z","duration":7000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"5cc59319-74ee-4edc-8646-a79ea91067cd","namespace":"space1"}],"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"error":{"message":"Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found"},"message":"test.always-firing:5cc59319-74ee-4edc-8646-a79ea91067cd: execution failed","ecs":{"version":"1.6.0"}}
[00:04:02]                   │ proc [kibana]   log   [17:13:52.751] [info][eventLog][plugins] event logged: {"@timestamp":"2021-02-01T17:13:52.741Z","event":{"provider":"alerting","action":"execute","start":"2021-02-01T17:13:52.741Z","end":"2021-02-01T17:13:52.750Z","duration":9000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"362e362b-a137-4aa2-9434-43e3d0d84a34","namespace":"space1"}],"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"error":{"message":"Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found"},"message":"test.always-firing:362e362b-a137-4aa2-9434-43e3d0d84a34: execution failed","ecs":{"version":"1.6.0"}}
[00:04:02]                   │ proc [kibana]   log   [17:13:52.752] [info][eventLog][plugins] event logged: {"@timestamp":"2021-02-01T17:13:52.741Z","event":{"provider":"alerting","action":"execute","start":"2021-02-01T17:13:52.741Z","end":"2021-02-01T17:13:52.752Z","duration":11000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"6ee9630a-a20e-44af-9465-217a3717d2ab","namespace":"space1"}],"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"error":{"message":"Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found"},"message":"test.always-firing:6ee9630a-a20e-44af-9465-217a3717d2ab: execution failed","ecs":{"version":"1.6.0"}}
[00:04:02]                   │ proc [kibana]   log   [17:13:52.754] [error][alerting][alerts][plugins][plugins] error updating alert execution status for test.always-firing:d41a6abb-b93b-46df-a80a-926221ea847c Saved object index alias [.kibana_8.0.0] not found: index_not_found_exception
[00:04:02]                   │ proc [kibana]   log   [17:13:52.754] [error][plugins][taskManager] Task alerting:test.always-firing "e616c2c0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/d41a6abb-b93b-46df-a80a-926221ea847c] not found
[00:04:02]                   │ proc [kibana]   log   [17:13:52.756] [error][alerting][alerts][plugins][plugins] error updating alert execution status for test.always-firing:5cc59319-74ee-4edc-8646-a79ea91067cd Saved object index alias [.kibana_8.0.0] not found: index_not_found_exception
[00:04:02]                   │ proc [kibana]   log   [17:13:52.756] [error][plugins][taskManager] Task alerting:test.always-firing "e8885f00-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/5cc59319-74ee-4edc-8646-a79ea91067cd] not found
[00:04:02]                   │ proc [kibana]   log   [17:13:52.757] [error][alerting][alerts][plugins][plugins] error updating alert execution status for test.always-firing:362e362b-a137-4aa2-9434-43e3d0d84a34 Saved object index alias [.kibana_8.0.0] not found: index_not_found_exception
[00:04:02]                   │ proc [kibana]   log   [17:13:52.757] [error][plugins][taskManager] Task alerting:test.always-firing "e4df5430-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/362e362b-a137-4aa2-9434-43e3d0d84a34] not found
[00:04:02]                   │ proc [kibana]   log   [17:13:52.759] [info][eventLog][plugins] event logged: {"@timestamp":"2021-02-01T17:13:52.741Z","event":{"provider":"alerting","action":"execute","start":"2021-02-01T17:13:52.741Z","end":"2021-02-01T17:13:52.758Z","duration":17000000,"reason":"decrypt","outcome":"failure"},"kibana":{"saved_objects":[{"rel":"primary","type":"alert","id":"b384be60-ec53-4b26-857e-0253ee55b277","namespace":"space1"}],"alerting":{"status":"error"},"server_uuid":"5b2de169-2785-441b-ae8c-186a1936b17d"},"error":{"message":"Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found"},"message":"test.always-firing:b384be60-ec53-4b26-857e-0253ee55b277: execution failed","ecs":{"version":"1.6.0"}}
[00:04:02]                   │ proc [kibana]   log   [17:13:52.760] [error][alerting][alerts][plugins][plugins] error updating alert execution status for test.always-firing:6ee9630a-a20e-44af-9465-217a3717d2ab Saved object index alias [.kibana_8.0.0] not found: index_not_found_exception
[00:04:02]                   │ proc [kibana]   log   [17:13:52.760] [error][plugins][taskManager] Task alerting:test.always-firing "e9c069d0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/6ee9630a-a20e-44af-9465-217a3717d2ab] not found
[00:04:02]                   │ proc [kibana]   log   [17:13:52.763] [error][alerting][alerts][plugins][plugins] error updating alert execution status for test.always-firing:b384be60-ec53-4b26-857e-0253ee55b277 Saved object index alias [.kibana_8.0.0] not found: index_not_found_exception
[00:04:02]                   │ proc [kibana]   log   [17:13:52.763] [error][plugins][taskManager] Task alerting:test.always-firing "e39a02f0-eea4-11ea-a285-352ee3aecffa" failed: Error: Saved object [alert/b384be60-ec53-4b26-857e-0253ee55b277] not found
[00:04:02]                   │ proc [kibana]   log   [17:13:52.814] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:04:02]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_reindex_temp/vzFBvTr-SquH57HDTV8hJA] deleting index
[00:04:02]                   │ proc [kibana]   log   [17:13:52.862] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:04:02]                   │ proc [kibana]   log   [17:13:52.862] [info][savedobjects-service] [.kibana] Migration completed after 1835ms
[00:04:02]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana-alerting-test-data] creating index, cause [api], templates [], shards [1]/[1]
[00:04:02]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana-test-authorization] creating index, cause [api], templates [], shards [1]/[1]
[00:04:02]                   │ debg creating space
[00:04:02]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/OfOwSE47Su6yBoCK1U_42w] update_mapping [_doc]
[00:04:03]                   │ debg created space
[00:04:03]                   │ debg creating space
[00:04:04]                   │ debg created space
[00:04:04]                   │ debg creating space
[00:04:05]                   │ debg created space
[00:04:05]                   │ debg creating user no_kibana_privileges
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [no_kibana_privileges]
[00:04:05]                   │ debg created user no_kibana_privileges
[00:04:05]                   │ debg creating role no_kibana_privileges
[00:04:05]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added role [no_kibana_privileges]
[00:04:05]                   │ debg creating user superuser
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [superuser]
[00:04:05]                   │ debg created user superuser
[00:04:05]                   │ debg creating user global_read
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [global_read]
[00:04:05]                   │ debg created user global_read
[00:04:05]                   │ debg creating role global_read_role
[00:04:05]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added role [global_read_role]
[00:04:05]                   │ debg creating user space_1_all
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [space_1_all]
[00:04:05]                   │ debg created user space_1_all
[00:04:05]                   │ debg creating role space_1_all_role
[00:04:05]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added role [space_1_all_role]
[00:04:05]                   │ debg creating user space_1_all_with_restricted_fixture
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [space_1_all_with_restricted_fixture]
[00:04:05]                   │ debg created user space_1_all_with_restricted_fixture
[00:04:05]                   │ debg creating role space_1_all_with_restricted_fixture_role
[00:04:05]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added role [space_1_all_with_restricted_fixture_role]
[00:04:05]                   │ debg creating user space_1_all_alerts_none_actions
[00:04:05]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added user [space_1_all_alerts_none_actions]
[00:04:05]                   │ debg created user space_1_all_alerts_none_actions
[00:04:05]                   │ debg creating role space_1_all_alerts_none_actions_role
[00:04:05]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] added role [space_1_all_alerts_none_actions_role]
[00:04:05]                 └-: superuser at space1
[00:04:05]                   └-> "before all" hook
[00:04:05]                   └-> "before all" hook
[00:04:05]                   └-> should schedule actions on legacy alerts
[00:04:05]                     └-> "before each" hook: global before each
[00:04:08]                     │ debg --- retry.try error: expected 0 to be above 0
[00:04:08]                     │ debg --- retry.try failed again with the same message...
[00:04:09]                     │ debg --- retry.try failed again with the same message...
[00:04:09]                     │ debg --- retry.try failed again with the same message...
[00:04:10]                     │ debg --- retry.try failed again with the same message...
[00:04:10]                     │ debg --- retry.try failed again with the same message...
[00:04:11]                     │ debg --- retry.try failed again with the same message...
[00:04:11]                     │ debg --- retry.try failed again with the same message...
[00:04:12]                     │ debg --- retry.try failed again with the same message...
[00:04:12]                     │ debg --- retry.try failed again with the same message...
[00:04:13]                     │ debg --- retry.try failed again with the same message...
[00:04:13]                     │ debg --- retry.try failed again with the same message...
[00:04:14]                     │ debg --- retry.try failed again with the same message...
[00:04:14]                     │ debg --- retry.try failed again with the same message...
[00:04:15]                     │ debg --- retry.try failed again with the same message...
[00:04:15]                     │ debg --- retry.try failed again with the same message...
[00:04:16]                     │ debg --- retry.try failed again with the same message...
[00:04:16]                     │ debg --- retry.try failed again with the same message...
[00:04:17]                     │ debg --- retry.try failed again with the same message...
[00:04:17]                     │ debg --- retry.try failed again with the same message...
[00:04:18]                     │ debg --- retry.try failed again with the same message...
[00:04:18]                     │ debg --- retry.try failed again with the same message...
[00:04:19]                     │ debg --- retry.try failed again with the same message...
[00:04:19]                     │ debg --- retry.try failed again with the same message...
[00:04:20]                     │ debg --- retry.try failed again with the same message...
[00:04:20]                     │ debg --- retry.try failed again with the same message...
[00:04:21]                     │ debg --- retry.try failed again with the same message...
[00:04:21]                     │ debg --- retry.try failed again with the same message...
[00:04:22]                     │ debg --- retry.try failed again with the same message...
[00:04:22]                     │ debg --- retry.try failed again with the same message...
[00:04:23]                     │ debg --- retry.try failed again with the same message...
[00:04:23]                     │ debg --- retry.try failed again with the same message...
[00:04:24]                     │ debg --- retry.try failed again with the same message...
[00:04:24]                     │ debg --- retry.try failed again with the same message...
[00:04:25]                     │ debg --- retry.try failed again with the same message...
[00:04:26]                     │ debg --- retry.try failed again with the same message...
[00:04:26]                     │ debg --- retry.try failed again with the same message...
[00:04:27]                     │ debg --- retry.try failed again with the same message...
[00:04:27]                     │ debg --- retry.try failed again with the same message...
[00:04:28]                     │ debg --- retry.try failed again with the same message...
[00:04:28]                     │ debg --- retry.try failed again with the same message...
[00:04:29]                     │ debg --- retry.try failed again with the same message...
[00:04:29]                     │ debg --- retry.try failed again with the same message...
[00:04:30]                     │ debg --- retry.try failed again with the same message...
[00:04:30]                     │ debg --- retry.try failed again with the same message...
[00:04:31]                     │ debg --- retry.try failed again with the same message...
[00:04:31]                     │ debg --- retry.try failed again with the same message...
[00:04:32]                     │ debg --- retry.try failed again with the same message...
[00:04:32]                     │ debg --- retry.try failed again with the same message...
[00:04:33]                     │ debg --- retry.try failed again with the same message...
[00:04:33]                     │ debg --- retry.try failed again with the same message...
[00:04:34]                     │ debg --- retry.try failed again with the same message...
[00:04:34]                     │ debg --- retry.try failed again with the same message...
[00:04:35]                     │ debg --- retry.try failed again with the same message...
[00:04:35]                     │ debg --- retry.try failed again with the same message...
[00:04:36]                     │ debg --- retry.try failed again with the same message...
[00:04:36]                     │ debg --- retry.try failed again with the same message...
[00:04:37]                     │ debg --- retry.try failed again with the same message...
[00:04:37]                     │ debg --- retry.try failed again with the same message...
[00:04:38]                     │ debg --- retry.try failed again with the same message...
[00:04:38]                     │ debg --- retry.try failed again with the same message...
[00:04:39]                     │ debg --- retry.try failed again with the same message...
[00:04:39]                     │ debg --- retry.try failed again with the same message...
[00:04:40]                     │ debg --- retry.try failed again with the same message...
[00:04:40]                     │ debg --- retry.try failed again with the same message...
[00:04:41]                     │ debg --- retry.try failed again with the same message...
[00:04:41]                     │ debg --- retry.try failed again with the same message...
[00:04:42]                     │ debg --- retry.try failed again with the same message...
[00:04:42]                     │ debg --- retry.try failed again with the same message...
[00:04:43]                     │ debg --- retry.try failed again with the same message...
[00:04:43]                     │ debg --- retry.try failed again with the same message...
[00:04:44]                     │ debg --- retry.try failed again with the same message...
[00:04:44]                     │ debg --- retry.try failed again with the same message...
[00:04:45]                     │ debg --- retry.try failed again with the same message...
[00:04:45]                     │ debg --- retry.try failed again with the same message...
[00:04:46]                     │ debg --- retry.try failed again with the same message...
[00:04:46]                     │ debg --- retry.try failed again with the same message...
[00:04:47]                     │ debg --- retry.try failed again with the same message...
[00:04:47]                     │ debg --- retry.try failed again with the same message...
[00:04:48]                     │ debg --- retry.try failed again with the same message...
[00:04:49]                     │ debg --- retry.try failed again with the same message...
[00:04:49]                     │ debg --- retry.try failed again with the same message...
[00:04:50]                     │ debg --- retry.try failed again with the same message...
[00:04:50]                     │ debg --- retry.try failed again with the same message...
[00:04:51]                     │ debg --- retry.try failed again with the same message...
[00:04:51]                     │ debg --- retry.try failed again with the same message...
[00:04:52]                     │ debg --- retry.try failed again with the same message...
[00:04:52]                     │ debg --- retry.try failed again with the same message...
[00:04:53]                     │ debg --- retry.try failed again with the same message...
[00:04:53]                     │ debg --- retry.try failed again with the same message...
[00:04:54]                     │ debg --- retry.try failed again with the same message...
[00:04:54]                     │ debg --- retry.try failed again with the same message...
[00:04:55]                     │ debg --- retry.try failed again with the same message...
[00:04:55]                     │ debg --- retry.try failed again with the same message...
[00:04:56]                     │ debg --- retry.try failed again with the same message...
[00:04:56]                     │ debg --- retry.try failed again with the same message...
[00:04:57]                     │ debg --- retry.try failed again with the same message...
[00:04:57]                     │ debg --- retry.try failed again with the same message...
[00:04:58]                     │ debg --- retry.try failed again with the same message...
[00:04:58]                     │ debg --- retry.try failed again with the same message...
[00:04:59]                     │ debg --- retry.try failed again with the same message...
[00:04:59]                     │ debg --- retry.try failed again with the same message...
[00:05:00]                     │ debg --- retry.try failed again with the same message...
[00:05:00]                     │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612197392715796561] [.kibana_8.0.0_001/OfOwSE47Su6yBoCK1U_42w] update_mapping [_doc]
[00:05:00]                     │ debg --- retry.try failed again with the same message...
[00:05:01]                     │ debg --- retry.try failed again with the same message...
[00:05:01]                     │ debg --- retry.try failed again with the same message...
[00:05:02]                     │ debg --- retry.try failed again with the same message...
[00:05:02]                     │ debg --- retry.try failed again with the same message...
[00:05:03]                     │ debg --- retry.try failed again with the same message...
[00:05:03]                     │ debg --- retry.try failed again with the same message...
[00:05:04]                     │ debg --- retry.try failed again with the same message...
[00:05:04]                     │ debg --- retry.try failed again with the same message...
[00:05:05]                     │ debg --- retry.try failed again with the same message...
[00:05:05]                     │ debg --- retry.try failed again with the same message...
[00:05:06]                     │ debg --- retry.try failed again with the same message...
[00:05:06]                     │ debg --- retry.try failed again with the same message...
[00:05:07]                     │ debg --- retry.try failed again with the same message...
[00:05:07]                     │ debg --- retry.try failed again with the same message...
[00:05:08]                     │ debg --- retry.try failed again with the same message...
[00:05:08]                     │ debg --- retry.try failed again with the same message...
[00:05:09]                     │ debg --- retry.try failed again with the same message...
[00:05:09]                     │ debg --- retry.try failed again with the same message...
[00:05:10]                     │ debg --- retry.try failed again with the same message...
[00:05:10]                     │ debg --- retry.try failed again with the same message...
[00:05:11]                     │ debg --- retry.try failed again with the same message...
[00:05:12]                     │ debg --- retry.try failed again with the same message...
[00:05:12]                     │ debg --- retry.try failed again with the same message...
[00:05:13]                     │ debg --- retry.try failed again with the same message...
[00:05:13]                     │ debg --- retry.try failed again with the same message...
[00:05:14]                     │ debg --- retry.try failed again with the same message...
[00:05:14]                     │ debg --- retry.try failed again with the same message...
[00:05:15]                     │ debg --- retry.try failed again with the same message...
[00:05:15]                     │ debg --- retry.try failed again with the same message...
[00:05:16]                     │ debg --- retry.try failed again with the same message...
[00:05:16]                     │ debg --- retry.try failed again with the same message...
[00:05:17]                     │ debg --- retry.try failed again with the same message...
[00:05:17]                     │ debg --- retry.try failed again with the same message...
[00:05:18]                     │ debg --- retry.try failed again with the same message...
[00:05:18]                     │ debg --- retry.try failed again with the same message...
[00:05:19]                     │ debg --- retry.try failed again with the same message...
[00:05:19]                     │ debg --- retry.try failed again with the same message...
[00:05:20]                     │ debg --- retry.try failed again with the same message...
[00:05:20]                     │ debg --- retry.try failed again with the same message...
[00:05:21]                     │ debg --- retry.try failed again with the same message...
[00:05:21]                     │ debg --- retry.try failed again with the same message...
[00:05:22]                     │ debg --- retry.try failed again with the same message...
[00:05:22]                     │ debg --- retry.try failed again with the same message...
[00:05:23]                     │ debg --- retry.try failed again with the same message...
[00:05:23]                     │ debg --- retry.try failed again with the same message...
[00:05:24]                     │ debg --- retry.try failed again with the same message...
[00:05:24]                     │ debg --- retry.try failed again with the same message...
[00:05:25]                     │ debg --- retry.try failed again with the same message...
[00:05:25]                     │ debg --- retry.try failed again with the same message...
[00:05:26]                     │ debg --- retry.try failed again with the same message...
[00:05:26]                     │ debg --- retry.try failed again with the same message...
[00:05:27]                     │ debg --- retry.try failed again with the same message...
[00:05:27]                     │ debg --- retry.try failed again with the same message...
[00:05:28]                     │ debg --- retry.try failed again with the same message...
[00:05:28]                     │ debg --- retry.try failed again with the same message...
[00:05:29]                     │ debg --- retry.try failed again with the same message...
[00:05:29]                     │ debg --- retry.try failed again with the same message...
[00:05:30]                     │ debg --- retry.try failed again with the same message...
[00:05:30]                     │ debg --- retry.try failed again with the same message...
[00:05:31]                     │ debg --- retry.try failed again with the same message...
[00:05:31]                     │ debg --- retry.try failed again with the same message...
[00:05:32]                     │ debg --- retry.try failed again with the same message...
[00:05:32]                     │ debg --- retry.try failed again with the same message...
[00:05:33]                     │ debg --- retry.try failed again with the same message...
[00:05:33]                     │ debg --- retry.try failed again with the same message...
[00:05:34]                     │ debg --- retry.try failed again with the same message...
[00:05:34]                     │ debg --- retry.try failed again with the same message...
[00:05:35]                     │ debg --- retry.try failed again with the same message...
[00:05:36]                     │ debg --- retry.try failed again with the same message...
[00:05:36]                     │ debg --- retry.try failed again with the same message...
[00:05:37]                     │ debg --- retry.try failed again with the same message...
[00:05:37]                     │ debg --- retry.try failed again with the same message...
[00:05:38]                     │ debg --- retry.try failed again with the same message...
[00:05:38]                     │ debg --- retry.try failed again with the same message...
[00:05:39]                     │ debg --- retry.try failed again with the same message...
[00:05:39]                     │ debg --- retry.try failed again with the same message...
[00:05:40]                     │ debg --- retry.try failed again with the same message...
[00:05:40]                     │ debg --- retry.try failed again with the same message...
[00:05:41]                     │ debg --- retry.try failed again with the same message...
[00:05:41]                     │ debg --- retry.try failed again with the same message...
[00:05:42]                     │ debg --- retry.try failed again with the same message...
[00:05:42]                     │ debg --- retry.try failed again with the same message...
[00:05:43]                     │ debg --- retry.try failed again with the same message...
[00:05:43]                     │ debg --- retry.try failed again with the same message...
[00:05:44]                     │ debg --- retry.try failed again with the same message...
[00:05:44]                     │ debg --- retry.try failed again with the same message...
[00:05:45]                     │ debg --- retry.try failed again with the same message...
[00:05:45]                     │ debg --- retry.try failed again with the same message...
[00:05:46]                     │ debg --- retry.try failed again with the same message...
[00:05:46]                     │ debg --- retry.try failed again with the same message...
[00:05:47]                     │ debg --- retry.try failed again with the same message...
[00:05:47]                     │ debg --- retry.try failed again with the same message...
[00:05:48]                     │ debg --- retry.try failed again with the same message...
[00:05:48]                     │ debg --- retry.try failed again with the same message...
[00:05:49]                     │ debg --- retry.try failed again with the same message...
[00:05:49]                     │ debg --- retry.try failed again with the same message...
[00:05:50]                     │ debg --- retry.try failed again with the same message...
[00:05:50]                     │ debg --- retry.try failed again with the same message...
[00:05:51]                     │ debg --- retry.try failed again with the same message...
[00:05:51]                     │ debg --- retry.try failed again with the same message...
[00:05:52]                     │ debg --- retry.try failed again with the same message...
[00:05:52]                     │ debg --- retry.try failed again with the same message...
[00:05:53]                     │ debg --- retry.try failed again with the same message...
[00:05:53]                     │ debg --- retry.try failed again with the same message...
[00:05:54]                     │ debg --- retry.try failed again with the same message...
[00:05:54]                     │ debg --- retry.try failed again with the same message...
[00:05:55]                     │ debg --- retry.try failed again with the same message...
[00:05:55]                     │ debg --- retry.try failed again with the same message...
[00:05:56]                     │ debg --- retry.try failed again with the same message...
[00:05:56]                     │ debg --- retry.try failed again with the same message...
[00:05:57]                     │ debg --- retry.try failed again with the same message...
[00:05:57]                     │ debg --- retry.try failed again with the same message...
[00:05:58]                     │ debg --- retry.try failed again with the same message...
[00:05:58]                     │ debg --- retry.try failed again with the same message...
[00:05:59]                     │ debg --- retry.try failed again with the same message...
[00:05:59]                     │ debg --- retry.try failed again with the same message...
[00:06:00]                     │ debg --- retry.try failed again with the same message...
[00:06:01]                     │ debg --- retry.try failed again with the same message...
[00:06:01]                     │ debg --- retry.try failed again with the same message...
[00:06:02]                     │ debg --- retry.try failed again with the same message...
[00:06:02]                     │ debg --- retry.try failed again with the same message...
[00:06:03]                     │ debg --- retry.try failed again with the same message...
[00:06:03]                     │ debg --- retry.try failed again with the same message...
[00:06:04]                     │ debg --- retry.try failed again with the same message...
[00:06:04]                     │ debg --- retry.try failed again with the same message...
[00:06:05]                     │ debg --- retry.try failed again with the same message...
[00:06:05]                     │ debg --- retry.try failed again with the same message...
[00:06:06]                     │ debg --- retry.try failed again with the same message...
[00:06:06]                     │ debg --- retry.try failed again with the same message...
[00:06:07]                     │ debg --- retry.try failed again with the same message...
[00:06:07]                     │ debg --- retry.try failed again with the same message...
[00:06:08]                     └- ✖ fail: alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts
[00:06:08]                     │      retry.try timeout: Error: expected 0 to be above 0
[00:06:08]                     │     at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
[00:06:08]                     │     at Assertion.greaterThan.Assertion.above (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:317:8)
[00:06:08]                     │     at Function.greaterThan (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:531:15)
[00:06:08]                     │     at /dev/shm/workspace/parallel/3/kibana/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:196:64
[00:06:08]                     │     at runMicrotasks (<anonymous>)
[00:06:08]                     │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:06:08]                     │     at runAttempt (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:06:08]                     │     at retryForSuccess (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:06:08]                     │     at Retry.try (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry.ts:32:14)
[00:06:08]                     │     at ensureAlertIsRunning (/dev/shm/workspace/parallel/3/kibana/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:185:13)
[00:06:08]                     │     at Context.<anonymous> (/dev/shm/workspace/parallel/3/kibana/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:83:15)
[00:06:08]                     │     at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:08]                     │   Error: retry.try timeout: Error: expected 0 to be above 0
[00:06:08]                     │       at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
[00:06:08]                     │       at Assertion.greaterThan.Assertion.above (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:317:8)
[00:06:08]                     │       at Function.greaterThan (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:531:15)
[00:06:08]                     │       at /dev/shm/workspace/parallel/3/kibana/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:196:64
[00:06:08]                     │       at runMicrotasks (<anonymous>)
[00:06:08]                     │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:06:08]                     │       at runAttempt (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:06:08]                     │       at retryForSuccess (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:06:08]                     │       at Retry.try (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry.ts:32:14)
[00:06:08]                     │       at ensureAlertIsRunning (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:185:13)
[00:06:08]                     │       at Context.<anonymous> (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:83:15)
[00:06:08]                     │       at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:08]                     │       at onFailure (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:06:08]                     │       at retryForSuccess (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:06:08]                     │       at Retry.try (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry.ts:32:14)
[00:06:08]                     │       at ensureAlertIsRunning (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:185:13)
[00:06:08]                     │       at Context.<anonymous> (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:83:15)
[00:06:08]                     │       at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:08]                     │ 
[00:06:08]                     │ 

Stack Trace

Error: retry.try timeout: Error: expected 0 to be above 0
    at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.greaterThan.Assertion.above (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:317:8)
    at Function.greaterThan (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:531:15)
    at /dev/shm/workspace/parallel/3/kibana/x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:196:64
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at runAttempt (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at Retry.try (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry.ts:32:14)
    at ensureAlertIsRunning (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:185:13)
    at Context.<anonymous> (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:83:15)
    at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/3/kibana/test/common/services/retry/retry.ts:32:14)
    at ensureAlertIsRunning (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:185:13)
    at Context.<anonymous> (test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy.ts:83:15)
    at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 6.6MB 6.6MB -629.0B

History

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

@qn895 qn895 merged commit 2f54078 into elastic:master Feb 1, 2021
@qn895 qn895 deleted the ml-cloning-exclude-generated branch February 1, 2021 19:06
jgowdyelastic added a commit that referenced this pull request Sep 27, 2023
…167319)

When exporting an anomaly detection job, it would be useful if the
original `created_by` property was not removed from the job config.


Related to
#167021 (comment)
Related PR #88898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Anomaly Detection ML anomaly detection Feature:Data Frame Analytics ML data frame analytics features :ml release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants