ulysses-you commented on code in PR #58466:
URL: https://github.com/apache/spark/pull/58466#discussion_r3914544068


##########
common/kvstore/src/test/java/org/apache/spark/util/kvstore/LevelDBSuite.java:
##########
@@ -98,6 +98,20 @@ public void testObjectWriteReadDelete() throws Exception {
     assertEquals(0, countKeys(t.getClass()));
   }
 
+  @Test
+  public void testGetMissingKeyReturnsNull() throws Exception {

Review Comment:
   Added `testNextAfterEntityDelete` to both suites in bd1f128afc6. It iterates 
a non-copy secondary index, deletes the entity after `hasNext()` buffers its 
entry, and asserts `next()` throws `NoSuchElementException` carrying the 
missing key.



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