Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion api/src/org/labkey/api/data/ContainerManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -3000,8 +3000,10 @@ public void testMissesNotCachedInTransaction()
User user = TestContext.get().getUser();
Container c = createContainer(_testRoot, "missesInTx", user);
int rowId = c.getRowId();
GUID entityId = c.getEntityId();
assertTrue(delete(c, user));
// Cache a miss using a GUID no one else knows about, not c.getEntityId(). Background search work queued at
// create (e.g., indexer) can look up the deleted container's EntityId and legitimately cache the miss.
GUID entityId = new GUID();

try (DbScope.Transaction tx = CORE.getSchema().getScope().ensureTransaction())
{
Expand Down
Loading