Skip to content

Conversation

@heyile
Copy link
Contributor

@heyile heyile commented Oct 7, 2018

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@coveralls
Copy link

coveralls commented Oct 7, 2018

Coverage Status

Coverage decreased (-0.1%) to 86.08% when pulling 17e729a on heyile:metrics_apm into 6aadae0 on apache:master.

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MeterDetailStatisticsModel {
Copy link
Contributor

Choose a reason for hiding this comment

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

why need this model?

enum the stages, just like the old logic, seems simpler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well. the data structure is different with before.
for example:

old:
rest.200:
xx xxx xx xx sayHi
xxx xx xx xx sayHello
rest.400:
xx xxx xx xx sayHi
xxx xx xx xx sayHello

now:
sayHi:
rest200:
xx xx xxx
rest400:
xx xx xxx
sayHello:
rest200:
xx xx xxx
rest400:
xx xx xxx
Hence, I have to load all data, And then restructure it

}
sb.append(String.format(SIMPLE_HEADER, "edge"));
//clear old data
MeterStatisticsManager.statisticsOperationMap.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

why need global variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just use it to load data temporarily as I need restructure the data

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed the global variable

@liubao68 liubao68 merged commit c3f1d66 into apache:master Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants