Skip to content

OWLS-103825: Available should be true for admin server only domain #3597

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

Closed
wants to merge 3 commits into from

Conversation

lennyphan
Copy link
Member

Condition Available will be true for a Domain where the only server configured to run is the Admin server.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 1, 2022
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

93.3% 93.3% Coverage
0.0% 0.0% Duplication

@@ -857,13 +857,23 @@ private Collection<DomainPresenceInfo.ServerStartupInfo> getServerStartupInfos()

// when the domain start policy is ADMIN_ONLY, the admin server is considered to be an application server.
Copy link
Member

Choose a reason for hiding this comment

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

The comment is bit misleading after the change.

Copy link
Member

@ankedia ankedia left a comment

Choose a reason for hiding this comment

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

LGTM

@ankedia ankedia self-requested a review November 1, 2022 15:06
@ankedia
Copy link
Member

ankedia commented Nov 1, 2022

@rjeberhard @lennyphan - If the domain has a running admin server and a cluster with replicas set to 0, will the domain available condition be True or False in this case? I'm looking into OWLS-103828 and making sure that the cluster available condition is False when replicas is 0. Just want to make sure that I understand the expected behavior of the domain condition in such cases. Thanks.

Domain Available and Complete should both stay True in this case. The Domain Status Conditions Complete & Available are supposed to ignore clusters that aren't supposed to be running. Note that Domain and Cluster Status Complete may "blip" false while the Cluster is partway through shutting down - as Complete is supposed to be false if shutdowns are not finished.

return getDomain().getSpec().getServerStartPolicy() == ServerStartPolicy.ADMIN_ONLY;
}

private boolean isOnlyAdminServerRunningInDomain() {
return status.getServers().size() == 1
Copy link
Member

Choose a reason for hiding this comment

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

I think this doesn't take into account the servers or clusters that have been intentioanlly shut down.

@ankedia ankedia self-requested a review November 1, 2022 15:53
@lennyphan
Copy link
Member Author

Closing this PR as it has been combined with PR 3602

@lennyphan lennyphan closed this Nov 1, 2022
@lennyphan lennyphan deleted the OWLS-103825 branch December 15, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants