Skip to content

Conversation

@bowenli86
Copy link
Member

What is the purpose of the change

This is a pre-requisite for FLINK-7694

I'm porting JobMetricsHandler to new REST endpoint. Part of the migration is to make sure the json generated before and after stay the same for UI to consume, and JobMetricsHandler is using MetricStoreTest.setupStore() to get a mocked MetricStore.

Here comes the problem. Currently, MetricStoreTest.setupStore() mocks all jobs with only one metric. We need to have at least one or two jobs with multiple metrics to make the mocked MetricStore can cover most use cases, and ensure the Json blob generated in JobMetricsHandler stay the same before and after migration.

Brief change log

  • make two jobs in MetricStoreTest.setupStore() contain multiple metrics

Verifying this change

This change is already covered by existing tests

Does this pull request potentially affect one of the following parts:

none

Documentation

none

@bowenli86
Copy link
Member Author

cc @tillrohrmann @zentol

@zentol
Copy link
Contributor

zentol commented Sep 28, 2017

merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants