Skip to content

Commit

Permalink
Merge pull request #345 from stuartwdouglas/no-local-retry
Browse files Browse the repository at this point in the history
EJBCLIENT-296 Don't retry local affinity requests
  • Loading branch information
fl4via committed Mar 7, 2018
2 parents 7cd3dda + c6ca2cd commit 8685a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,11 @@ static void setupSessionAffinities(EJBSessionCreationInvocationContext context)
private void processMissingTarget(final AbstractInvocationContext context) {
final URI destination = context.getDestination();

if (destination == null) {
if (destination == null || context.getTargetAffinity() == Affinity.LOCAL) {
// nothing we can/should do.
return;
}

// Oops, we got some wrong information!
addBlackListedDestination(context, destination);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private static List<URI> findPreferredURIs(AbstractInvocationContext context, Li

private void processMissingTarget(final AbstractInvocationContext context) {
final URI destination = context.getDestination();
if (destination == null) {
if (destination == null || context.getTargetAffinity() == Affinity.LOCAL) {
// some later interceptor cleared it out on us
return;
}
Expand Down

0 comments on commit 8685a38

Please sign in to comment.