tkalkirill commented on code in PR #1800:
URL: https://github.com/apache/ignite-3/pull/1800#discussion_r1146213121
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/index/hash/PageMemoryHashIndexStorage.java:
##########
@@ -329,4 +340,34 @@ public void startCleanup() {
public void finishCleanup() {
state.compareAndSet(StorageState.CLEANUP, StorageState.RUNNABLE);
}
+
+ @Override
+ public @Nullable RowId getLastBuildRowId() {
+ return busy(() -> {
+ throwExceptionIfStorageInProgressOfRebalance(state.get(),
this::createStorageInfo);
+
+ try {
+ UUID lastBuildRowIdUuid = indexMetaTree.findOne(new
IndexMetaKey(indexDescriptor().id())).lastBuildRowIdUuid();
Review Comment:
I do not think that the operation of building an index will often occur, and
does it make sense to keep an empty value in memory? If you insist, I can do
caching.
--
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]