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

HistogramLogProcessor does not support IntCountsHistogram #63

Closed
teja-rao opened this issue Jun 16, 2015 · 3 comments
Closed

HistogramLogProcessor does not support IntCountsHistogram #63

teja-rao opened this issue Jun 16, 2015 · 3 comments

Comments

@teja-rao
Copy link

When i try to parse the log file with HistogramLogProcessor, I get the this error. I see in the code only DoubleHistogram and Histogram are supported by the LogProcessor. Is there a workaround to this? Is there any other way to read these histogram files?

Exception in thread "HistogramLogProcessor" java.lang.IllegalArgumentException: The buffer's encoded value byte size (4) does not match the Histogram's (8)
at org.HdrHistogram.AbstractHistogram.decodeFromByteBuffer(AbstractHistogram.java:1778)
at org.HdrHistogram.AbstractHistogram.decodeFromCompressedByteBuffer(AbstractHistogram.java:1886)
at org.HdrHistogram.Histogram.decodeFromCompressedByteBuffer(Histogram.java:252)
at org.HdrHistogram.EncodableHistogram.decodeFromCompressedByteBuffer(EncodableHistogram.java:55)
at org.HdrHistogram.HistogramLogReader.nextIntervalHistogram(HistogramLogReader.java:232)
at org.HdrHistogram.HistogramLogReader.nextIntervalHistogram(HistogramLogReader.java:136)
at org.HdrHistogram.HistogramLogProcessor.run(HistogramLogProcessor.java:181)

@giltene
Copy link
Member

giltene commented Jun 16, 2015

I'm working on accepting any word size smaller than the target's in a coming code push. That would fix the above.

@teja-rao
Copy link
Author

Yes that should fix it. Thanks Gil.

@giltene
Copy link
Member

giltene commented Jul 20, 2015

Addressed with 24390be and included in 2.1.5

@giltene giltene closed this as completed Jul 20, 2015
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

No branches or pull requests

2 participants