If a aggregate root has a primary key that is a Long, the delete fails because the tracked state stores the primary key as an Integer and fails to find it when obtaining the tracked key from the state since the types don't match. No error is thrown, but the delete is a silent no-op (i.e. the underlying row is not actually deleted).