You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2020/12/17 22:29:28 UTC
[GitHub] [cassandra] maedhroz opened a new pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
maedhroz opened a new pull request #858:
URL: https://github.com/apache/cassandra/pull/858
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] michaelsembwever commented on a change in pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
Posted by GitBox <gi...@apache.org>.
michaelsembwever commented on a change in pull request #858:
URL: https://github.com/apache/cassandra/pull/858#discussion_r545710782
##########
File path: src/java/org/apache/cassandra/schema/TableMetadata.java
##########
@@ -558,7 +558,8 @@ boolean changeAffectsPreparedStatements(TableMetadata updated)
|| !regularAndStaticColumns.equals(updated.regularAndStaticColumns)
|| !indexes.equals(updated.indexes)
|| params.defaultTimeToLive != updated.params.defaultTimeToLive
- || params.gcGraceSeconds != updated.params.gcGraceSeconds;
+ || params.gcGraceSeconds != updated.params.gcGraceSeconds
+ || flags.contains(Flag.DENSE) && !updated.flags.contains(Flag.DENSE);
Review comment:
can we also put it in parenthesis for readability…
```suggestion
|| ( !isCQLTable(flags) && isCQLTable(updated.flags) );
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] michaelsembwever commented on a change in pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
Posted by GitBox <gi...@apache.org>.
michaelsembwever commented on a change in pull request #858:
URL: https://github.com/apache/cassandra/pull/858#discussion_r545967750
##########
File path: src/java/org/apache/cassandra/cql3/QueryProcessor.java
##########
@@ -161,6 +161,12 @@ public static void clearPreparedStatements(boolean memoryOnly)
if (!memoryOnly)
SystemKeyspace.resetPreparedStatements();
}
+
Review comment:
fyi: white-space here i had to remove. there was also three lines with trailing whitespace introduced in CompactTableTest, also fixed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] ifesdjeen commented on a change in pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
Posted by GitBox <gi...@apache.org>.
ifesdjeen commented on a change in pull request #858:
URL: https://github.com/apache/cassandra/pull/858#discussion_r545701637
##########
File path: src/java/org/apache/cassandra/schema/TableMetadata.java
##########
@@ -558,7 +558,8 @@ boolean changeAffectsPreparedStatements(TableMetadata updated)
|| !regularAndStaticColumns.equals(updated.regularAndStaticColumns)
|| !indexes.equals(updated.indexes)
|| params.defaultTimeToLive != updated.params.defaultTimeToLive
- || params.gcGraceSeconds != updated.params.gcGraceSeconds;
+ || params.gcGraceSeconds != updated.params.gcGraceSeconds
+ || flags.contains(Flag.DENSE) && !updated.flags.contains(Flag.DENSE);
Review comment:
You could use `!Flag.isCQLTable(flags)` instead: https://github.com/apache/cassandra/blob/61046b5c6836d86f38d238e3629074099a6a6545/src/java/org/apache/cassandra/schema/TableMetadata.java#L99
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] maedhroz commented on pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
Posted by GitBox <gi...@apache.org>.
maedhroz commented on pull request #858:
URL: https://github.com/apache/cassandra/pull/858#issuecomment-748254424
Committed as https://github.com/apache/cassandra/commit/d9859d231f24781b7ebf4dd93bb4584fb4bc7538
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
[GitHub] [cassandra] maedhroz closed pull request #858: CASSANDRA-16361 DROP COMPACT STORAGE should invalidate prepared statements still using CompactTableMetadata
Posted by GitBox <gi...@apache.org>.
maedhroz closed pull request #858:
URL: https://github.com/apache/cassandra/pull/858
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org