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

George/multiplot simple number bug #444

Merged
merged 2 commits into from Mar 19, 2015

Conversation

GeorgeJahad
Copy link
Contributor

  1. Fixed AstyanaxReader.getPointsFromColumns() to use pointFromColumn()
    instead of generating points with "new". This fixes
    multiplot query because it causes it to return SimpleNumber's
    instead of Integers.
  2. Removed extraneous gran param from pointFromColumn()
  3. Improved error messages in JSONBasicRollupsOutputSerializer.java
  4. Increased Multiplot test coverage in BatchMetricsQueryHandlerIntegrationTest
    to test Full resolution metrics and confirm that it is returning
    SimpleNumbers instead of integers.
  5. Create metricLocator and strLocator vars in BatchMetricsQueryHandlerIntegrationTest
    to make the code a bit more readable.

instead of integers and added a few more
error log messages
in addition to rollups and to confirm
that only rollups get returned for
non string metrics
@GeorgeJahad
Copy link
Contributor Author

Just to be clear, the bug that occurs is that Multiplot queries use AstyanaxReader.getPointsFromColumns() which was returning integers for full res metrics, (instead of SimpleNumbers, which is what SinglePlot full res returns.

That causes this method to break because it can't handle Integers:
com.rackspacecloud.blueflood.outputs.serializers.JSONBasicRollupsOutputSerializer.toJSON()

@chinmay-gupte
Copy link
Contributor

+1. Nice catch!

GeorgeJahad added a commit that referenced this pull request Mar 19, 2015
…r_bug

George/multiplot simple number bug
@GeorgeJahad GeorgeJahad merged commit 4576d90 into master Mar 19, 2015
@GeorgeJahad GeorgeJahad deleted the george/multiplot_simple_number_bug branch March 19, 2015 17:46
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.

None yet

2 participants