You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2023/02/01 10:27:00 UTC

[jira] [Comment Edited] (CASSANDRA-18113) fqltool dump results NPE when null value inserted using prepared query

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

Stefan Miklosovic edited comment on CASSANDRA-18113 at 2/1/23 10:26 AM:
------------------------------------------------------------------------

4.0 [https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2252/]

4.1 j11 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1819/workflows/3051a3de-8033-4c0e-85c8-d6009a772e02]

4.1 j8 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1819/workflows/09496365-0672-495c-85f3-10900c04a1e0]

trunk j8 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1820/workflows/832d77c3-7c88-402b-a835-3fc10c46aff7]

trunk j11 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1820/workflows/edc5f5d6-5084-435e-9e30-6efefd31e07e]

there is fql multiplexer for added tests as well for circle builds


was (Author: smiklosovic):
4.0 [https://ci-cassandra.apache.org/view/patches/job/Cassandra-devbranch/2252/]

4.1 j11 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1819/workflows/3051a3de-8033-4c0e-85c8-d6009a772e02]

4.1 j8 [https://app.circleci.com/pipelines/github/instaclustr/cassandra/1819/workflows/09496365-0672-495c-85f3-10900c04a1e0]

Jenkins is quite unstable these days, I ll try to get remaining builds, probably from Circle instead.

> fqltool dump results NPE when null value inserted using prepared query
> ----------------------------------------------------------------------
>
>                 Key: CASSANDRA-18113
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18113
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/fql
>            Reporter: n.v.harikrishna
>            Assignee: n.v.harikrishna
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 4.x
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Enable fullquerylog, prepare insert statement and bind it with a null value and execute it. Executing fqltool dump after insert will result into NullPointerException.
>  
> Stept to reproduce:
>     * Create cluster using ccm
>     * Create  a table something like:
> {code:java}
>     CREATE TABLE ks1.t2 (
>         id int PRIMARY KEY,
>         value text
>     ) ;
>  {code}
>     * Execute below code
> {code:java}
>     try (CqlSession cqlSession = CqlSession.builder().build()) {
>         PreparedStatement preparedStatement = cqlSession.prepare("INSERT INTO ks1.t2 (id, value) VALUES (?, ?)");
>         cqlSession.execute(preparedStatement.bind(6, null));
>     }
> {code}
>     * Now running fqltool dump. It will run into NPE
>  
>  
> Stack trace:
> {code:java}
> error: null
> -- StackTrace --
> java.lang.NullPointerException
>     at net.openhft.chronicle.bytes.BytesStore.wrap(BytesStore.java:76)
>     at net.openhft.chronicle.bytes.Bytes.wrapForRead(Bytes.java:179)
>     at org.apache.cassandra.fqltool.commands.Dump.appendValuesToStringBuilder(Dump.java:222)
>     at org.apache.cassandra.fqltool.commands.Dump.dumpQuery(Dump.java:179)
>     at org.apache.cassandra.fqltool.commands.Dump.lambda$dump$0(Dump.java:123)
>     at net.openhft.chronicle.queue.impl.single.StoreTailer.readDocument(StoreTailer.java:111)
>     at org.apache.cassandra.fqltool.commands.Dump.dump(Dump.java:148)
>     at org.apache.cassandra.fqltool.commands.Dump.run(Dump.java:68)
>     at org.apache.cassandra.fqltool.FullQueryLogTool.main(FullQueryLogTool.java:65)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org