smiklosovic commented on code in PR #3046:
URL: https://github.com/apache/cassandra/pull/3046#discussion_r1453757188


##########
src/java/org/apache/cassandra/io/sstable/CQLSSTableWriter.java:
##########
@@ -677,6 +732,22 @@ public CQLSSTableWriter build()
                     }
 
                     
Schema.instance.transform(SchemaTransformations.addTable(tableMetadata, true));
+                    currentTables.put(Pair.create(tableMetadata.keyspace, 
tableMetadata.name), Pair.create(tableMetadata, new AtomicInteger(1)));
+                }
+                else
+                {
+                    Pair<TableMetadata, AtomicInteger> entry = 
currentTables.get(Pair.create(tableMetadata.keyspace, tableMetadata.name));
+                    if (entry != null)
+                    {
+                        if (!entry.left.equals(tableMetadata))
+                        {
+                            throw new IllegalStateException();

Review Comment:
   add exception message



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to