You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Andrew Westberg (JIRA)" <ji...@apache.org> on 2010/09/17 18:42:40 UTC

[jira] Created: (AMQNET-285) Error in FailoverTransport.BuildBackups()

Error in FailoverTransport.BuildBackups()
-----------------------------------------

                 Key: AMQNET-285
                 URL: https://issues.apache.org/activemq/browse/AMQNET-285
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: NMS
            Reporter: Andrew Westberg
            Assignee: Jim Gomes


Around line 1148 in FailoverTransport.cs, there is the following code:

 if(backups.Count < BackupPoolSize)
{
        break;
}

In the Java code in FailoverTransport.java, there is a loop that has the opposite effect as the C# code.
                for (Iterator<URI> iter = connectList.iterator(); iter.hasNext() && backups.size() < backupPoolSize;) {

In Java, we STAY IN the loop as long as we haven't filled up the backups collection.  In C#, we're incorrectly BAILING OUT if we haven't filled up the collection.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-285) Error in FailoverTransport.BuildBackups()

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes updated AMQNET-285:
-----------------------------

    Fix Version/s: 1.4.1

> Error in FailoverTransport.BuildBackups()
> -----------------------------------------
>
>                 Key: AMQNET-285
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-285
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: NMS
>            Reporter: Andrew Westberg
>            Assignee: Jim Gomes
>             Fix For: 1.4.1
>
>
> Around line 1148 in FailoverTransport.cs, there is the following code:
>  if(backups.Count < BackupPoolSize)
> {
>         break;
> }
> In the Java code in FailoverTransport.java, there is a loop that has the opposite effect as the C# code.
>                 for (Iterator<URI> iter = connectList.iterator(); iter.hasNext() && backups.size() < backupPoolSize;) {
> In Java, we STAY IN the loop as long as we haven't filled up the backups collection.  In C#, we're incorrectly BAILING OUT if we haven't filled up the collection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQNET-285) Error in FailoverTransport.BuildBackups()

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQNET-285.
---------------------------------

    Resolution: Fixed

Fixed in trunk and the 1.4.x fixes branch

> Error in FailoverTransport.BuildBackups()
> -----------------------------------------
>
>                 Key: AMQNET-285
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-285
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: NMS
>            Reporter: Andrew Westberg
>            Assignee: Timothy Bish
>             Fix For: 1.4.1
>
>
> Around line 1148 in FailoverTransport.cs, there is the following code:
>  if(backups.Count < BackupPoolSize)
> {
>         break;
> }
> In the Java code in FailoverTransport.java, there is a loop that has the opposite effect as the C# code.
>                 for (Iterator<URI> iter = connectList.iterator(); iter.hasNext() && backups.size() < backupPoolSize;) {
> In Java, we STAY IN the loop as long as we haven't filled up the backups collection.  In C#, we're incorrectly BAILING OUT if we haven't filled up the collection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (AMQNET-285) Error in FailoverTransport.BuildBackups()

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish reassigned AMQNET-285:
-----------------------------------

    Assignee: Timothy Bish  (was: Jim Gomes)

> Error in FailoverTransport.BuildBackups()
> -----------------------------------------
>
>                 Key: AMQNET-285
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-285
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: NMS
>            Reporter: Andrew Westberg
>            Assignee: Timothy Bish
>             Fix For: 1.4.1
>
>
> Around line 1148 in FailoverTransport.cs, there is the following code:
>  if(backups.Count < BackupPoolSize)
> {
>         break;
> }
> In the Java code in FailoverTransport.java, there is a loop that has the opposite effect as the C# code.
>                 for (Iterator<URI> iter = connectList.iterator(); iter.hasNext() && backups.size() < backupPoolSize;) {
> In Java, we STAY IN the loop as long as we haven't filled up the backups collection.  In C#, we're incorrectly BAILING OUT if we haven't filled up the collection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.