-
Notifications
You must be signed in to change notification settings - Fork 42
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
Release remaining dataset locks when file editor stops #570
Comments
Workaround: If you re-open the file editor tab for the locked dataset, then close that tab, the lock will be released. |
Locks are taken and released by the server on command from the client. If the client stops for any reason, the server must release the locks on its behalf. So the server must monitor the client to see if it is still active. This will be implemented by a keep-alive heartbeat sent from the client to the server. If the server detects a missed heartbeat, it will release all locks requested by the client. A server can have many clients. Each client session is started by a user. One user can start many sessions. The server must release only those locks taken by that client session. Implementation. Add 2 fields to the lock table in the server
Logic.
|
I looked in zss for is some identifier connected with the client process that's running the file editor window, for example on the HTTP request. However, Irek informed me that zss doesn't store any client info. It only verifies the cookie by decoding it using a symmetric key. |
If you watch the
You will see that this comes from
which is called, a few levels up, by So in that service, you could perform
On the client side, you have to issue a call to that service every time window. |
We ended up implementing this for now zowe/zss#355 and it seems to be working simply. So, lets close this epic as completed. If specifically pessmistic writing is needed in the future, we'll take a look at this work again. |
The purpose of this item is to release locks the WEBUI user has taken on datasets in the cases when the user has not specifically released them.
Parent epic: #498
Dataset locks will persist unless explicitly released. The WEBUI user can do this by closing the file editor tab for that dataset. The problem to solve is that if
then the remaining locks will not be released, so the locked dataset can't be accessed.
The text was updated successfully, but these errors were encountered: