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

JBPM-9550 [GSS] (7.8.x) Business Central - Blank process diagram for … #2422

Merged
merged 1 commit into from Mar 11, 2021

Conversation

bxf12315
Copy link
Member

…processes with long running tasks

Thank you for submitting this pull request

JIRA:

JBPM-9550
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)

How to retest this PR or trigger a specific build:
  • a pull request please add comment: Jenkins retest this

  • a full downstream build please add comment: Jenkins run fdb

  • a compile downstream build please add comment: Jenkins run cdb

  • a full production downstream build please add comment: Jenkins execute product fdb

  • an upstream build please add comment: Jenkins run upstream

@bxf12315
Copy link
Member Author

Jenkins run fdb

nextUrl = loadBalancer.getUrl();
try {
nextUrl = loadBalancer.getUrl();
} catch (NoEndpointFoundException noEndpointFoundException) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should happen in case no endpoint is found?
According to your PR the execution flow will still run in while loop. AFAIK this is not a correct approach.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I overlooked the condition in the while, thanks

@bxf12315
Copy link
Member Author

@elguardian @cristianonicolai The PR means, when entryponit throw timeout exception and load balancer do not have another one, loadBalancer.getUrl() will throw NoEndpointFoundException, and the NoEndpointFoundException do not catch by the client.

url = url.replace(failedBaseUrl, nextUrl);
logger.debug("Selecting next endpoint from load balancer - '{}'", url);
} catch (NoEndpointFoundException noEndpointFoundException) {
logger.warn(failedBaseUrl + " " + noEndpointFoundException.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logger.warn(failedBaseUrl + " " + noEndpointFoundException.getMessage());
logger.warn("Cannot invoke request - '{}'", noEndpointFoundException.getMessage());

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@bxf12315
Copy link
Member Author

Jenkins run fdb

@sonarcloud
Copy link

sonarcloud bot commented Mar 11, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@elguardian elguardian merged commit 20e851f into kiegroup:master Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants