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

Creation of UDTs is sometimes not in the correct order

    XMLWordPrintable

    Details

      Description

      I discussed with Mark Paluch and I created a minimal sample to reproduce the issue. Mark already stated they use a LinkedHashSet and thus the order will preserve in CassandraPersistentEntitySchemaCreator. However, the ** specifications variable returns different orders as shown in the screenshot.

      I have to upload the example since JIRA tells me "JIRA could not attach the file as there was a missing token. Please try attaching the file again."

      link to java example - https://share.infinkon.de/index.php/s/jKiSjbokw9LQTnZ 

      Screenshots

      You can simply extract it and start it in Eclipse "ProductApplication" with a local Cassandra instance. 

      Sometimes, the application will start and the keyspaces will be created and in cqlsh "describe types" will show me in keyspace inproduct all expected UDTs:

      benefitudt   documentmetadataudt   spproductudt   inproductudt

      It will take usually less than 10 tried executions to reproduce the issue and show the error. 

      It is mandatory that documentmetadataudt is created as first UDT. If this is not the case then no UDT is created. 

      Cheers

      Sebastian

       

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            msektrier msektrier
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 6 days ago