Skip to content

Conversation

@imotov
Copy link
Contributor

@imotov imotov commented Apr 14, 2020

Adds analytics plugin usage stats to _xpack/usage.

Closes #54847

@nik9000, @polyfractal I will have to do some change to #54911 once this PR is merged to make it backward compatible. I discovered some issues during porting. Basically I will have to forward port these changes in AnalyticsStatsAction.java. Since there are significant changes in this backport I would love to get a review from one of you.

Adds analytics plugin usage stats to _xpack/usage.

Closes elastic#54847
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

Copy link
Contributor

@polyfractal polyfractal left a comment

Choose a reason for hiding this comment

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

Left another serialization question, but otherwise LGTM I think, given what we chatted about and what needs forward-porting to master.

Yay for having tests now so it doesn't go pear-shaped in the future :)

if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
out.writeVLong(counters.get(Item.BOXPLOT));
}
out.writeZLong(counters.get(Item.CUMULATIVE_CARDINALITY));
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a VLong not ZLong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was ZLong in 7.6, got partially changed by mistake in 7.7. So, I am returning to back to the original serialization method and I will open a PR to fix it in 7.7. Good catch, thanks for reminding me!

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 opened #55183. Not sure if it will make it into 7.7.0 or not.

@imotov imotov merged commit 1754e50 into elastic:7.x Apr 14, 2020
imotov added a commit to imotov/elasticsearch that referenced this pull request Apr 14, 2020
Fixes incorrect serialization of cumulativeCardinalityUsage

Relates to elastic#55162
imotov added a commit that referenced this pull request Apr 15, 2020
Fixes incorrect serialization of cumulativeCardinalityUsage

Relates to #55162
@imotov imotov deleted the issue-54847-analytics-xpack-usage-7.x branch May 1, 2020 22:22
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