[ 
https://forge.continuent.org/jira/browse/SEQUOIA-1036?page=comments#action_14273
 ] 

Emmanuel Cecchet commented on SEQUOIA-1036:
-------------------------------------------

You are right. If the WaitForCompletion element is completely omitted then the 
policy is FIRST (which is wrong).
If the element is present but empty then ALL will be used.
2 options to fix this:
- fix DEFAULT_WAIT_FOR_ALL_COMPLETION definition in DatabasesParser
- make WaitForCompletionPolicy a mandatory element in the DTD (more intrusive 
since it might require existing config file changes)

> Load balancer default WaitForCompletion policy differs from the doc/dtd
> -----------------------------------------------------------------------
>
>          Key: SEQUOIA-1036
>          URL: https://forge.continuent.org/jira/browse/SEQUOIA-1036
>      Project: Sequoia
>         Type: Bug

>   Components: Configuration Files Parser
>     Versions: sequoia 2.10.10, sequoia 2.10.11, Sequoia 3.0 beta3, Sequoia 
> 2.10.9, Sequoia 2.10.8, Sequoia 2.10.7, Sequoia 2.10.6, Sequoia 2.10.5, 
> Sequoia 3.0 beta2, Sequoia 2.10.4, Sequoia 2.10.3, Sequoia 3.0 beta1, Sequoia 
> 2.10.2, Sequoia 2.10.1, Sequoia 2.10, Sequoia 2.9
>     Reporter: Matthieu Dalstein
>     Priority: Minor

>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> Hi all,
> It seems like there is an incoherence between the Sequoia documentation in 
> the sequoia.dtd file and the effective default WaitForCompletion policy.
> According to the dtd, the default policy should be to wait for all the 
> backends before replying (which I think is the safest choice and thus a good 
> default policy). However this is not the case in my configuration and only 1 
> backend is waited for, before the controller reply.
> A look at the DatabaseParser confirms this behaviour, and the effective 
> default policy seems is to wait for only 1 backend.
> private static final WaitForCompletionPolicy DEFAULT_WAIT_FOR_ALL_COMPLETION 
> = new WaitForCompletionPolicy(
>                                                                               
>      WaitForCompletionPolicy.FIRST,false,30000);
> I think this is not the expected default policy, is it ?
> Cheers

-- 
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