Skip to content

STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-…#555

Merged
mfleming merged 4 commits intods-trunkfrom
STAR-1697
Oct 12, 2022
Merged

STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-…#555
mfleming merged 4 commits intods-trunkfrom
STAR-1697

Conversation

@mfleming
Copy link
Copy Markdown

…3896

Required by CNDB-3170 and CNDB-4909.

  • Make DistributedSchema.keyspaces protected since it's accessed by CNDB.

…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()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set and ordered together? I don't understand

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: I don't have a strong opinion, but I think that we are using getKeyspaces() in VersionedSchema (which extends this class)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

@jakubzytka jakubzytka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but perhaps it makes sense to ask @jacek for a quick look?

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@mfleming
Copy link
Copy Markdown
Author

Merging this since Jacek is OOO for the rest of the week and the failures are unrelated.

@mfleming mfleming merged commit fbf1e8a into ds-trunk Oct 12, 2022
@mfleming mfleming deleted the STAR-1697 branch October 12, 2022 16:03
jacek-lewandowski pushed a commit that referenced this pull request Oct 17, 2022
#555)

* STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896

Required by CNDB-3170 and CNDB-4909.
jacek-lewandowski pushed a commit that referenced this pull request Oct 18, 2022
#555)

* STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896

Required by CNDB-3170 and CNDB-4909.
mfleming added a commit that referenced this pull request Jul 10, 2023
#555)

* STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896

Required by CNDB-3170 and CNDB-4909.

(cherry picked from commit f74c1a6)
djatnieks pushed a commit that referenced this pull request Jul 24, 2023
#555)

* STAR-1697: Port keyspace renaming (KeyspaceMetadata::rename) from DB-3896

Required by CNDB-3170 and CNDB-4909.

(cherry picked from commit f74c1a6)
djatnieks pushed a commit that referenced this pull request Aug 22, 2023
#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)
djatnieks pushed a commit that referenced this pull request Sep 12, 2023
#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)
jacek-lewandowski pushed a commit that referenced this pull request Feb 8, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
djatnieks pushed a commit that referenced this pull request Mar 29, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
djatnieks pushed a commit that referenced this pull request Apr 1, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
djatnieks pushed a commit that referenced this pull request Apr 16, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
djatnieks pushed a commit that referenced this pull request May 17, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
jacek-lewandowski pushed a commit that referenced this pull request Jul 17, 2024
#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)

# Conflicts:
#	src/java/org/apache/cassandra/cql3/functions/UDAggregate.java
djatnieks pushed a commit that referenced this pull request Jan 30, 2025
#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)
djatnieks pushed a commit that referenced this pull request May 18, 2025
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 6, 2026
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 10, 2026
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 11, 2026
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 12, 2026
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 14, 2026
#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)
michaelsembwever pushed a commit that referenced this pull request Feb 16, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Feb 27, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Mar 2, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Mar 4, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Mar 5, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Mar 25, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Mar 27, 2026
#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
michaelsembwever pushed a commit that referenced this pull request Apr 14, 2026
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants