[ 
https://issues.apache.org/jira/browse/CASSANDRA-15556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17032117#comment-17032117
 ] 

David Capwell commented on CASSANDRA-15556:
-------------------------------------------

With the patch

{code}
Benchmark                                                Mode  Cnt         
Score        Error  Units
ChecksummingTransformerLz4.decompresLargeBlob           thrpt   16      
3033.525 ±     46.975  ops/s
ChecksummingTransformerLz4.decompresSsmallEnglishASCII  thrpt   16  
10,349,596.715 ± 904,951.399  ops/s
ChecksummingTransformerLz4.decompresSsmallEnglishUtf8   thrpt   16  
10,687,989.427 ± 595,770.939  ops/s
{code}

Without the patch

{code}
Benchmark                                                Mode  Cnt         
Score        Error  Units
ChecksummingTransformerLz4.decompresLargeBlob           thrpt   16      
2960.954 ±    149.584  ops/s
ChecksummingTransformerLz4.decompresSsmallEnglishASCII  thrpt   16  
10,273,136.182 ± 436,391.068  ops/s
ChecksummingTransformerLz4.decompresSsmallEnglishUtf8   thrpt   16  
10,692,302.907 ± 337,789.609  ops/s
{code}

At least with the samples I created, there isn't a real difference between this 
patch (which doesn't crash) and previous

> When a LZ4 stream is corrupted it could cause the JVM to crash
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-15556
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15556
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Messaging/Client
>            Reporter: David Capwell
>            Assignee: David Capwell
>            Priority: Normal
>              Labels: pull-request-available
>             Fix For: 4.0-alpha
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This is a spin off of CASSANDRA-15313 and  CASSANDRA-15299
> This was found when lz4 sees compressed data (not all, but happens) which is 
> corrupted; in some cases the JVM crashes producing the following
> {code}
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGBUS (0xa) at pc=0x0000000110d46ad1, pid=86555, tid=0x0000000000001103
> #
> # JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-b10)
> # Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode bsd-amd64 
> compressed oops)
> # Problematic frame:
> # C  [liblz4-java2766366422904460658.dylib+0x3ad1]  LZ4_decompress_fast+0xf1
> #
> # Failed to write core dump. Core dumps have been disabled. To enable core 
> dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # /Users/davidcapwell/src/github/apache/cassandra/hs_err_pid86555.log
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to