RFR: 8269886: Inaccurate error message for compressed hprof test [v6]
Chris Plummer
cjplummer at openjdk.java.net
Thu Jul 8 05:58:48 UTC 2021
On Thu, 8 Jul 2021 03:47:09 GMT, Lin Zang <lzang at openjdk.org> wrote:
>> The current implementation of hprof Reader for testing always prompts "Can not decompress the compressed hprof file" when there is error for testing gzipped heap dump. This is inaccurate if the gzipped file was decompressed successfully but the hprof file format is incorrect. So the inaccurate error message could be misleading for issue analysis.
>>
>> This trivial PR refine the error message by simply print "Can not get stack trace from the compressed hprof file", the underlying exception from GZIPInputStream() or HprofReader() would give accurate error info.
>
> Lin Zang has updated the pull request incrementally with one additional commit since the last revision:
>
> refine error message
Marked as reviewed by cjplummer (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/4685
More information about the serviceability-dev
mailing list