You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can confirm the LockManagerBackupSyncJournalTest showing this issue.
Did ran only mvn -Pfast-tests install so far, strictly following the guide ;)
Can also confirm test succeeds with your commit.
Have to wrap my head around the change again, but would agree, that in VMConnector the disconnect should always call connection.disconnect.
edit:
see below or should it not better be like this? LockManagerBackupSyncJournalTest succeeds with that. Think in case of failed, connection should get closed and otherwise disconnected (was the other (wrong) way around in my commit):
public void disconnect(final String connectionID, final boolean failed) {
if (!started) {
return;
}
Connection conn = connections.get(connectionID);
if (conn != null) {
if (failed) {
conn.close();
} else {
conn.disconnect();
}
}
}
That wrong logic would then however also be present in InVMConnector
edit 2:
nah, disconnect raises failed=true, so passing this along seems correct to me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The purpose I'm sending this PR is basically to open a discussion.
Certain failover tests are now failing with InVM. This is a major concern for Wildfly integratoin as they have a lot of tests doing that.
For reference run LockManagerBackupSyncJournalTest, and you wlil see the faliure without this change on this PR.
@MrEasy / @jbertram