lokidundun commented on code in PR #2982:
URL: https://github.com/apache/hugegraph/pull/2982#discussion_r3100893093


##########
hugegraph-server/hugegraph-rocksdb/src/main/java/org/apache/hugegraph/backend/store/rocksdb/RocksDBTables.java:
##########
@@ -208,6 +210,15 @@ public static Edge in(String database) {
         protected BackendColumnIterator queryById(RocksDBSessions.Session 
session, Id id) {
             return this.getById(session, id);
         }
+
+        @Override
+        protected BackendColumnIterator queryByIds(RocksDBSessions.Session 
session,
+                                                   Collection<Id> ids) {
+            if (!session.hasChanges()) {
+                return this.getByIds(session, ids);

Review Comment:
   Testing the fallback path (session.hasChanges() = true) is not feasible in 
unit tests, as RocksDBStdSessions asserts !this.hasChanges() on all read 
operations (get/scan) when assertions are enabled.



-- 
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