sashapolo commented on code in PR #3352:
URL: https://github.com/apache/ignite-3/pull/3352#discussion_r1516024442
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/mv/AbstractPageMemoryMvPartitionStorage.java:
##########
@@ -206,6 +215,8 @@ public int partitionId() {
* @param indexDescriptor Index descriptor.
*/
public PageMemoryHashIndexStorage
getOrCreateHashIndex(StorageHashIndexDescriptor indexDescriptor) {
+ assert !sortedIndexes.containsKey(indexDescriptor.id());
Review Comment:
No, since in real world no indexes should have the same ID. In case of an
error - yes, but this is a sanity assertion after all
--
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]