Conversation
…3896 Required by CNDB-3170 and CNDB-4909. * Make DistributedSchema.keyspaces protected since it's accessed by CNDB.
| return builder().add(updated.values()).build(); | ||
| } | ||
|
|
||
| private Set<TableMetadata> getTablesOrderedByDependencies() |
There was a problem hiding this comment.
Set and ordered together? I don't understand
There was a problem hiding this comment.
Good question. This is leftover from DSE where we traverse graph edges in order. All of this can be deleted, actually since we just need to iterate over this.
| public static final DistributedSchema EMPTY = new DistributedSchema(Keyspaces.none(), SchemaConstants.emptyVersion); | ||
|
|
||
| private final Keyspaces keyspaces; | ||
| protected final Keyspaces keyspaces; |
There was a problem hiding this comment.
NIT: I don't have a strong opinion, but I think that we are using getKeyspaces() in VersionedSchema (which extends this class)
There was a problem hiding this comment.
Ah yes, I missed that. I see a new use of keyspaces came in with https://github.com/riptano/cndb/commit/8d9c63f377adadbf6a85fa3c55e0047bcd6af28d.
OK let's keep it consistent and use getKeyspaces() everywhere and I'll drop this part.
jakubzytka
left a comment
There was a problem hiding this comment.
LGTM, but perhaps it makes sense to ask @jacek for a quick look?
|
Kudos, SonarCloud Quality Gate passed! |
|
Merging this since Jacek is OOO for the rest of the week and the failures are unrelated. |
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909.
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909.
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed
#555) * STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896 Required by CNDB-3170 and CNDB-4909. (cherry picked from commit f74c1a6) (cherry picked from commit 6fb5012) (Rebase of commit 19770fb) ninjafix – STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB to be squashed








…3896
Required by CNDB-3170 and CNDB-4909.