perfsonar-dev - Re: [pS-dev] LS Functional Tests
Subject: perfsonar development work
List archive
- From: Maciej Glowiak <>
- To: Michael Michalis <>
- Cc:
- Subject: Re: [pS-dev] LS Functional Tests
- Date: Mon, 04 Dec 2006 16:07:57 +0100
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA CXBIWXMAAEU1AABFNQF8gVf5AAAAB3RJTUUH1QYQDjo6uEWvwgAAAM5JREFUGNNN0LFqAkEUheGj KRZsfATrvENgYyH4APabxwgWGUUQC99BsNDCInUq7VImbbDZ0kayxBXMuN7jvTuKVh//mZlmQKZ1 EhQ8GAVgZECspEBdWQHRjR70KlgFKkoUaCw3ijSYQ4n5HfBK4a4jDcdDQPol/80Sr9BxZOOL4Fmr Jq8VBx7eopaSPvWGOm67fqol3j1q0XNs7Nk2cs6MU6gPNzf+ZGKQX4Ek8H6rAnFZnXB2vJxJcv8g C2P+WzL4tD+Txc4KydrIkh+eAdo01QbjQ84vAAAAAElFTkSuQmCC
- Organization: Poznan Supercomputing and Networking Center
Michael Michalis wrote:
Hi Maciej,
I’ve been revising some of the tests for the LS and adding more detail to it. So I found out a rather serious error. I’m not quite sure if this is a service error or my database is badly configured, but when I update a registry with a new access point and new data, that registry seems to be never deleted. Further more every time I run the test the old data are not deleted, thus accumulating a huge number of data elements for that registry. If indeed is a service error then the accumulation of data will result in spending out system resources and perhaps service break down. So could you please check out this behaviour and let me know if this is indeed a bug?
Hi Michael,
I tested the case (I hope the same). I download sources from trunk.
Then I put one "service lookup information" into the storage (which was empty before).
Then I run LS with the request you sent me. Everything worked fine. Old entry was removed and replaced by new one (with different key).
Running the test once again I got
-------------------------------------------------------------------------
<nmwg:metadata id="resultCodeMetadata">
<nmwg:eventType>error.ls.update.key_not_found</nmwg:eventType>
</nmwg:metadata>
<nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata">
<nmwgr:datum>
LSRegisterAction: key from request
[http://update_request_2_1_0.net:8080/axis/services/MA]
not found in the storage.
Can't UPDATE such data,
because can't determine
what data should be updated
</nmwgr:datum>
</nmwg:data>
</nmwg:metadata>
-------------------------------------------------------------------------
which was proper communicate in such situation (trying to update non-existent data -- because key was changed before)
In attachment: storage before first run, the request and storage after first run.
Maciej
--
--------------------------------------------------------------------
| Maciej Glowiak Network Research and Development ||
|
Poznan Supercomputing and Networking Center ||
| (+48 61) 858 2024 http://monstera.man.poznan.pl/ ||
====================================================================
Storage before:
--------------------------------------------------------------------------
<nmwg:store xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
type="LSStore">
<nmwg:metadata id="http://update_request_2_1_0.net:8080/axis/services/MA">
<perfsonar:subject id="commonParameters">
<psservice:service id="serviceParameters">
<psservice:serviceName>My_MA</psservice:serviceName>
<psservice:accessPoint>http://update_request_2_1_0.net:8080/axis/services/MA</psservice:accessPoint>
<psservice:serviceType>MA</psservice:serviceType>
<psservice:serviceDescription>A testing
MA</psservice:serviceDescription>
</psservice:service>
</perfsonar:subject>
</nmwg:metadata>
<nmwg:data
id="http://update_request_2_1_0.net:8080/axis/services/MA/1165243077946/0"
metadataIdRef="http://update_request_2_1_0.net:8080/axis/services/MA">
<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>xyz.sdf.edf.edu</nmwgt:hostName>
<nmwgt:ifName>uknown</nmwgt:ifName>
<nmwgt:ifDescription>not_initial_data</nmwgt:ifDescription>
<nmwgt:ifAddress type="ipv4">123.23.34.0</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:capacity>1000000000</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>
</nmwg:data>
</nmwg:store>
--------------------------------------------------------------------------
Request:
--------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<nmwg:message xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns="http://ggf.org/ns/nmwg/base/2.0/" type="LSRegisterRequest" id="msg1">
<nmwg:metadata id="serviceLookupInfo0">
<nmwg:key>
<nmwg:parameters id="param1">
<nmwg:parameter
name="lsKey">http://update_request_2_1_0.net:8080/axis/services/MA</nmwg:parameter>
</nmwg:parameters>
</nmwg:key>
<perfsonar:subject id="commonParameters">
<psservice:service id="serviceParameters">
<psservice:serviceName>My_MA</psservice:serviceName>
<psservice:accessPoint>http://new_update_request_2_1_0.net:8080/axis/services/MA</psservice:accessPoint>
<psservice:serviceType>MA</psservice:serviceType>
<psservice:serviceDescription> A testing
MA</psservice:serviceDescription>
</psservice:service>
</perfsonar:subject>
</nmwg:metadata>
<nmwg:data id="data0" metadataIdRef="serviceLookupInfo0">
<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>xyz.sdf.edf.edu</nmwgt:hostName>
<nmwgt:ifName>uknown</nmwgt:ifName>
<nmwgt:ifDescription>not_initial_data</nmwgt:ifDescription>
<nmwgt:ifAddress
type="ipv4">123.23.34.0</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:capacity>1000000000</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>
</nmwg:data>
</nmwg:message>
--------------------------------------------------------------------------
Storage after:
--------------------------------------------------------------------------
<nmwg:store xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
type="LSStore">
<nmwg:metadata
id="http://new_update_request_2_1_0.net:8080/axis/services/MA">
<perfsonar:subject id="commonParameters">
<psservice:service id="serviceParameters">
<psservice:serviceName>My_MA</psservice:serviceName>
<psservice:accessPoint>http://new_update_request_2_1_0.net:8080/axis/services/MA</psservice:accessPoint>
<psservice:serviceType>MA</psservice:serviceType>
<psservice:serviceDescription> A testing
MA</psservice:serviceDescription>
</psservice:service>
</perfsonar:subject>
</nmwg:metadata>
<nmwg:data
id="http://new_update_request_2_1_0.net:8080/axis/services/MA/1165243751962/0"
metadataIdRef="http://new_update_request_2_1_0.net:8080/axis/services/MA">
<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>xyz.sdf.edf.edu</nmwgt:hostName>
<nmwgt:ifName>uknown</nmwgt:ifName>
<nmwgt:ifDescription>not_initial_data</nmwgt:ifDescription>
<nmwgt:ifAddress type="ipv4">123.23.34.0</nmwgt:ifAddress>
<nmwgt:direction>in</nmwgt:direction>
<nmwgt:capacity>1000000000</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>utilization</nmwg:eventType>
</nmwg:metadata>
</nmwg:data>
</nmwg:store>
--------------------------------------------------------------------------
- LS Functional Tests, Michael Michalis, 12/01/2006
- Re: [pS-dev] LS Functional Tests, Maciej Glowiak, 12/01/2006
- Re: [pS-dev] LS Functional Tests, Maciej Glowiak, 12/04/2006
Archive powered by MHonArc 2.6.16.