Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-720

CassandraAdminTemplate.getKeyspaceMetadata() fail for a case-sensitive keyspace

    XMLWordPrintable

    Details

      Description

      Using CassandraAdminTemplate.getKeyspaceMetadata() when connected to a case-sensitive keyspace (using quotes) fail to retrieve the metadata.

      Look like in this line:

      KeyspaceMetadata keyspaceMetadata = session.getCluster().getMetadata().getKeyspace(session.getLoggedKeyspace());
      

      session.getLoggedKeyspace() does not automatically quote the keyspace identifier if needed, but metadata.getKeyspace() expect it to be (otherwise it use the lowercase keyspace and does not find it). Using Metadata.quoteIfNecessary() around the logged keyspace should work i think.

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            samuel.padou Samuel Padou
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              36 weeks, 2 days ago