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

Change PaloMetrics' name and Catalog's Id generator #329

Merged
merged 4 commits into from
Nov 20, 2018

Conversation

morningman
Copy link
Contributor

  1. Add a new CatalogIdGenerator to replace the old AtomicLong, to avoid too many edit logs.
  2. Remove 'Palo' prefix of class PaloMetric.
  3. Add a new histogram to monitor write latency of edit log write.

ISSUE: #328

1. Remove 'Palo' prefix of class Metric.
2. Add a new CatalogIdGenerator to replace the old AtomicLong, to avoid too many edit logs.
3. Add a new histogram to monitor write letency of edit log write.

// performance is more quickly
public synchronized long getNextId() {
if (nextId < batchEndId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nextId is set to 10000. Some successive id is ignored by this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@chaoyli chaoyli merged commit 791e895 into apache:master Nov 20, 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.

2 participants