Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24859

No QJsonDbWriteRequest::ErrorCode value for UUID/version conflict

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • 5.0.0
    • (Inactive) JsonDB
    • None

    Description

      In the use case "use reproducible hashes for UUIDs as poor man's substitute for primary keys", we lack an error code to tell that object creation has failed due to the UUID conflict (which means that another client has created the object, so we need to reuse it). This makes reliable concurrent creation of objects that need to be unique with regard to some key even more tedious and error-prone.

      In general, everyone who has to deal with concurrent modification of objects in the RejectStale resolution mode probably needs this error code to implement graceful conflict resolution.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dzyubenk Denis Dzyubenko (Inactive)
            mzabaluev Mikhail Zabaluev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes