Uploaded image for project: 'Sidecar for Apache Cassandra'
  1. Sidecar for Apache Cassandra
  2. CASSSIDECAR-170

Prepared statements get stale once sidecar reconnects to Cassandra

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • Rest API
    • None
    • Availability - Unavailable
    • Normal
    • Normal
    • Unit Test
    • Hide

      unit test; ci

      Show
      unit test; ci

    Description

      When sidecar reconnects, the prepared statements were still associated with the previous session instance, causing all SidecarSchema related operations to fail. 
       

      Tried to execute unknown prepared query : 0x38663cebc0a18b444860e0439a814e38. You may have used a PreparedStatement that was created with another Cluster instance.
      com.datastax.driver.core.exceptions.InvalidQueryException: Tried to execute unknown prepared query : 0x38663cebc0a18b444860e0439a814e38. You may have used a PreparedStatement that was created with another Cluster instance.
      	at com.datastax.driver.core.SessionManager.makeRequestMessage(SessionManager.java:640)
      	at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:141)
      	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:58)
      	at org.apache.cassandra.sidecar.db.DatabaseAccessor.execute(DatabaseAccessor.java:72)
      	at org.apache.cassandra.sidecar.db.RestoreJobDatabaseAccessor.create(RestoreJobDatabaseAccessor.java:106)

      Attachments

        Issue Links

          Activity

            People

              ycai Yifan Cai
              ycai Yifan Cai
              Yifan Cai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m