Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-235

DataStore should be able to handle missing keys in writes

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Won't Do
    • None
    • None
    • mdsal
    • None
    • Operating System: All
      Platform: All

    Description

      With binding aware APIs, it is a common mistake to write an object into a particular point in the list (e.g. identifier with a target key), but fail to attach that key into the DTO being stored there.

      Given that the datastore has both data points, it can trivially correct for this mistake, allowing it to continue instead of producing a hard error.

      Implement this recovery strategy, along with a very stern LOG.warn(), which will detail the entry which was being written and the call stack where the transaction was allocated.

      Attachments

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

        Activity

          People

            tony.tkacik@gmail.com Tony Tkacik
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: