Bug 2796 - setting default values for QoS and Admin Properties in Notification Service is not compliant with spec
Summary: setting default values for QoS and Admin Properties in Notification Service i...
Status: NEW
Alias: None
Product: TAO
Classification: Unclassified
Component: Notification Service (show other bugs)
Version: 1.5.6
Hardware: All All
: P3 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 2007-02-02 09:34 CST by zhangw
Modified: 2008-01-11 12:05 CST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhangw 2007-02-02 09:34:36 CST
The Notification Spec(version 1.1, formal/04-10-13) defines default values for
several properties. For example:

2.5.5.5 Maximum Events Per Consumer

"... the default setting of this property is 0, meaning that
the proxy imposes no limits on the maximum number of events
that may be queued for its consumer."
 
Also, in the spec:
 "
 2.5.6.3 Use of get_qos()
 The get_qos operation can be used to determine the current QoS properties in
 effect for a notification channel, a proxy group admin object, or an
 individual proxy. It returns all properties and their values, including
 those initialized from higher levels,and those that were never explicitly
 set but have default values.

 From this paragraph, it appears that TAO is not compliant with the Notification
spec with regard to the default values.

Here are some results from my simple testing program:

We don't get returned property value from get_admin() without explicitly calling
set_admin() , but we do get returned property value from get_qos().  I did a
simple test of what TAO Notify Service gives us without calling set_qos() or
set_admin() explicitly, i.e., I create a notify event channel, then I call
get_qos() and get_admin() on that newly created channel immediately, after that
I call get_qos() on the created supplier admin and proxy consumer. See the
output I got:
"
the default QoSProperties of the event channel has length 1
the name of the QoS property: ThreadPool

the default AdminProperties of the event channel has length 0

the default QoSProperties of supplier admin has length 1
the name of the QoS property: ThreadPool

the default QoSProperties of the proxy consumer has length 1
the name of the QoS property: ThreadPool
"

From reading the spec, get_qos () needs to return a list of all QoS properties
which have default values. But TAO only returns one QoS property - "ThreadPool".

For get_admin(), the spec is a bit vague there. It doesn't talk about default
values as get_qos() does. Since it is not clear about the default values, we
should probably do just like what get_qos() does now.

3.1.5.1 get_admin
The get_admin operation takes no input parameters, and returns a sequence of
namevalue pairs that encapsulates the current administrative settings for the
target channel.
Comment 1 Johnny Willemsen 2007-02-13 06:55:24 CST
To Wallace
Comment 2 Steve Totten 2008-01-11 12:05:24 CST
Reassigning to the general pool.