<?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>3634</bug_id>
          
          <creation_ts>2005-08-11 04:00</creation_ts>
          <short_desc>Problem with RFT IDs when using MySQL database</short_desc>
          <delta_ts>2005-08-22 11:04:45</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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Emir Imamagic">eimamagi@srce.hr</reporter>
          <assigned_to name="Ravi Madduri">madduri@mcs.anl.gov</assigned_to>
          <cc>ogsa-bugs@globus.org</cc>

      

      
          <long_desc isprivate="0">
            <who name="Emir Imamagic">eimamagi@srce.hr</who>
            <bug_when>2005-08-11 04:00:02</bug_when>
            <thetext>MySQL version 3.23.58 and GT4.0.1 was used. RFT database was set up with script:
$GLOBUS_LOCATION/share/globus_wsrf_rft/rft_schema_mysql.sql 
Modifications described in Bug 3633 were aplied. 

First transfer achieved with following command went fine:
$ globusrun-ws -F host.name -s -c /bin/hostname

All the following requests failed with message:
Unable to create RFT resource
Error inserting records into database
. Caused by
java.sql.SQLException: Invalid argument value,  message from server: &quot;Duplicate
entry &apos;0&apos; for key 1&quot;

In the database, both requestid and transferid table have value 1:
mysql&gt; select * from transferid;
+-------------+
| transfer_id |
+-------------+
|           1 |
+-------------+
1 row in set (0.00 sec)

mysql&gt; select * from requestid;
+------------+
| request_id |
+------------+
|          1 |
+------------+

Tables request and transfer have one entry. ID of both entries in request and
transfer tables is set to 0:
mysql&gt; select id from request;
+----+
| id |
+----+
|  0 |
+----+

mysql&gt; select id,request_id from transfer;
+----+------------+
| id | request_id |
+----+------------+
|  0 |          0 |
+----+------------+</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-08-19 11:15:43</bug_when>
            <thetext>I just ran all the tests again with mysql version 3.23.58 and it works fine for me. I don&apos;t see this error.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-08-21 12:30:02</bug_when>
            <thetext>Any update on this ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Emir Imamagic">eimamagi@srce.hr</who>
            <bug_when>2005-08-21 13:28:16</bug_when>
            <thetext>I found the cause of this problem. In the first case I used MySQL JDBC version
3.0.8. Now I installed version 3.1.10 and it is working fine. I also tested
again with 3.0.8 and I got the same error.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-08-22 09:48:07</bug_when>
            <thetext>I will add documentation citing this. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Ravi Madduri">madduri@mcs.anl.gov</who>
            <bug_when>2005-08-22 11:04:45</bug_when>
            <thetext>Added documentation</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>