<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>3925</bug_id>
          
          <creation_ts>2005-11-18 14:51</creation_ts>
          <short_desc>Misconfigured database + Index service registration == messy logs</short_desc>
          <delta_ts>2006-02-07 01:42:43</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>RFT</product>
          <component>RFT</component>
          <version>4.0.1</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>3926</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Charles Bacon">bacon@mcs.anl.gov</reporter>
          <assigned_to name="Ravi Madduri">madduri@mcs.anl.gov</assigned_to>
          <cc>ogsa-bugs@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Charles Bacon">bacon@mcs.anl.gov</who>
            <bug_when>2005-11-18 14:51:13</bug_when>
            <thetext>I have an upstream setup in my hierarchy.xml for MDS, but I have not setup RFT.  Every 60s, I get:

2005-11-18 14:42:46,629 ERROR impl.QueryAggregatorSource [Thread-12,pollGetMulti
ple:149] Exception Getting Multiple Resource Properties from https://140.221.8.1
09:8443/wsrf/services/ReliableFileTransferFactoryService: java.rmi.RemoteExcepti
on: Failed to serialize resource property org.globus.transfer.reliable.service.f
actory.TotalNumberOfBytesTransferred@17892d5; nested exception is: 
        org.apache.commons.dbcp.DbcpException: Connection refused. Check that th
e hostname and port are correct and that the postmaster is accepting TCP/IP conn
ections.


It would be nicer to return some kind of exceptional value here, I think, rather than throwing an 
exception.  I leave it up to architects whether that means returning -1 or nil, or whatever.  Maybe in the 
future some kind of &quot;canConnectToDB&quot; RP would be useful, not sure.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-12-22 15:24:46</bug_when>
            <thetext>I will make RFT send -1 when database is not configured to talk to RFT and
QueryAggregatorSource.java should be changed to treat that special</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Jarek Gawor">gawor@mcs.anl.gov</who>
            <bug_when>2006-01-03 16:28:29</bug_when>
            <thetext>What is the real issuse here? Is that the service throws an exception? That the 
mds code logs this error over &amp; over again? Or that WebMDS doesn&apos;t display 
information indicating a problem with the service? 
The bottom line to me is that the service should throw an error and the code 
that queries the service should catch the error and handle it appropriately. 
Returning -1 or nill or exposing RP such as &apos;canConnectToDB&apos; or whatever is not 
right to me because 1) it does not explain the real error and 2) exposes too 
much detail about the implementation. 
Maybe RFT shouldn&apos;t register itself to MDS in the first place if it does not 
have DB (or whatever else) configured properly. Also, maybe the mds code should 
use exponential back off when queries fail so that these log messages don&apos;t 
keep showing up frequently.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2006-02-07 01:42:43</bug_when>
            <thetext>I committed a fix for this in trunk. I made RFT not register to MDS when it is
not properly configured.</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>