We have been discussing about "commit comment quality" and it's good practice to have at least some information describing your changes, even if they are going to sandbox. We should avoid leaving empty log comments.
[1] http://www.mail-archive.com/[email protected]/msg07553.html ---------- Forwarded message ---------- From: <[email protected]> Date: Tue, Jun 2, 2009 at 11:01 AM Subject: svn commit: r781105 - /tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml To: [email protected] Author: dougsleite Date: Tue Jun 2 18:01:46 2009 New Revision: 781105 URL: http://svn.apache.org/viewvc?rev=781105&view=rev Log: (empty) Added: tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml Added: tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml URL: http://svn.apache.org/viewvc/tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml?rev=781105&view=auto ============================================================================== --- tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml (added) +++ tuscany/sandbox/dougsleite/guardian-model/src/main/resources/recoveryrules.xml Tue Jun 2 18:01:46 2009 @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (thea + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> + +<recovery_rules> + + <rule name="Rule1" signaled_exception="org.apache.tuscany.sca.guardian.JoinException"> + + <participant match="SIGNALER"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.PrimaryExistsException" target_context="MAIN" min_participant_joined="2"/> + </participant> + + <participant match="!SIGNALER"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.BackupJoinedException" target_context="PRIMARY" min_participant_joined="2"/> + </participant> + </rule> + + <rule name="Rule2" signaled_exception="org.apache.tuscany.sca.guardian.itests.PrimaryFailedException"> + + <participant match="*.PRIMARY"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.PrimaryFailedException" target_context="INIT_CONTEXT"/> + </participant> + + <participant match="*.BACKUP"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.PrimaryFailedException" target_context="MAIN"/> + </participant> + </rule> + + <rule name="Rule3" signaled_exception="org.apache.tuscany.sca.guardian.itests.BackupFailedException"> + + <participant match="*.PRIMARY"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.BackupFailedException" target_context="PRIMARY"/> + </participant> + + <participant match="*.BACKUP"> + <throw_exception class="org.apache.tuscany.sca.guardian.itests.BackupFailedException" target_context="INIT_CONTEXT"/> + </participant> + </rule> + +</recovery_rules> -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/
