View Issue Details

IDProjectCategoryView StatusLast Update
0008515CTT UA Test CaseApi Changepublic2023-05-12 14:25
ReporterJim Luth Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Fixed in Version1.03.09.501 
Summary0008515: Sending DataChangeNotification before CreateMonitoredItemsResponse is send allowed ?
Description

Found while developing a client.

While creating MonitoredItem most of the server/client follows this pattern:

1-CreateSubscriptionRequest
< 1-CreateSubscriptionRequest
2-PublishRequest
3-PublishRequest
4-CreateMonitoredItemsRequest
< 4-CreateMonitoredItemsResponse
< 2-PublishRespnse (with Initial values)
5-PublishRequest
< 3-PublishRespnse (with som more values)

Some servers implementation may be publishing DataChangeNotification on new monitored items even before the server had a chance to send the CreateMonitoredItemsResponse to the client (Codesys)

The patterns becomes in this case:

1-CreateSubscriptionRequest
< 1-CreateSubscriptionRequest
2-PublishRequest
3-PublishRequest
4-CreateMonitoredItemsRequest
< 2-PublishRespnse (with Initial values)
5-PublishRequest
< 4-CreateMonitoredItemsResponse <<< LATE
< 3-PublishRespnse (with som more values)

This may cause some initial data change value to never be processed by the client, ( depending on its implementation ) if the actual data recording on the client-side is only effective after the CreateMonitoredItems is completed.

Is this case clearly allowed by the specification?

If yes, shall we describe it in the spec ?

Also this specific scenario would need a CTT unittest ... as some client implementation might miss some

At this time, no CTT test capture this specific edge case.

TagsNo tags attached.
Files Affected

Relationships

related to 0007043 closedMatthias Damm 10000-004: Services Sending DataChangeNotification before CreateMonitoredItemsResponse is send allowed ? 

Activities

Jim Luth

2022-12-06 15:18

administrator   ~0018239

Agreed the second scenario is allowed. Agreed to add clarification in CreateMonitoredItems.

Matthias Damm

2022-12-06 15:18

reporter   ~0018240

5.12.2 CreateMonitoredItems
5.12.2.1 Description

Added following clarification:
Clients may receive Notifications for added MonitoredItems before the CreateMonitoredItems Response is received. Clients set the ClientHandle for the MonitoredItem in the CreateMonitoredItems Request and are therefore able to process the Notifications received before the create Response.

Alexander Allmendinger

2022-12-23 12:58

developer   ~0018343

Created test cases for clients ...
Monitor Client Value Change / 050: Client is prepared to process DataChangeNotifications before the CreateMonitoredItems response is received.
Created test cases for servers ...
Verify OperationResults are Good for any Value returned before the CreateMonitoredItems Response is returned.

Paul Hunkar

2023-05-12 14:25

administrator   ~0019347

review new test cases in call (both server and Client) agreed to test case and closed issue

Issue History

Date Modified Username Field Change
2022-12-06 15:18 Jim Luth New Issue
2022-12-06 15:18 Jim Luth Issue generated from: 0007043
2022-12-06 15:18 Jim Luth Note Added: 0018239
2022-12-06 15:18 Jim Luth Note Added: 0018240
2022-12-06 15:18 Jim Luth Relationship added related to 0007043
2022-12-06 15:18 Jim Luth Project 10000-004: Services => CTT UA Test Case
2022-12-06 15:18 Jim Luth Category Spec => Api Change
2022-12-23 12:58 Alexander Allmendinger Assigned To => Alexander Allmendinger
2022-12-23 12:58 Alexander Allmendinger Status new => resolved
2022-12-23 12:58 Alexander Allmendinger Resolution open => fixed
2022-12-23 12:58 Alexander Allmendinger Note Added: 0018343
2023-05-12 14:25 Paul Hunkar Status resolved => closed
2023-05-12 14:25 Paul Hunkar Fixed in Version => 1.03.09.501
2023-05-12 14:25 Paul Hunkar Note Added: 0019347