Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17764

Extra writePreparedStatement call

    XMLWordPrintableJSON

Details

    Description

      There seems to be a double insert happening in QueryProcessor.storePreparedStatement()

       

      https://github.com/apache/cassandra/blob/ab9ab903fa590409251e97fe075e02a64c8aa4f3/src/java/org/apache/cassandra/cql3/QueryProcessor.java#L788-L791

       

      I think it's intended to only write to prepared statement  table when it's new to the cache vs every prepare call.  Regardless the extra one should be dropped.

      Attachments

        Activity

          People

            brandon.williams Brandon Williams
            tjake T Jake Luciani
            Brandon Williams
            Caleb Rackliffe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: