Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Error ScenarioExpected behaviorSign-off
1DMI Downrejected
2DMI Not responding withing 30 secpending
3create for non-existing cm handle idrejected
4delete for non-existing cm handle id(silently?) ignore
5any operation on non-existing xpathignore? (no or minimal validation, see issue #5)
6delete for non existing name/client-idTBD, should be handle in 'basic' solution
7delete for no existing cm-handle idTBDignore? (no or minimal validation, see issue #5)
8error upon error

An error scenario on a second subscription for the same cm-handle/xpath as a previous subscription which did not complete successfully (yet)

to be discussed, see tabel below


...

#subscrptions
#IssueNotes Decision
1Is it intended that CM Notification subscription request  cover (all) descendants of the given xpath too?!e.g.. if a child is removed and there is a subscription for the parent node, will a notification be send (grandchild, child leaf updates etc.) I hope NOT!
Consider:
  • Risk of client effectively subscribing to ALL data in a cm handle by specifying top level datanode(s)
  • Complexity (i.e. cost of) of merge operation. It might even required NCMP to check relevant dat model
  • Future use of wildcards, could be a viable alternative for including descendants

2Could xpath point to an element that does not exist (yet)if not how, how can I client be informed about a create event? 
3Should NCMP support re-homing, moving of a CM Handle from one DMI to another?assume only trough delete & create 
4CM Handle Delete: Should DMI or Clients be sent a subscription update (assume no)do NOT delete dmi-subscription entry until owning subscription is deleted
(just ignore upon future delete if cm handle is gone altogether)

5Validation of xpathoptions order of implement and also performance cost!
  1. none
  2. xpath-parser
  3. model check
  4. instance check

6can DMI plugin 'reject' a subscription create (for a given cm-handelhandle-xpath combination)As NCMP might not validate as per issue#5 the DMI=plugin or component further down might have to reject an invalid xpath...

Priyank Maheshwari 

yes currently DMI can use response to say which cm handles are not accepted i.e. rejected' (but not 'pending')

7implementation question: should 'rejected' DMI-subscriptions be storedI would think not
8Dimensioning of DB depends on #cm handles, #subscriptions and #xpaths per subscription, this could be too big for fast processing of updates!Need to agree maximum and possibly realistic average/total number of entries based on the characteristics  above
9Maximum (error) message size, theoretically all cm handles and all xpaths combinations could be rejected or pending leading to a very large error message!
10can each CM-Handled have different set of xpaths(s) per subscriptionteh 'basic' solution only supports a common set of daatstore/xpaths (filter)


Solution Proposals 

Current state handling for 'basic' (not merged) subscription create/delete (under development)

Expand

Scenario 1
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI responds within 30 seconds: Status OK

NCMP Send message to client: Statsu OK (no list with Rejected/Pending)


Scenario 2
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI does NOT respon with 30 seconds

NCMP Send messge to client: Pending [CH-1, CH-2]

Scenario 3
1) Create Sub from Client: CH-1, CH-2
2) All handled by DM1
3) NCMP to DMI request Create sub:  CH-1, CH-2
DMI responds within 30 seconds: Rejected [CH-2]

NCMP Send message to client: Rejected [CH-2]

Scenario 4:
4 diffrent different DMIs each handling 2 Cm Handles, create sub for all CHs 

Scenario 4-part a
DMI1 CH-1, CH-2 All accepted within 30 secs
DMI2 CH-3, CH-4 Mixed result witing witin 30 seconds e.g. Rejected [CH-4]
DMI3 CH-5, CH-6 No result after 30 seconds
DMI4 CH-7, CH-8 No result after 30 seconds

NCMP -> Client : Rejected [CH-4], Pending [ CH-5, CH-6, CH-7, CH-8 ]

4-part b
DMI3 PLugin responds after 40 seconds; status OK
NCMP -> Client : Rejected [CH-4], Pending [ CH-7, CH-8 ]

4-part c
DMI4 PLugin responds after 50 seconds; Rejected [CH-7]
NCMP -> Client : Rejected [CH-4, CH-7]

...


Existing Subscription A-10Client Create Subscription B-35 52 RequestDMI Create RequestData Model BeforeData Model After
1CH-1, [ /p/c1, /p/c2 ]CH-1, [ /p/c1 ]None


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathsubscriber
A10CH-1/p/c1[ A-10 ]


CH-1/p/c2[ A-10 ]




Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathownerssubscriber
A10CH-1/p/c1[ A-10, B-35 ]
B35CH-1/p/c2[ A-10 ]



2CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c2, /p/c3 ]CH-1, [ /p/c3 ]


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]


CH-1/p/c2[ A-10 ]




Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-1/p/c2[ A-10, B-35 ]

CH-1/p/c3[ B-35 ]



3CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-2, [ /p/c1]
CH-3, [ /p/c1]
CH-3, [ /p/c1]


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-2/p/c1[ A-10, B-35 ]

CH-3/p/c1[ B-35 ]



4CH-1, [ /p/c1]CH-1, [ /p/c1/gc1 ]CH-1, [ /p/c1/gc1 ] (see issue #1)


Expand
titleData Model...


Client  Subscription
DMI Subscription
nameclient-idcm-handlexpathowners
A10CH-1/p/c1[ A-10 ]
B35CH-1/p/c1/gc1[ B-35 ]



Gliffy Diagram
macroId5140c401-0d13-44d2-8e83-0f485d3ef9d3
nameSubscription Merge Example
pagePin1

Delete Combinations


NCMP Existing ANCMP Existing BClient Delete A RequestDMI Delete Request
1CH-1, [ /p/c1, p/c2 ]CH-1, [ /p/c1 ]CH-1, [ /p/c1, p/c2 ]CH-1, [ p/c2 ]
2CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-2, [ /p/c1]
CH-3, [ /p/c1]
CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-1, [ /p/c1]
3CH-1, [ /p/c1]

CH-1, [ /p/c1]
CH-2, [ /p/c1]
CH-1, [ /p/c1]None

...


Previous InteractionCurrent InteractionExpectationNotes
1any operation on rejected for non-existing cm-handleoperation for same non-existing cm-handlelisted in 'rejected' immediatelybehavior as normal
2create operation rejected by DMIcreate for same cm-handle/xpathtry again ?!
3create pendingcreate for same cm-handle/xpathTBD send again or just remain pending?!
4create pendingdelete for same cm-handle/xpath

5delete pendingdelete for same cm-handle/xpath
also being considered for 'basic' delete
6delete pendingcreate for same cm-handle/xpath
also being considered for 'basic' delete
7



Performance considerations

  • DMI record could reach in millions of instances
  • In memory solution (ie hazelcast) can handle 10s - 100s of Megabytes (add some sample calc)
    • still need persistence if we don't have enough intsances
  • use many small messages reduce need for amalgamation
  • amalgamated string-based solution.... 


Proposed JIRAs

PriorityComponent DescriptionJIRAEstimates
1



2



3



4



5



6



7



8



...