[ https://forge.continuent.org/jira/browse/SEQUOIA-879?page=all ]
     
Mathieu Peltier closed SEQUOIA-879:
-----------------------------------


Tested


> PreferredListConnectPolicy always returns preferred controller when the vdb 
> is unavailable
> ------------------------------------------------------------------------------------------
>
>          Key: SEQUOIA-879
>          URL: https://forge.continuent.org/jira/browse/SEQUOIA-879
>      Project: Sequoia
>         Type: Bug
>   Components: JDBC Driver
>     Versions: Sequoia 2.10.3
>     Reporter: Gilles Rayrat
>     Assignee: Mathieu Peltier
>      Fix For: Sequoia 2.10.4

>
>
> The following code is buggy:
>     while (selectedController == null && !preferredControllers.isEmpty())
>     {
>       index++;
>       if (index >= preferredControllers.size())
>         index = 0;
>       selectedController = (ControllerInfo) preferredControllers.get(index);
>       // check that the selected controller can be used (ie. its vdb is up)
>       if (selectedController != null
>           && !super.isVdbUpOnController(selectedController))
>       {
>         selectedController = null;
>         // we removed a controller => index must be decremented
>         index--;
>         if (index < 0)
>           index = 0;
>       }
>     }
> This will loop until the timeout expires 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to