Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1939

Refactor Registration Error Handling & Reporting

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • NCMP
    • None

      Analysis Current Implementation

      DELETE Registration

      • Implicit validation during conversion to YangModelCmhandle(s)
        (silently ignored)
      • Exceptions Handled:
        (any) RuntimeException, retry -> add to notDeleted on failure!

      NEW Registration

      • NO (upfront) validation
      • Exceptions Handled:
        AlreadyDefinedException -> add failure (109, already exists) response for each id
        ANY (other) Exception -> add failure (108, unknown) response for each id

      UPDATE Registration

      • NO (upfront) validation
      • Exceptions Handled:
        DataNodeNotFoundException -> add failure (100, not found) response for each id
        DataValidationException -> add failure (110, invalid id) response for each id
        ANY (other) Exception -> add failure (108, unknown) response for each id

      UPGRADE Registration

      • NOT CmHandleState.READY -> add failure (101, not ready) response for each id
      • NO exception handling (YET)

            ToineSiebelink Toine Siebelink
            ToineSiebelink Toine Siebelink
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: