-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0] Bug 1343: Remove getStackTrace to fix throughput degredation #1345
Conversation
@rfelcman |
@rfelcman Does this PR look ok to merge? |
Sorry, but "continuous-integration/jenkins/pr-merge" prints some test errors see details https://ci.eclipse.org/eclipselink/job/eclipselink-pull-request-verifier/job/PR-1345/ . I executed this PR verification job again https://ci.eclipse.org/eclipselink/job/eclipselink-pull-request-verifier/job/PR-1345/2/ but with the same results. |
Signed-off-by: Joshua Dettinger <[email protected]> Signed-off-by: Will Dazey <[email protected]>
@rfelcman I'm not sure why this is failing on 3.0 but not 2.7 or master? This change is really small and functionally the same thing. I have a hard time seeing why there would be failures based on THIS commit. |
The 4 test failures are in WDF and I have absolutely no knowledge of that code:
They appear to be all negative tests expecting failures that didn't happen.
So this test failed because it expected the persist/flush to fail. Why? The test seems like the entity should be persisted just fine. The test is not documented very well on what it is testing. What is a "a hollow entity" a reference to? |
Perhaps these tests expect to be run in a specific order and have skated by in the past on that? But now they are running in an unexpected order? Looking at some of them, comments appear to indicate the tests do not expect some values to be in the database: org.eclipse.persistence.testing.tests.wdf.jpa1.entitymanager.TestGetReference.testRemoveNonExisting() Employee emp = em.getReference(Employee.class, Integer.valueOf(99)); // versioning, entity does not exist But if the entity DOES exist, then the test doesn't fail and other tests ARE persisting the same ID: Employee emp = null;
boolean operationFailed = false;
env.beginTransaction(em);
try {
emp = em.getReference(Employee.class, Integer.valueOf(99));
} catch (EntityNotFoundException e) {
// $JL-EXC$ expected behavior
operationFailed = true;
}
env.rollbackTransactionAndClear(em);
if (emp != null) {
env.beginTransaction(em);
try {
em.persist(emp);
em.flush();
} catch (PersistenceException e) {
// $JL-EXC$ expected behavior
operationFailed = true;
}
env.rollbackTransactionAndClear(em);
verify(operationFailed, "persisting a hollow entity succeeded (should fail)");
} It seems like if |
In any case, I don't think any of these test failures are related to this PR and should be overlooked. I would like to get this change merged so that 3.0 can match 2.7 and master in ConcurrencyManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
that happens to me from time to time and I go ahead and fix those failures - setting specific order is not that difficult change to make. What have you done to make sure failures you see will be addressed? |
for #1343
Signed-off-by: Joshua Dettinger [email protected]
Signed-off-by: Will Dazey [email protected]