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

Limit Daemon Concurrency on Windows #1322

Merged
merged 9 commits into from
Feb 24, 2022
Merged

Conversation

awharn
Copy link
Member

@awharn awharn commented Feb 22, 2022

Due to the implementation of named pipes in Windows, it is not possible to determine if another daemon client is talking to the daemon server using the named pipes alone. Instead, this PR introduces a 'lock file' that is locked when a client is communicating with the server, and released when the client is finished. The lock file's location can be overridden with the ZOWE_DAEMON_LOCK environment variable.

awharn and others added 5 commits February 22, 2022 11:52
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Timothy Johnson <timothy.johnson@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
@codecov
Copy link

codecov bot commented Feb 22, 2022

Codecov Report

Merging #1322 (db72809) into next (e817ff3) will increase coverage by 0.09%.
The diff coverage is 92.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #1322      +/-   ##
==========================================
+ Coverage   91.39%   91.49%   +0.09%     
==========================================
  Files         369      369              
  Lines        5752     5748       -4     
  Branches      826      824       -2     
==========================================
+ Hits         5257     5259       +2     
+ Misses        489      483       -6     
  Partials        6        6              
Impacted Files Coverage Δ
...src/zosfiles/upload/stds/StdinToDataSet.handler.ts 100.00% <ø> (ø)
packages/provisioning/src/ProvisioningConstants.ts 100.00% <ø> (ø)
...ovisioning/src/doc/zosmf/IPerformActionResponse.ts 100.00% <ø> (ø)
...ioning/src/doc/zosmf/IProvisionTemplateResponse.ts 100.00% <ø> (ø)
...provisioning/src/doc/zosmf/IProvisionedInstance.ts 100.00% <ø> (ø)
...oning/src/doc/zosmf/IProvisionedInstanceActions.ts 100.00% <ø> (ø)
...ning/src/doc/zosmf/IProvisionedInstanceVariable.ts 100.00% <ø> (ø)
...rovisioning/src/doc/zosmf/IProvisionedInstances.ts 100.00% <ø> (ø)
.../provisioning/src/doc/zosmf/IPublishedTemplates.ts 100.00% <ø> (ø)
...rovisioning/src/doc/zosmf/ITemplateRegistryInfo.ts 100.00% <ø> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ce8d8e...db72809. Read the comment docs.

zowex/src/main.rs Outdated Show resolved Hide resolved
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
@awharn awharn requested a review from t1m0thyj February 23, 2022 21:02
t1m0thyj
t1m0thyj previously approved these changes Feb 24, 2022
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for also fixing the is_daemon_running check 🙂

zFernand0
zFernand0 previously approved these changes Feb 24, 2022
gejohnston
gejohnston previously approved these changes Feb 24, 2022
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
@awharn awharn dismissed stale reviews from gejohnston, zFernand0, and t1m0thyj via 0fed8dd February 24, 2022 19:04
@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 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

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants