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

[APM] Service overview: Transactions table #83429

Merged

Conversation

dgieselaar
Copy link
Member

Closes #81726.

Mostly the same work as error groups, so lots of duplication. The instance table in #81721 will need similar functionality. I think that would be the right time to figure out what the right abstraction would be (if we decide we need one).

image

@dgieselaar dgieselaar requested a review from a team as a code owner November 16, 2020 14:43
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Nov 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Comment on lines 180 to 184
valueLabel={
latency.value !== null
? asDuration(latency.value)
: NOT_AVAILABLE_LABEL
}
Copy link
Member

Choose a reason for hiding this comment

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

asDuration already defaults to NOT_AVAILABLE_LABEL when there's no value

Suggested change
valueLabel={
latency.value !== null
? asDuration(latency.value)
: NOT_AVAILABLE_LABEL
}
valueLabel={asDuration(latency.value)}

? asTransactionRate(traffic.value)
: NOT_AVAILABLE_LABEL
}
start={parseFloat(start!)}
Copy link
Member

@sorenlouv sorenlouv Nov 16, 2020

Choose a reason for hiding this comment

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

I don't understand this. Isn't start a string like 2020-11-09T19:48:43.778Z? If that's the case parseFloat returns 2020 - is that the intention?

Copy link
Member

@sorenlouv sorenlouv Nov 16, 2020

Choose a reason for hiding this comment

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

Btw looking closer at this:

  • We don't need to pass start or end to SparkPlotWithValueLabel since we don't show any ticks the date range for the empty state doesn't matter
  • Furthermore: the empty state created in SparkPlotWithValueLabel seems to be made doubly redundant in SparkPlot by the isEmpty check

Copy link
Member Author

Choose a reason for hiding this comment

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

No idea how I got here 🤦‍♂️ Will fix.

Copy link
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Looks good. Søren's comments make sense too.

I just merged #83360, so could you please set this up to use ServiceOverviewTable instead of of EuiBasicTable? It handles some CSS for the loading state and pinning the pagination to the bottom.

Could we make the impact column a touch wider? It's truncated when we sort by it, which is the default:

image

Comment on lines 189 to 190
start={new Date(start!).getTime()}
end={new Date(end!).getTime()}
Copy link
Member

Choose a reason for hiding this comment

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

Still not following this. Why are we passing start and end? We are not using it for the empty state anyway (it's a plot without ticks)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I get what you mean now, will fix.

Comment on lines 211 to 212
start={new Date(start!).getTime()}
end={new Date(end!).getTime()}
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

Comment on lines 233 to 234
start={new Date(start!).getTime()}
end={new Date(end!).getTime()}
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

describe('Service overview transaction groups', () => {
describe('when data is not loaded', () => {
it('handles the empty state', async () => {
const response = await supertest.get(
Copy link
Member

Choose a reason for hiding this comment

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

nit: This is still typed as any but not terribly important.

Copy link
Member

@sorenlouv sorenlouv Nov 20, 2020

Choose a reason for hiding this comment

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

Not for now but a thought I just got:

WDYT about a client that wraps supertest and automatically gets the type based on the url and method - similar to what we use in APM?

const res = apmSupertest({
 endpoint: 'GET /api/apm/services/opbeans-java/overview_transaction_groups',
 query: {
   start,
   end,
   uiFilters: '{}',
   size: 5,
   numBuckets: 20,
   pageIndex: 0,
   sortDirection: 'desc',
   sortField: 'impact',
 },
 // ... 
})

I think that would provide an awesome DX - especially when editing a test to accommodate an API change

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 like it 👍 I think there's a small chance of us being less inclined to test things that don't align with the types, but generally I would say the benefits outweigh that risk.

@dgieselaar dgieselaar merged commit 6417ee6 into elastic:master Nov 20, 2020
@dgieselaar dgieselaar deleted the service-overview-transactions-table branch November 20, 2020 15:21
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 20, 2020
* master: (38 commits)
  [ML] Data frame analytics: Adds functionality to map view (elastic#83710)
  Add usage collection for savedObject tagging (elastic#83160)
  [SECURITY_SOLUTION] 145: Advanced Policy Tests (elastic#82898)
  [APM] Service overview transactions table (elastic#83429)
  [ML] Fix Single Metric Viewer not loading if job is metric with no partition (elastic#83880)
  do not export types from 3rd party modules as 'type' (elastic#83803)
  [Fleet] Allow to send SETTINGS action (elastic#83707)
  Fixes Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/details·ts - Actions and Triggers app Alert Details Alert Instances renders the active alert instances (elastic#83478)
  [Uptime]Reduce chart height on monitor detail page (elastic#83777)
  [APM] Prefer `APIReturnType` over `PromiseReturnType` (elastic#83843)
  [Observability] Fix telemetry for Observability Overview (elastic#83847)
  [Alerting] Adds generic UI for the definition of conditions for Action Groups (elastic#83278)
  ensure workload agg doesnt run until next interval when it fails (elastic#83632)
  [ILM] Policy form should not throw away data (elastic#83077)
  [Monitoring] Stop collecting Kibana Usage in bulkUploader (elastic#83546)
  [TSVB] fix wrong imports (elastic#83798)
  [APM] Correlations UI POC (elastic#82256)
  list all the refs in  tsconfig.json (elastic#83678)
  Bump jest (and related packages) to v26.6.3 (elastic#83724)
  Functional tests - stabilize reporting tests for cloud execution (elastic#83787)
  ...
@mshustov mshustov mentioned this pull request Nov 23, 2020
mshustov pushed a commit that referenced this pull request Nov 23, 2020
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
@sorenlouv sorenlouv changed the title [APM] Service overview transactions table [APM] Service overview: Transactions table Dec 18, 2020
@sorenlouv sorenlouv mentioned this pull request Dec 18, 2020
@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 18, 2020

💔 Build Failed

Failed CI Steps


Test Failures

X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/results/get_anomalies_table_data·ts.apis Machine Learning ResultsService GetAnomaliesTableData should fetch anomalies table data

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:07:05]           └-: Machine Learning
[00:07:05]             └-> "before all" hook
[00:07:05]             └-> "before all" hook
[00:07:05]               │ debg creating role ft_ml_source
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_source]
[00:07:05]               │ debg creating role ft_ml_source_readonly
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_source_readonly]
[00:07:05]               │ debg creating role ft_ml_dest
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_dest]
[00:07:05]               │ debg creating role ft_ml_dest_readonly
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_dest_readonly]
[00:07:05]               │ debg creating role ft_ml_ui_extras
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_ui_extras]
[00:07:05]               │ debg creating role ft_default_space_ml_all
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_all]
[00:07:05]               │ debg creating role ft_default_space_ml_read
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_read]
[00:07:05]               │ debg creating role ft_default_space_ml_none
[00:07:05]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_none]
[00:07:05]               │ debg creating user ft_ml_poweruser
[00:07:05]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_poweruser]
[00:07:05]               │ debg created user ft_ml_poweruser
[00:07:05]               │ debg creating user ft_ml_poweruser_spaces
[00:07:05]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_poweruser_spaces]
[00:07:05]               │ debg created user ft_ml_poweruser_spaces
[00:07:05]               │ debg creating user ft_ml_viewer
[00:07:05]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_viewer]
[00:07:05]               │ debg created user ft_ml_viewer
[00:07:05]               │ debg creating user ft_ml_viewer_spaces
[00:07:05]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_viewer_spaces]
[00:07:05]               │ debg created user ft_ml_viewer_spaces
[00:07:05]               │ debg creating user ft_ml_unauthorized
[00:07:06]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_unauthorized]
[00:07:06]               │ debg created user ft_ml_unauthorized
[00:07:06]               │ debg creating user ft_ml_unauthorized_spaces
[00:07:06]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_unauthorized_spaces]
[00:07:06]               │ debg created user ft_ml_unauthorized_spaces
[00:09:39]             └-: ResultsService
[00:09:39]               └-> "before all" hook
[00:09:39]               └-: GetAnomaliesTableData
[00:09:39]                 └-> "before all" hook
[00:09:39]                 └-> "before all" hook
[00:09:39]                   │ info [ml/farequote] Loading "mappings.json"
[00:09:39]                   │ info [ml/farequote] Loading "data.json.gz"
[00:09:39]                   │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:09:40]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:09:40]                   │ debg Creating anomaly detection job with id 'fq_multi_1_ae'...
[00:09:40]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:09:40]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:09:40]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:09:40]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:09:40]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/FlBCyQ5ARMavsfAP1uSivw] update_mapping [_doc]
[00:09:40]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1]
[00:09:40]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-config]
[00:09:40]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:09:40]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:09:41]                   │ debg Creating datafeed with id 'datafeed-fq_multi_1_se'...
[00:09:42]                   │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_se' to exist...
[00:09:42]                   │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:09:42]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Opening job [fq_multi_1_ae]
[00:09:42]                   │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:09:42]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:09:42]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:09:42]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:09:42]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ml-size-based-ilm-policy]
[00:09:42]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:09:42]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ml-size-based-ilm-policy]
[00:09:43]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/287655] [CResourceMonitor.cc@74] Setting model memory limit to 20 MB
[00:09:43]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Successfully set job state to [opened] for job [fq_multi_1_ae]
[00:09:43]                   │ debg Starting datafeed 'datafeed-fq_multi_1_se' with start: '0', end: '1608323568839'...
[00:09:43]                   │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2020-12-18T20:32:48.839Z) with frequency [600000ms]
[00:09:43]                   │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:09:43]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:43]                   │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:09:43]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/FlBCyQ5ARMavsfAP1uSivw] update_mapping [_doc]
[00:09:43]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:43]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:43]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:43]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:44]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:44]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:44]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:44]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:44]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:44]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:44]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:45]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:45]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:45]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:45]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:45]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:45]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:46]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:46]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:46]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:46]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:46]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:47]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:47]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:47]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:47]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:48]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:48]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:48]                   │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Lookback has finished
[00:09:48]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae]
[00:09:48]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae]...
[00:09:48]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] stopping datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae], acquired [true]...
[00:09:48]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae] has been stopped
[00:09:48]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Closing job [fq_multi_1_ae], because [close job (api)]
[00:09:48]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/287655] [CCmdSkeleton.cc@61] Handled 86274 records
[00:09:48]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/287655] [CAnomalyJob.cc@1571] Pruning all models
[00:09:48]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/FlBCyQ5ARMavsfAP1uSivw] update_mapping [_doc]
[00:09:48]                   │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] State output finished
[00:09:48]                   │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:09:48]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:48]                   │ debg Waiting up to 120000ms for job state to be closed...
[00:09:48]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:48]                   │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:09:49]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:49]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:49]                   │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] job closed
[00:09:49]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:49]                 └-> should fetch anomalies table data
[00:09:49]                   └-> "before each" hook: global before each
[00:09:50]                   └- ✖ fail: apis Machine Learning ResultsService GetAnomaliesTableData should fetch anomalies table data
[00:09:50]                   │       Error: expected 13 to sort of equal 12
[00:09:50]                   │       + expected - actual
[00:09:50]                   │ 
[00:09:50]                   │       -13
[00:09:50]                   │       +12
[00:09:50]                   │       
[00:09:50]                   │       at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
[00:09:50]                   │       at Assertion.eql (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:244:8)
[00:09:50]                   │       at Context.<anonymous> (test/api_integration/apis/ml/results/get_anomalies_table_data.ts:79:40)
[00:09:50]                   │       at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:09:50]                   │ 
[00:09:50]                   │ 

Stack Trace

Error: expected 13 to sort of equal 12
    at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/ml/results/get_anomalies_table_data.ts:79:40)
    at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16) {
  actual: '13',
  expected: '12',
  showDiff: true
}

X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/results/get_anomalies_table_data·ts.apis Machine Learning ResultsService GetAnomaliesTableData should fetch anomalies table data

Link to Jenkins

Standard Out

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:07:02]           └-: Machine Learning
[00:07:02]             └-> "before all" hook
[00:07:02]             └-> "before all" hook
[00:07:02]               │ debg creating role ft_ml_source
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_source]
[00:07:02]               │ debg creating role ft_ml_source_readonly
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_source_readonly]
[00:07:02]               │ debg creating role ft_ml_dest
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_dest]
[00:07:02]               │ debg creating role ft_ml_dest_readonly
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_dest_readonly]
[00:07:02]               │ debg creating role ft_ml_ui_extras
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_ml_ui_extras]
[00:07:02]               │ debg creating role ft_default_space_ml_all
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_all]
[00:07:02]               │ debg creating role ft_default_space_ml_read
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_read]
[00:07:02]               │ debg creating role ft_default_space_ml_none
[00:07:02]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added role [ft_default_space_ml_none]
[00:07:02]               │ debg creating user ft_ml_poweruser
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_poweruser]
[00:07:02]               │ debg created user ft_ml_poweruser
[00:07:02]               │ debg creating user ft_ml_poweruser_spaces
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_poweruser_spaces]
[00:07:02]               │ debg created user ft_ml_poweruser_spaces
[00:07:02]               │ debg creating user ft_ml_viewer
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_viewer]
[00:07:02]               │ debg created user ft_ml_viewer
[00:07:02]               │ debg creating user ft_ml_viewer_spaces
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_viewer_spaces]
[00:07:02]               │ debg created user ft_ml_viewer_spaces
[00:07:02]               │ debg creating user ft_ml_unauthorized
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_unauthorized]
[00:07:02]               │ debg created user ft_ml_unauthorized
[00:07:02]               │ debg creating user ft_ml_unauthorized_spaces
[00:07:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] added user [ft_ml_unauthorized_spaces]
[00:07:02]               │ debg created user ft_ml_unauthorized_spaces
[00:09:34]             └-: ResultsService
[00:09:34]               └-> "before all" hook
[00:09:34]               └-: GetAnomaliesTableData
[00:09:34]                 └-> "before all" hook
[00:09:34]                 └-> "before all" hook
[00:09:34]                   │ info [ml/farequote] Loading "mappings.json"
[00:09:34]                   │ info [ml/farequote] Loading "data.json.gz"
[00:09:34]                   │ info [ml/farequote] Skipped restore for existing index "ft_farequote"
[00:09:35]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:09:35]                   │ debg Creating anomaly detection job with id 'fq_multi_1_ae'...
[00:09:35]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:09:35]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:09:35]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:09:35]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:09:35]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/lHvjx7lTSuuUMRP3gczlhQ] update_mapping [_doc]
[00:09:35]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1]
[00:09:35]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-config]
[00:09:35]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:09:35]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:09:36]                   │ debg Waiting up to 5000ms for 'fq_multi_1_ae' to exist...
[00:09:36]                   │ debg Creating datafeed with id 'datafeed-fq_multi_1_se'...
[00:09:37]                   │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_se' to exist...
[00:09:37]                   │ debg Opening anomaly detection job 'fq_multi_1_ae'...
[00:09:37]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Opening job [fq_multi_1_ae]
[00:09:37]                   │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:09:37]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:09:37]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:09:37]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:09:37]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ml-size-based-ilm-policy]
[00:09:37]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:09:37]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ml-size-based-ilm-policy]
[00:09:38]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/191084] [CResourceMonitor.cc@74] Setting model memory limit to 20 MB
[00:09:38]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Successfully set job state to [opened] for job [fq_multi_1_ae]
[00:09:38]                   │ debg Starting datafeed 'datafeed-fq_multi_1_se' with start: '0', end: '1608321980703'...
[00:09:38]                   │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2020-12-18T20:06:20.703Z) with frequency [600000ms]
[00:09:38]                   │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:09:38]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:38]                   │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:09:38]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/lHvjx7lTSuuUMRP3gczlhQ] update_mapping [_doc]
[00:09:38]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:38]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:38]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:38]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:39]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:39]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:39]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:39]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:39]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:39]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:39]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:40]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:40]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:40]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:40]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:40]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:40]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:41]                   │ info [o.e.x.m.j.p.DataCountsReporter] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:09:41]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:41]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] to [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"pause-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"close-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"unfollow-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"open-follower-index"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.kibana-event-log-8.0.0-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [kibana-event-log-policy]
[00:09:41]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-index-color"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ilm-history-ilm-policy]
[00:09:41]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:41]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:42]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:42]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:42]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:42]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:43]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:43]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:43]                   │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] Lookback has finished
[00:09:43]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae]
[00:09:43]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae]...
[00:09:43]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] stopping datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae], acquired [true]...
[00:09:43]                   │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [no_realtime] datafeed [datafeed-fq_multi_1_se] for job [fq_multi_1_ae] has been stopped
[00:09:43]                   │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] Closing job [fq_multi_1_ae], because [close job (api)]
[00:09:43]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/191084] [CCmdSkeleton.cc@61] Handled 86274 records
[00:09:43]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] [autodetect/191084] [CAnomalyJob.cc@1571] Pruning all models
[00:09:43]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [.ml-anomalies-shared/lHvjx7lTSuuUMRP3gczlhQ] update_mapping [_doc]
[00:09:43]                   │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] State output finished
[00:09:43]                   │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] 120 buckets parsed from autodetect output
[00:09:43]                   │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_se
[00:09:43]                   │ debg Waiting up to 120000ms for job state to be closed...
[00:09:43]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:43]                   │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:09:44]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:44]                   │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:09:44]                   │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-ubuntu-16-tests-xxl-1608318558259242749] [fq_multi_1_ae] job closed
[00:09:44]                   │ debg Fetching anomaly detection job stats for job fq_multi_1_ae...
[00:09:44]                 └-> should fetch anomalies table data
[00:09:44]                   └-> "before each" hook: global before each
[00:09:44]                   └- ✖ fail: apis Machine Learning ResultsService GetAnomaliesTableData should fetch anomalies table data
[00:09:44]                   │       Error: expected 13 to sort of equal 12
[00:09:44]                   │       + expected - actual
[00:09:44]                   │ 
[00:09:44]                   │       -13
[00:09:44]                   │       +12
[00:09:44]                   │       
[00:09:44]                   │       at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
[00:09:44]                   │       at Assertion.eql (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:244:8)
[00:09:44]                   │       at Context.<anonymous> (test/api_integration/apis/ml/results/get_anomalies_table_data.ts:79:40)
[00:09:44]                   │       at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:09:44]                   │ 
[00:09:44]                   │ 

Stack Trace

Error: expected 13 to sort of equal 12
    at Assertion.assert (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/3/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/ml/results/get_anomalies_table_data.ts:79:40)
    at Object.apply (/dev/shm/workspace/parallel/3/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16) {
  actual: '13',
  expected: '12',
  showDiff: true
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
apm 1165 1167 +2

Async chunks

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

id before after diff
apm 3.1MB 3.1MB +8.2KB

Distributable file count

id before after diff
default 42957 42962 +5

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:enhancement Team:APM All issues that need APM UI Team support v7.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Transactions table for overview
5 participants