Domanda

we want to programmatically patch the access field of the Dataset and add an user. Patch semantics for array indicate override, so we need to provide the full contents of the access field. How do we avoid race conditions caused by read-modify-write? The API doesn't seem to provide conflict detection.

È stato utile?

Soluzione

There is currently no way to avoid race conditions caused by multiple users modifying the dataset acl simultaneously. In general, dataset acls change slowly enough that we haven't found this to be a problem. Patch semantics should, however protect you against simultaneous modification of other fields, such as the dataset description.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top