Skip to content
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

RestProtocol doRefer consistency bug #11618

Closed
1 task done
mytang0 opened this issue Feb 20, 2023 · 1 comment
Closed
1 task done

RestProtocol doRefer consistency bug #11618

mytang0 opened this issue Feb 20, 2023 · 1 comment
Labels
type/bug Bugs to being fixed

Comments

@mytang0
Copy link
Member

mytang0 commented Feb 20, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 3.2
  • Operating System version: Darwin
  • Java version: 1.8

Steps to reproduce this issue

When referenceCountedClient.isDestroyed(), createReferenceCountedClient has no constraints.

        ReferenceCountedClient referenceCountedClient = ConcurrentHashMapUtils.computeIfAbsent(clients, url.getAddress(), _key -> {
            // TODO more configs to add
            return createReferenceCountedClient(url);
        });

        if (referenceCountedClient.isDestroyed()) {
            referenceCountedClient = createReferenceCountedClient(url);
            clients.put(url.getAddress(), referenceCountedClient);
        }

Pls. provide [GitHub address] to reproduce this issue.

Expected Behavior

Actual Behavior

If there is an exception, please attach the exception trace:

@mytang0 mytang0 added the type/bug Bugs to being fixed label Feb 20, 2023
@AlbumenJ
Copy link
Member

@suncairong163 PTAL

@mytang0 mytang0 closed this as completed Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bugs to being fixed
Projects
None yet
Development

No branches or pull requests

2 participants