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

Create a Lock API for Datasets #353

Closed
NolanRogers opened this issue Dec 9, 2019 · 2 comments
Closed

Create a Lock API for Datasets #353

NolanRogers opened this issue Dec 9, 2019 · 2 comments
Assignees
Labels
zss This issue has some dependency on zss

Comments

@NolanRogers
Copy link

NolanRogers commented Dec 9, 2019

In ways that are appropriate to the purpose of being able to read, write, delete, rename datasets & members.

Need foundational **locking service ** to implement write(s) in ZSS:

  • to lock a resource
  • to free/unlock a resource
  • to check if lock exists
  • to calculate or get content hash

Some more research done in this regard:

  • optimistic locking approach

An optimistic locking approach:

  • fetch content, and calculate content hash
  • append content hast to response headers as e-tag
  • let user modify content
  • fetch and calculate content hash again, and compare it with e-tag of modified file
  • if same, grab lock , else throw error
  • replace content with modified content, and save
  • and free, lock

RSE Dataset locking mechanism:
https://www.ibm.com/support/knowledgecenter/en/SSBDYH_3.2/com.ibm.zexpl.config.hostconfigref.doc/topics/dataset_lock_owner.html

@1000TurquoisePogs
Copy link
Member

This ticket was premature, and a solution that plays well with ispf is needed. More tickets will be made.

@NakulManchanda NakulManchanda removed this from the 19PI4S6 (1.8.0) milestone Jul 17, 2020
@NakulManchanda NakulManchanda added zss This issue has some dependency on zss and removed editor labels Jul 17, 2020
@NakulManchanda
Copy link
Member

Progress is being tracked with story
#498
Locking functionality is implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
zss This issue has some dependency on zss
Projects
None yet
Development

No branches or pull requests

5 participants