helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1412308 [30/42] - in /incubator/helix/site-content: ./ apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/helix/ apidocs/reference/org/apache/helix/alerts/ apidocs/reference/org/apache/helix/controller/ apidocs/reference/org/a...
Date Wed, 21 Nov 2012 21:30:26 GMT
Modified: incubator/helix/site-content/xref-test/org/apache/helix/tools/TestHelixAdminScenariosRest.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/tools/TestHelixAdminScenariosRest.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/tools/TestHelixAdminScenariosRest.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/tools/TestHelixAdminScenariosRest.html Wed Nov 21 21:29:07 2012
@@ -640,134 +640,143 @@
 <a class="jxr_linenumber" name="630" href="#630">630</a> 
 <a class="jxr_linenumber" name="631" href="#631">631</a>     accessor = _startCMResultMap.get(<span class="jxr_string">"localhost_1232"</span>)._manager.getHelixDataAccessor();
 <a class="jxr_linenumber" name="632" href="#632">632</a>     LiveInstance leader = accessor.getProperty(accessor.keyBuilder().controllerLeader());
-<a class="jxr_linenumber" name="633" href="#633">633</a>     Assert.assertTrue(leader.getInstanceName().startsWith(<span class="jxr_string">"controller_900"</span>));
-<a class="jxr_linenumber" name="634" href="#634">634</a> 
-<a class="jxr_linenumber" name="635" href="#635">635</a>     <strong class="jxr_keyword">boolean</strong> verifyResult =
-<a class="jxr_linenumber" name="636" href="#636">636</a>         ClusterStateVerifier.verifyByZkCallback(<strong class="jxr_keyword">new</strong> MasterNbInExtViewVerifier(ZK_ADDR,
-<a class="jxr_linenumber" name="637" href="#637">637</a>                                                                               <span class="jxr_string">"clusterTest1"</span>));
-<a class="jxr_linenumber" name="638" href="#638">638</a>     Assert.assertTrue(verifyResult);
-<a class="jxr_linenumber" name="639" href="#639">639</a> 
-<a class="jxr_linenumber" name="640" href="#640">640</a>     verifyResult =
-<a class="jxr_linenumber" name="641" href="#641">641</a>         ClusterStateVerifier.verifyByZkCallback(<strong class="jxr_keyword">new</strong> BestPossAndExtViewZkVerifier(ZK_ADDR,
-<a class="jxr_linenumber" name="642" href="#642">642</a>                                                                                  <span class="jxr_string">"clusterTest1"</span>));
-<a class="jxr_linenumber" name="643" href="#643">643</a>     Assert.assertTrue(verifyResult);
-<a class="jxr_linenumber" name="644" href="#644">644</a>   }
-<a class="jxr_linenumber" name="645" href="#645">645</a> 
-<a class="jxr_linenumber" name="646" href="#646">646</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testRebalanceResource() <strong class="jxr_keyword">throws</strong> Exception
-<a class="jxr_linenumber" name="647" href="#647">647</a>   {
-<a class="jxr_linenumber" name="648" href="#648">648</a>     String resourceUrl = getResourceUrl(<span class="jxr_string">"clusterTest1"</span>, <span class="jxr_string">"db_11"</span>);
-<a class="jxr_linenumber" name="649" href="#649">649</a>     Map&lt;String, String&gt; paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
-<a class="jxr_linenumber" name="650" href="#650">650</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"3"</span>);
-<a class="jxr_linenumber" name="651" href="#651">651</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
-<a class="jxr_linenumber" name="652" href="#652">652</a> 
-<a class="jxr_linenumber" name="653" href="#653">653</a>     String ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
-<a class="jxr_linenumber" name="654" href="#654">654</a>     String response = assertSuccessPostOperation(ISUrl, paraMap, false);
-<a class="jxr_linenumber" name="655" href="#655">655</a>     ZNRecord record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
-<a class="jxr_linenumber" name="656" href="#656">656</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_11"</span>));
-<a class="jxr_linenumber" name="657" href="#657">657</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 3);
-<a class="jxr_linenumber" name="658" href="#658">658</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 3);
-<a class="jxr_linenumber" name="659" href="#659">659</a> 
-<a class="jxr_linenumber" name="660" href="#660">660</a>     deleteUrl(resourceUrl, false);
+<a class="jxr_linenumber" name="633" href="#633">633</a>     <strong class="jxr_keyword">for</strong>(<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++)
+<a class="jxr_linenumber" name="634" href="#634">634</a>     {
+<a class="jxr_linenumber" name="635" href="#635">635</a>       <strong class="jxr_keyword">if</strong>(leader != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="636" href="#636">636</a>       {
+<a class="jxr_linenumber" name="637" href="#637">637</a>         <strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="638" href="#638">638</a>       }
+<a class="jxr_linenumber" name="639" href="#639">639</a>       Thread.sleep(1000);
+<a class="jxr_linenumber" name="640" href="#640">640</a>       leader = accessor.getProperty(accessor.keyBuilder().controllerLeader());
+<a class="jxr_linenumber" name="641" href="#641">641</a>     }
+<a class="jxr_linenumber" name="642" href="#642">642</a>     Assert.assertTrue(leader.getInstanceName().startsWith(<span class="jxr_string">"controller_900"</span>));
+<a class="jxr_linenumber" name="643" href="#643">643</a> 
+<a class="jxr_linenumber" name="644" href="#644">644</a>     <strong class="jxr_keyword">boolean</strong> verifyResult =
+<a class="jxr_linenumber" name="645" href="#645">645</a>         ClusterStateVerifier.verifyByZkCallback(<strong class="jxr_keyword">new</strong> MasterNbInExtViewVerifier(ZK_ADDR,
+<a class="jxr_linenumber" name="646" href="#646">646</a>                                                                               <span class="jxr_string">"clusterTest1"</span>));
+<a class="jxr_linenumber" name="647" href="#647">647</a>     Assert.assertTrue(verifyResult);
+<a class="jxr_linenumber" name="648" href="#648">648</a> 
+<a class="jxr_linenumber" name="649" href="#649">649</a>     verifyResult =
+<a class="jxr_linenumber" name="650" href="#650">650</a>         ClusterStateVerifier.verifyByZkCallback(<strong class="jxr_keyword">new</strong> BestPossAndExtViewZkVerifier(ZK_ADDR,
+<a class="jxr_linenumber" name="651" href="#651">651</a>                                                                                  <span class="jxr_string">"clusterTest1"</span>));
+<a class="jxr_linenumber" name="652" href="#652">652</a>     Assert.assertTrue(verifyResult);
+<a class="jxr_linenumber" name="653" href="#653">653</a>   }
+<a class="jxr_linenumber" name="654" href="#654">654</a> 
+<a class="jxr_linenumber" name="655" href="#655">655</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testRebalanceResource() <strong class="jxr_keyword">throws</strong> Exception
+<a class="jxr_linenumber" name="656" href="#656">656</a>   {
+<a class="jxr_linenumber" name="657" href="#657">657</a>     String resourceUrl = getResourceUrl(<span class="jxr_string">"clusterTest1"</span>, <span class="jxr_string">"db_11"</span>);
+<a class="jxr_linenumber" name="658" href="#658">658</a>     Map&lt;String, String&gt; paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
+<a class="jxr_linenumber" name="659" href="#659">659</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"3"</span>);
+<a class="jxr_linenumber" name="660" href="#660">660</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
 <a class="jxr_linenumber" name="661" href="#661">661</a> 
-<a class="jxr_linenumber" name="662" href="#662">662</a>     <em class="jxr_comment">// re-add and rebalance</em>
-<a class="jxr_linenumber" name="663" href="#663">663</a>     String reourcesUrl =
-<a class="jxr_linenumber" name="664" href="#664">664</a>         <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/clusterTest1/resourceGroups"</span>;
-<a class="jxr_linenumber" name="665" href="#665">665</a>     response = getUrl(reourcesUrl);
-<a class="jxr_linenumber" name="666" href="#666">666</a>     Assert.assertFalse(response.contains(<span class="jxr_string">"db_11"</span>));
-<a class="jxr_linenumber" name="667" href="#667">667</a> 
-<a class="jxr_linenumber" name="668" href="#668">668</a>     paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
-<a class="jxr_linenumber" name="669" href="#669">669</a>     paraMap.put(JsonParameters.RESOURCE_GROUP_NAME, <span class="jxr_string">"db_11"</span>);
-<a class="jxr_linenumber" name="670" href="#670">670</a>     paraMap.put(JsonParameters.STATE_MODEL_DEF_REF, <span class="jxr_string">"MasterSlave"</span>);
-<a class="jxr_linenumber" name="671" href="#671">671</a>     paraMap.put(JsonParameters.PARTITIONS, <span class="jxr_string">"48"</span>);
-<a class="jxr_linenumber" name="672" href="#672">672</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addResource);
-<a class="jxr_linenumber" name="673" href="#673">673</a> 
-<a class="jxr_linenumber" name="674" href="#674">674</a>     response = assertSuccessPostOperation(reourcesUrl, paraMap, false);
-<a class="jxr_linenumber" name="675" href="#675">675</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"db_11"</span>));
+<a class="jxr_linenumber" name="662" href="#662">662</a>     String ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
+<a class="jxr_linenumber" name="663" href="#663">663</a>     String response = assertSuccessPostOperation(ISUrl, paraMap, false);
+<a class="jxr_linenumber" name="664" href="#664">664</a>     ZNRecord record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
+<a class="jxr_linenumber" name="665" href="#665">665</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_11"</span>));
+<a class="jxr_linenumber" name="666" href="#666">666</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 3);
+<a class="jxr_linenumber" name="667" href="#667">667</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 3);
+<a class="jxr_linenumber" name="668" href="#668">668</a> 
+<a class="jxr_linenumber" name="669" href="#669">669</a>     deleteUrl(resourceUrl, false);
+<a class="jxr_linenumber" name="670" href="#670">670</a> 
+<a class="jxr_linenumber" name="671" href="#671">671</a>     <em class="jxr_comment">// re-add and rebalance</em>
+<a class="jxr_linenumber" name="672" href="#672">672</a>     String reourcesUrl =
+<a class="jxr_linenumber" name="673" href="#673">673</a>         <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/clusterTest1/resourceGroups"</span>;
+<a class="jxr_linenumber" name="674" href="#674">674</a>     response = getUrl(reourcesUrl);
+<a class="jxr_linenumber" name="675" href="#675">675</a>     Assert.assertFalse(response.contains(<span class="jxr_string">"db_11"</span>));
 <a class="jxr_linenumber" name="676" href="#676">676</a> 
-<a class="jxr_linenumber" name="677" href="#677">677</a>     ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
-<a class="jxr_linenumber" name="678" href="#678">678</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"3"</span>);
-<a class="jxr_linenumber" name="679" href="#679">679</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
-<a class="jxr_linenumber" name="680" href="#680">680</a>     response = assertSuccessPostOperation(ISUrl, paraMap, false);
-<a class="jxr_linenumber" name="681" href="#681">681</a>     record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
-<a class="jxr_linenumber" name="682" href="#682">682</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_11"</span>));
-<a class="jxr_linenumber" name="683" href="#683">683</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 3);
-<a class="jxr_linenumber" name="684" href="#684">684</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 3);
+<a class="jxr_linenumber" name="677" href="#677">677</a>     paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
+<a class="jxr_linenumber" name="678" href="#678">678</a>     paraMap.put(JsonParameters.RESOURCE_GROUP_NAME, <span class="jxr_string">"db_11"</span>);
+<a class="jxr_linenumber" name="679" href="#679">679</a>     paraMap.put(JsonParameters.STATE_MODEL_DEF_REF, <span class="jxr_string">"MasterSlave"</span>);
+<a class="jxr_linenumber" name="680" href="#680">680</a>     paraMap.put(JsonParameters.PARTITIONS, <span class="jxr_string">"48"</span>);
+<a class="jxr_linenumber" name="681" href="#681">681</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addResource);
+<a class="jxr_linenumber" name="682" href="#682">682</a> 
+<a class="jxr_linenumber" name="683" href="#683">683</a>     response = assertSuccessPostOperation(reourcesUrl, paraMap, false);
+<a class="jxr_linenumber" name="684" href="#684">684</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"db_11"</span>));
 <a class="jxr_linenumber" name="685" href="#685">685</a> 
-<a class="jxr_linenumber" name="686" href="#686">686</a>     <em class="jxr_comment">// rebalance with key prefix</em>
-<a class="jxr_linenumber" name="687" href="#687">687</a>     resourceUrl = getResourceUrl(<span class="jxr_string">"clusterTest1"</span>, <span class="jxr_string">"db_22"</span>);
-<a class="jxr_linenumber" name="688" href="#688">688</a>     ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
-<a class="jxr_linenumber" name="689" href="#689">689</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"2"</span>);
-<a class="jxr_linenumber" name="690" href="#690">690</a>     paraMap.put(JsonParameters.RESOURCE_KEY_PREFIX, <span class="jxr_string">"alias"</span>);
-<a class="jxr_linenumber" name="691" href="#691">691</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
-<a class="jxr_linenumber" name="692" href="#692">692</a>     response = assertSuccessPostOperation(ISUrl, paraMap, false);
-<a class="jxr_linenumber" name="693" href="#693">693</a>     record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
-<a class="jxr_linenumber" name="694" href="#694">694</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_22"</span>));
-<a class="jxr_linenumber" name="695" href="#695">695</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 2);
-<a class="jxr_linenumber" name="696" href="#696">696</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 2);
-<a class="jxr_linenumber" name="697" href="#697">697</a>     Assert.assertTrue((((String) (record.getMapFields().keySet().toArray()[0]))).startsWith(<span class="jxr_string">"alias_"</span>));
-<a class="jxr_linenumber" name="698" href="#698">698</a>   }
-<a class="jxr_linenumber" name="699" href="#699">699</a> 
-<a class="jxr_linenumber" name="700" href="#700">700</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testAddInstance() <strong class="jxr_keyword">throws</strong> Exception
-<a class="jxr_linenumber" name="701" href="#701">701</a>   {
-<a class="jxr_linenumber" name="702" href="#702">702</a>     String clusterUrl = getClusterUrl(<span class="jxr_string">"clusterTest1"</span>);
-<a class="jxr_linenumber" name="703" href="#703">703</a>     Map&lt;String, String&gt; paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
-<a class="jxr_linenumber" name="704" href="#704">704</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addInstance);
-<a class="jxr_linenumber" name="705" href="#705">705</a>     String response = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="706" href="#706">706</a>     <em class="jxr_comment">// Add instances to cluster</em>
-<a class="jxr_linenumber" name="707" href="#707">707</a>     String instancesUrl = clusterUrl + <span class="jxr_string">"/instances"</span>;
-<a class="jxr_linenumber" name="708" href="#708">708</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 3; i++)
-<a class="jxr_linenumber" name="709" href="#709">709</a>     {
-<a class="jxr_linenumber" name="710" href="#710">710</a> 
-<a class="jxr_linenumber" name="711" href="#711">711</a>       paraMap.put(JsonParameters.INSTANCE_NAME, <span class="jxr_string">"localhost:123"</span> + i);
-<a class="jxr_linenumber" name="712" href="#712">712</a>       response = assertSuccessPostOperation(instancesUrl, paraMap, false);
-<a class="jxr_linenumber" name="713" href="#713">713</a>       Assert.assertTrue(response.contains((<span class="jxr_string">"localhost:123"</span> + i).replace(':', '_')));
-<a class="jxr_linenumber" name="714" href="#714">714</a>     }
-<a class="jxr_linenumber" name="715" href="#715">715</a>     paraMap.remove(JsonParameters.INSTANCE_NAME);
-<a class="jxr_linenumber" name="716" href="#716">716</a>     paraMap.put(JsonParameters.INSTANCE_NAMES,
-<a class="jxr_linenumber" name="717" href="#717">717</a>                 <span class="jxr_string">"localhost:1233;localhost:1234;localhost:1235;localhost:1236"</span>);
-<a class="jxr_linenumber" name="718" href="#718">718</a> 
-<a class="jxr_linenumber" name="719" href="#719">719</a>     response = assertSuccessPostOperation(instancesUrl, paraMap, false);
-<a class="jxr_linenumber" name="720" href="#720">720</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 3; i &lt;= 6; i++)
-<a class="jxr_linenumber" name="721" href="#721">721</a>     {
-<a class="jxr_linenumber" name="722" href="#722">722</a>       Assert.assertTrue(response.contains(<span class="jxr_string">"localhost_123"</span> + i));
+<a class="jxr_linenumber" name="686" href="#686">686</a>     ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
+<a class="jxr_linenumber" name="687" href="#687">687</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"3"</span>);
+<a class="jxr_linenumber" name="688" href="#688">688</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
+<a class="jxr_linenumber" name="689" href="#689">689</a>     response = assertSuccessPostOperation(ISUrl, paraMap, false);
+<a class="jxr_linenumber" name="690" href="#690">690</a>     record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
+<a class="jxr_linenumber" name="691" href="#691">691</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_11"</span>));
+<a class="jxr_linenumber" name="692" href="#692">692</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 3);
+<a class="jxr_linenumber" name="693" href="#693">693</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 3);
+<a class="jxr_linenumber" name="694" href="#694">694</a> 
+<a class="jxr_linenumber" name="695" href="#695">695</a>     <em class="jxr_comment">// rebalance with key prefix</em>
+<a class="jxr_linenumber" name="696" href="#696">696</a>     resourceUrl = getResourceUrl(<span class="jxr_string">"clusterTest1"</span>, <span class="jxr_string">"db_22"</span>);
+<a class="jxr_linenumber" name="697" href="#697">697</a>     ISUrl = resourceUrl + <span class="jxr_string">"/idealState"</span>;
+<a class="jxr_linenumber" name="698" href="#698">698</a>     paraMap.put(JsonParameters.REPLICAS, <span class="jxr_string">"2"</span>);
+<a class="jxr_linenumber" name="699" href="#699">699</a>     paraMap.put(JsonParameters.RESOURCE_KEY_PREFIX, <span class="jxr_string">"alias"</span>);
+<a class="jxr_linenumber" name="700" href="#700">700</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.rebalance);
+<a class="jxr_linenumber" name="701" href="#701">701</a>     response = assertSuccessPostOperation(ISUrl, paraMap, false);
+<a class="jxr_linenumber" name="702" href="#702">702</a>     record = JsonToObject(ZNRecord.<strong class="jxr_keyword">class</strong>, response);
+<a class="jxr_linenumber" name="703" href="#703">703</a>     Assert.assertTrue(record.getId().equalsIgnoreCase(<span class="jxr_string">"db_22"</span>));
+<a class="jxr_linenumber" name="704" href="#704">704</a>     Assert.assertTrue((((List&lt;String&gt;) (record.getListFields().values().toArray()[0]))).size() == 2);
+<a class="jxr_linenumber" name="705" href="#705">705</a>     Assert.assertTrue((((Map&lt;String, String&gt;) (record.getMapFields().values().toArray()[0]))).size() == 2);
+<a class="jxr_linenumber" name="706" href="#706">706</a>     Assert.assertTrue((((String) (record.getMapFields().keySet().toArray()[0]))).startsWith(<span class="jxr_string">"alias_"</span>));
+<a class="jxr_linenumber" name="707" href="#707">707</a>   }
+<a class="jxr_linenumber" name="708" href="#708">708</a> 
+<a class="jxr_linenumber" name="709" href="#709">709</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> testAddInstance() <strong class="jxr_keyword">throws</strong> Exception
+<a class="jxr_linenumber" name="710" href="#710">710</a>   {
+<a class="jxr_linenumber" name="711" href="#711">711</a>     String clusterUrl = getClusterUrl(<span class="jxr_string">"clusterTest1"</span>);
+<a class="jxr_linenumber" name="712" href="#712">712</a>     Map&lt;String, String&gt; paraMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
+<a class="jxr_linenumber" name="713" href="#713">713</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addInstance);
+<a class="jxr_linenumber" name="714" href="#714">714</a>     String response = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="715" href="#715">715</a>     <em class="jxr_comment">// Add instances to cluster</em>
+<a class="jxr_linenumber" name="716" href="#716">716</a>     String instancesUrl = clusterUrl + <span class="jxr_string">"/instances"</span>;
+<a class="jxr_linenumber" name="717" href="#717">717</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 3; i++)
+<a class="jxr_linenumber" name="718" href="#718">718</a>     {
+<a class="jxr_linenumber" name="719" href="#719">719</a> 
+<a class="jxr_linenumber" name="720" href="#720">720</a>       paraMap.put(JsonParameters.INSTANCE_NAME, <span class="jxr_string">"localhost:123"</span> + i);
+<a class="jxr_linenumber" name="721" href="#721">721</a>       response = assertSuccessPostOperation(instancesUrl, paraMap, false);
+<a class="jxr_linenumber" name="722" href="#722">722</a>       Assert.assertTrue(response.contains((<span class="jxr_string">"localhost:123"</span> + i).replace(':', '_')));
 <a class="jxr_linenumber" name="723" href="#723">723</a>     }
-<a class="jxr_linenumber" name="724" href="#724">724</a> 
-<a class="jxr_linenumber" name="725" href="#725">725</a>     <em class="jxr_comment">// delete one node without disable</em>
-<a class="jxr_linenumber" name="726" href="#726">726</a>     String instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_1236"</span>;
-<a class="jxr_linenumber" name="727" href="#727">727</a>     deleteUrl(instanceUrl, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="728" href="#728">728</a>     response = getUrl(instancesUrl);
-<a class="jxr_linenumber" name="729" href="#729">729</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"localhost_1236"</span>));
-<a class="jxr_linenumber" name="730" href="#730">730</a> 
-<a class="jxr_linenumber" name="731" href="#731">731</a>     <em class="jxr_comment">// delete non-exist node</em>
-<a class="jxr_linenumber" name="732" href="#732">732</a>     instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_12367"</span>;
-<a class="jxr_linenumber" name="733" href="#733">733</a>     deleteUrl(instanceUrl, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="734" href="#734">734</a>     response = getUrl(instancesUrl);
-<a class="jxr_linenumber" name="735" href="#735">735</a>     Assert.assertFalse(response.contains(<span class="jxr_string">"localhost_12367"</span>));
-<a class="jxr_linenumber" name="736" href="#736">736</a> 
-<a class="jxr_linenumber" name="737" href="#737">737</a>     <em class="jxr_comment">// disable node</em>
-<a class="jxr_linenumber" name="738" href="#738">738</a>     instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_1236"</span>;
-<a class="jxr_linenumber" name="739" href="#739">739</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.enableInstance);
-<a class="jxr_linenumber" name="740" href="#740">740</a>     paraMap.put(JsonParameters.ENABLED, <span class="jxr_string">"false"</span>);
-<a class="jxr_linenumber" name="741" href="#741">741</a>     response = assertSuccessPostOperation(instanceUrl, paraMap, false);
-<a class="jxr_linenumber" name="742" href="#742">742</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"false"</span>));
-<a class="jxr_linenumber" name="743" href="#743">743</a> 
-<a class="jxr_linenumber" name="744" href="#744">744</a>     deleteUrl(instanceUrl, false);
+<a class="jxr_linenumber" name="724" href="#724">724</a>     paraMap.remove(JsonParameters.INSTANCE_NAME);
+<a class="jxr_linenumber" name="725" href="#725">725</a>     paraMap.put(JsonParameters.INSTANCE_NAMES,
+<a class="jxr_linenumber" name="726" href="#726">726</a>                 <span class="jxr_string">"localhost:1233;localhost:1234;localhost:1235;localhost:1236"</span>);
+<a class="jxr_linenumber" name="727" href="#727">727</a> 
+<a class="jxr_linenumber" name="728" href="#728">728</a>     response = assertSuccessPostOperation(instancesUrl, paraMap, false);
+<a class="jxr_linenumber" name="729" href="#729">729</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 3; i &lt;= 6; i++)
+<a class="jxr_linenumber" name="730" href="#730">730</a>     {
+<a class="jxr_linenumber" name="731" href="#731">731</a>       Assert.assertTrue(response.contains(<span class="jxr_string">"localhost_123"</span> + i));
+<a class="jxr_linenumber" name="732" href="#732">732</a>     }
+<a class="jxr_linenumber" name="733" href="#733">733</a> 
+<a class="jxr_linenumber" name="734" href="#734">734</a>     <em class="jxr_comment">// delete one node without disable</em>
+<a class="jxr_linenumber" name="735" href="#735">735</a>     String instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_1236"</span>;
+<a class="jxr_linenumber" name="736" href="#736">736</a>     deleteUrl(instanceUrl, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="737" href="#737">737</a>     response = getUrl(instancesUrl);
+<a class="jxr_linenumber" name="738" href="#738">738</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"localhost_1236"</span>));
+<a class="jxr_linenumber" name="739" href="#739">739</a> 
+<a class="jxr_linenumber" name="740" href="#740">740</a>     <em class="jxr_comment">// delete non-exist node</em>
+<a class="jxr_linenumber" name="741" href="#741">741</a>     instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_12367"</span>;
+<a class="jxr_linenumber" name="742" href="#742">742</a>     deleteUrl(instanceUrl, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="743" href="#743">743</a>     response = getUrl(instancesUrl);
+<a class="jxr_linenumber" name="744" href="#744">744</a>     Assert.assertFalse(response.contains(<span class="jxr_string">"localhost_12367"</span>));
 <a class="jxr_linenumber" name="745" href="#745">745</a> 
-<a class="jxr_linenumber" name="746" href="#746">746</a>     <em class="jxr_comment">// add node to controller cluster</em>
-<a class="jxr_linenumber" name="747" href="#747">747</a>     paraMap.remove(JsonParameters.INSTANCE_NAME);
-<a class="jxr_linenumber" name="748" href="#748">748</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addInstance);
-<a class="jxr_linenumber" name="749" href="#749">749</a>     paraMap.put(JsonParameters.INSTANCE_NAMES, <span class="jxr_string">"controller:9000;controller:9001"</span>);
-<a class="jxr_linenumber" name="750" href="#750">750</a>     String controllerUrl = getClusterUrl(<span class="jxr_string">"Klazt3rz"</span>) + <span class="jxr_string">"/instances"</span>;
-<a class="jxr_linenumber" name="751" href="#751">751</a>     response = assertSuccessPostOperation(controllerUrl, paraMap, false);
-<a class="jxr_linenumber" name="752" href="#752">752</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"controller_9000"</span>));
-<a class="jxr_linenumber" name="753" href="#753">753</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"controller_9001"</span>));
+<a class="jxr_linenumber" name="746" href="#746">746</a>     <em class="jxr_comment">// disable node</em>
+<a class="jxr_linenumber" name="747" href="#747">747</a>     instanceUrl = instancesUrl + <span class="jxr_string">"/localhost_1236"</span>;
+<a class="jxr_linenumber" name="748" href="#748">748</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.enableInstance);
+<a class="jxr_linenumber" name="749" href="#749">749</a>     paraMap.put(JsonParameters.ENABLED, <span class="jxr_string">"false"</span>);
+<a class="jxr_linenumber" name="750" href="#750">750</a>     response = assertSuccessPostOperation(instanceUrl, paraMap, false);
+<a class="jxr_linenumber" name="751" href="#751">751</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"false"</span>));
+<a class="jxr_linenumber" name="752" href="#752">752</a> 
+<a class="jxr_linenumber" name="753" href="#753">753</a>     deleteUrl(instanceUrl, false);
 <a class="jxr_linenumber" name="754" href="#754">754</a> 
-<a class="jxr_linenumber" name="755" href="#755">755</a>     <em class="jxr_comment">// add a dup host</em>
-<a class="jxr_linenumber" name="756" href="#756">756</a>     paraMap.remove(JsonParameters.INSTANCE_NAMES);
-<a class="jxr_linenumber" name="757" href="#757">757</a>     paraMap.put(JsonParameters.INSTANCE_NAME, <span class="jxr_string">"localhost:1234"</span>);
-<a class="jxr_linenumber" name="758" href="#758">758</a>     response = assertSuccessPostOperation(instancesUrl, paraMap, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="759" href="#759">759</a>   }
-<a class="jxr_linenumber" name="760" href="#760">760</a> }
+<a class="jxr_linenumber" name="755" href="#755">755</a>     <em class="jxr_comment">// add node to controller cluster</em>
+<a class="jxr_linenumber" name="756" href="#756">756</a>     paraMap.remove(JsonParameters.INSTANCE_NAME);
+<a class="jxr_linenumber" name="757" href="#757">757</a>     paraMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.addInstance);
+<a class="jxr_linenumber" name="758" href="#758">758</a>     paraMap.put(JsonParameters.INSTANCE_NAMES, <span class="jxr_string">"controller:9000;controller:9001"</span>);
+<a class="jxr_linenumber" name="759" href="#759">759</a>     String controllerUrl = getClusterUrl(<span class="jxr_string">"Klazt3rz"</span>) + <span class="jxr_string">"/instances"</span>;
+<a class="jxr_linenumber" name="760" href="#760">760</a>     response = assertSuccessPostOperation(controllerUrl, paraMap, false);
+<a class="jxr_linenumber" name="761" href="#761">761</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"controller_9000"</span>));
+<a class="jxr_linenumber" name="762" href="#762">762</a>     Assert.assertTrue(response.contains(<span class="jxr_string">"controller_9001"</span>));
+<a class="jxr_linenumber" name="763" href="#763">763</a> 
+<a class="jxr_linenumber" name="764" href="#764">764</a>     <em class="jxr_comment">// add a dup host</em>
+<a class="jxr_linenumber" name="765" href="#765">765</a>     paraMap.remove(JsonParameters.INSTANCE_NAMES);
+<a class="jxr_linenumber" name="766" href="#766">766</a>     paraMap.put(JsonParameters.INSTANCE_NAME, <span class="jxr_string">"localhost:1234"</span>);
+<a class="jxr_linenumber" name="767" href="#767">767</a>     response = assertSuccessPostOperation(instancesUrl, paraMap, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="768" href="#768">768</a>   }
+<a class="jxr_linenumber" name="769" href="#769">769</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/tools/TestResetPartitionState.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/tools/TestResetPartitionState.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/tools/TestResetPartitionState.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/tools/TestResetPartitionState.html Wed Nov 21 21:29:07 2012
@@ -33,198 +33,192 @@
 <a class="jxr_linenumber" name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> java.util.HashMap;
 <a class="jxr_linenumber" name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
 <a class="jxr_linenumber" name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> java.util.Set;
-<a class="jxr_linenumber" name="26" href="#26">26</a>  
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.NotificationContext;
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.TestHelper;
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.ZNRecord;
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyKey.Builder;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.manager.zk.ZKHelixDataAccessor;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.manager.zk.ZkBaseDataAccessor;
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.controller.ClusterController;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.participant.MockParticipant;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.participant.MockParticipant.ErrTransition;
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.LiveInstance;
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.Message;
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.tools.ClusterSetup;
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.tools.ClusterStateVerifier;
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.webapp.resources.JsonParameters;
+<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> java.util.concurrent.atomic.AtomicInteger;
+<a class="jxr_linenumber" name="27" href="#27">27</a>  
+<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.NotificationContext;
+<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyKey.Builder;
+<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.TestHelper;
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.ZNRecord;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.manager.zk.ZKHelixDataAccessor;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.manager.zk.ZkBaseDataAccessor;
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.controller.ClusterController;
+<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.participant.MockParticipant;
+<a class="jxr_linenumber" name="36" href="#36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.mock.participant.MockParticipant.ErrTransition;
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.LiveInstance;
+<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.Message;
+<a class="jxr_linenumber" name="39" href="#39">39</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.webapp.resources.JsonParameters;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">import</strong> org.apache.log4j.Logger;
 <a class="jxr_linenumber" name="41" href="#41">41</a>  <strong class="jxr_keyword">import</strong> org.testng.Assert;
 <a class="jxr_linenumber" name="42" href="#42">42</a>  <strong class="jxr_keyword">import</strong> org.testng.annotations.Test;
 <a class="jxr_linenumber" name="43" href="#43">43</a>  
-<a class="jxr_linenumber" name="44" href="#44">44</a>  
-<a class="jxr_linenumber" name="45" href="#45">45</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">TestResetPartitionState</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/helix/tools/AdminTestBase.html">AdminTestBase</a>
-<a class="jxr_linenumber" name="46" href="#46">46</a>  {
-<a class="jxr_linenumber" name="47" href="#47">47</a>    String getClusterUrl(String cluster)
-<a class="jxr_linenumber" name="48" href="#48">48</a>    {
-<a class="jxr_linenumber" name="49" href="#49">49</a>      <strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters"</span> + <span class="jxr_string">"/"</span> + cluster;
-<a class="jxr_linenumber" name="50" href="#50">50</a>    }
-<a class="jxr_linenumber" name="51" href="#51">51</a>    
-<a class="jxr_linenumber" name="52" href="#52">52</a>    String getInstanceUrl(String cluster, String instance)
-<a class="jxr_linenumber" name="53" href="#53">53</a>    {
-<a class="jxr_linenumber" name="54" href="#54">54</a>      <strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/"</span> + cluster + <span class="jxr_string">"/instances/"</span> + instance;
-<a class="jxr_linenumber" name="55" href="#55">55</a>    }
-<a class="jxr_linenumber" name="56" href="#56">56</a>    
-<a class="jxr_linenumber" name="57" href="#57">57</a>    String getResourceUrl(String cluster, String resourceGroup)
-<a class="jxr_linenumber" name="58" href="#58">58</a>    {
-<a class="jxr_linenumber" name="59" href="#59">59</a>      <strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/"</span> + cluster + <span class="jxr_string">"/resourceGroups/"</span> + resourceGroup;
-<a class="jxr_linenumber" name="60" href="#60">60</a>    }
-<a class="jxr_linenumber" name="61" href="#61">61</a>    
-<a class="jxr_linenumber" name="62" href="#62">62</a>    <strong class="jxr_keyword">int</strong> _errToOfflineInvoked = 0;
-<a class="jxr_linenumber" name="63" href="#63">63</a>    <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">ErrTransition</a>
-<a class="jxr_linenumber" name="64" href="#64">64</a>    {
-<a class="jxr_linenumber" name="65" href="#65">65</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a>(Map&lt;String, Set&lt;String&gt;&gt; errPartitions)
-<a class="jxr_linenumber" name="66" href="#66">66</a>      {
-<a class="jxr_linenumber" name="67" href="#67">67</a>        <strong class="jxr_keyword">super</strong>(errPartitions);
-<a class="jxr_linenumber" name="68" href="#68">68</a>      }
-<a class="jxr_linenumber" name="69" href="#69">69</a>  
-<a class="jxr_linenumber" name="70" href="#70">70</a>      @Override
-<a class="jxr_linenumber" name="71" href="#71">71</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> doTransition(Message message, NotificationContext context)
-<a class="jxr_linenumber" name="72" href="#72">72</a>      {
-<a class="jxr_linenumber" name="73" href="#73">73</a>        <strong class="jxr_keyword">super</strong>.doTransition(message, context);
-<a class="jxr_linenumber" name="74" href="#74">74</a>        String fromState = message.getFromState();
-<a class="jxr_linenumber" name="75" href="#75">75</a>        String toState = message.getToState();
-<a class="jxr_linenumber" name="76" href="#76">76</a>        <strong class="jxr_keyword">if</strong> (fromState.equals(<span class="jxr_string">"ERROR"</span>) &amp;&amp; toState.equals(<span class="jxr_string">"OFFLINE"</span>))
-<a class="jxr_linenumber" name="77" href="#77">77</a>        {
-<a class="jxr_linenumber" name="78" href="#78">78</a>          <em class="jxr_comment">// System.err.println("doReset() invoked");</em>
-<a class="jxr_linenumber" name="79" href="#79">79</a>          _errToOfflineInvoked++;
-<a class="jxr_linenumber" name="80" href="#80">80</a>        }
-<a class="jxr_linenumber" name="81" href="#81">81</a>      }
-<a class="jxr_linenumber" name="82" href="#82">82</a>    }
-<a class="jxr_linenumber" name="83" href="#83">83</a>    
-<a class="jxr_linenumber" name="84" href="#84">84</a>    @Test()
-<a class="jxr_linenumber" name="85" href="#85">85</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testResetPartitionState() <strong class="jxr_keyword">throws</strong> Exception
-<a class="jxr_linenumber" name="86" href="#86">86</a>    {
-<a class="jxr_linenumber" name="87" href="#87">87</a>      String className = TestHelper.getTestClassName();
-<a class="jxr_linenumber" name="88" href="#88">88</a>      String methodName = TestHelper.getTestMethodName();
-<a class="jxr_linenumber" name="89" href="#89">89</a>      String clusterName = className + <span class="jxr_string">"_"</span> + methodName;
-<a class="jxr_linenumber" name="90" href="#90">90</a>      <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> n = 5;
-<a class="jxr_linenumber" name="91" href="#91">91</a>  
-<a class="jxr_linenumber" name="92" href="#92">92</a>      System.out.println(<span class="jxr_string">"START "</span> + clusterName + <span class="jxr_string">" at "</span>
-<a class="jxr_linenumber" name="93" href="#93">93</a>          + <strong class="jxr_keyword">new</strong> Date(System.currentTimeMillis()));
-<a class="jxr_linenumber" name="94" href="#94">94</a>  
-<a class="jxr_linenumber" name="95" href="#95">95</a>      TestHelper.setupCluster(clusterName, ZK_ADDR, 12918, <em class="jxr_comment">// participant port</em>
-<a class="jxr_linenumber" name="96" href="#96">96</a>                              <span class="jxr_string">"localhost"</span>, <em class="jxr_comment">// participant name prefix</em>
-<a class="jxr_linenumber" name="97" href="#97">97</a>                              <span class="jxr_string">"TestDB"</span>, <em class="jxr_comment">// resource name prefix</em>
-<a class="jxr_linenumber" name="98" href="#98">98</a>                              1, <em class="jxr_comment">// resources</em>
-<a class="jxr_linenumber" name="99" href="#99">99</a>                              10, <em class="jxr_comment">// partitions per resource</em>
-<a class="jxr_linenumber" name="100" href="#100">100</a>                             n, <em class="jxr_comment">// number of nodes</em>
-<a class="jxr_linenumber" name="101" href="#101">101</a>                             3, <em class="jxr_comment">// replicas</em>
-<a class="jxr_linenumber" name="102" href="#102">102</a>                             <span class="jxr_string">"MasterSlave"</span>,
-<a class="jxr_linenumber" name="103" href="#103">103</a>                             <strong class="jxr_keyword">true</strong>); <em class="jxr_comment">// do rebalance</em>
-<a class="jxr_linenumber" name="104" href="#104">104</a> 
-<a class="jxr_linenumber" name="105" href="#105">105</a>     <em class="jxr_comment">// start admin thread</em>
-<a class="jxr_linenumber" name="106" href="#106">106</a> <em class="jxr_comment">//    AdminThread adminThread = new AdminThread(ZK_ADDR, _port);</em>
-<a class="jxr_linenumber" name="107" href="#107">107</a> <em class="jxr_comment">//    adminThread.start();</em>
-<a class="jxr_linenumber" name="108" href="#108">108</a>     
-<a class="jxr_linenumber" name="109" href="#109">109</a>     
-<a class="jxr_linenumber" name="110" href="#110">110</a>     <em class="jxr_comment">// start controller</em>
-<a class="jxr_linenumber" name="111" href="#111">111</a>     <a href="../../../../org/apache/helix/mock/controller/ClusterController.html">ClusterController</a> controller =
-<a class="jxr_linenumber" name="112" href="#112">112</a>         <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/controller/ClusterController.html">ClusterController</a>(clusterName, <span class="jxr_string">"controller_0"</span>, ZK_ADDR);
-<a class="jxr_linenumber" name="113" href="#113">113</a>     controller.syncStart();
-<a class="jxr_linenumber" name="114" href="#114">114</a> 
-<a class="jxr_linenumber" name="115" href="#115">115</a>     Map&lt;String, Set&lt;String&gt;&gt; errPartitions = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Set&lt;String&gt;&gt;()
-<a class="jxr_linenumber" name="116" href="#116">116</a>     {
-<a class="jxr_linenumber" name="117" href="#117">117</a>       {
-<a class="jxr_linenumber" name="118" href="#118">118</a>         put(<span class="jxr_string">"SLAVE-MASTER"</span>, TestHelper.setOf(<span class="jxr_string">"TestDB0_4"</span>));
-<a class="jxr_linenumber" name="119" href="#119">119</a>         put(<span class="jxr_string">"OFFLINE-SLAVE"</span>, TestHelper.setOf(<span class="jxr_string">"TestDB0_8"</span>));
-<a class="jxr_linenumber" name="120" href="#120">120</a>       }
-<a class="jxr_linenumber" name="121" href="#121">121</a>     };
-<a class="jxr_linenumber" name="122" href="#122">122</a> 
-<a class="jxr_linenumber" name="123" href="#123">123</a>     <em class="jxr_comment">// start mock participants</em>
-<a class="jxr_linenumber" name="124" href="#124">124</a>     <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>[] participants = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>[n];
-<a class="jxr_linenumber" name="125" href="#125">125</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; n; i++)
-<a class="jxr_linenumber" name="126" href="#126">126</a>     {
-<a class="jxr_linenumber" name="127" href="#127">127</a>       String instanceName = <span class="jxr_string">"localhost_"</span> + (12918 + i);
-<a class="jxr_linenumber" name="128" href="#128">128</a> 
-<a class="jxr_linenumber" name="129" href="#129">129</a>       <strong class="jxr_keyword">if</strong> (i == 0)
-<a class="jxr_linenumber" name="130" href="#130">130</a>       {
-<a class="jxr_linenumber" name="131" href="#131">131</a>         participants[i] =
-<a class="jxr_linenumber" name="132" href="#132">132</a>             <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>(clusterName,
-<a class="jxr_linenumber" name="133" href="#133">133</a>                                 instanceName,
-<a class="jxr_linenumber" name="134" href="#134">134</a>                                 ZK_ADDR,
-<a class="jxr_linenumber" name="135" href="#135">135</a>                                 <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">ErrTransition</a>(errPartitions));
-<a class="jxr_linenumber" name="136" href="#136">136</a>       }
-<a class="jxr_linenumber" name="137" href="#137">137</a>       <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="138" href="#138">138</a>       {
-<a class="jxr_linenumber" name="139" href="#139">139</a>         participants[i] = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>(clusterName, instanceName, ZK_ADDR);
-<a class="jxr_linenumber" name="140" href="#140">140</a>       }
-<a class="jxr_linenumber" name="141" href="#141">141</a>       participants[i].syncStart();
-<a class="jxr_linenumber" name="142" href="#142">142</a>     }
-<a class="jxr_linenumber" name="143" href="#143">143</a> 
-<a class="jxr_linenumber" name="144" href="#144">144</a>     <em class="jxr_comment">// verify cluster</em>
-<a class="jxr_linenumber" name="145" href="#145">145</a>     Map&lt;String, Map&lt;String, String&gt;&gt; errStateMap =
-<a class="jxr_linenumber" name="146" href="#146">146</a>         <strong class="jxr_keyword">new</strong> HashMap&lt;String, Map&lt;String, String&gt;&gt;();
-<a class="jxr_linenumber" name="147" href="#147">147</a>     errStateMap.put(<span class="jxr_string">"TestDB0"</span>, <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;());
-<a class="jxr_linenumber" name="148" href="#148">148</a>     errStateMap.get(<span class="jxr_string">"TestDB0"</span>).put(<span class="jxr_string">"TestDB0_4"</span>, <span class="jxr_string">"localhost_12918"</span>);
-<a class="jxr_linenumber" name="149" href="#149">149</a>     errStateMap.get(<span class="jxr_string">"TestDB0"</span>).put(<span class="jxr_string">"TestDB0_8"</span>, <span class="jxr_string">"localhost_12918"</span>);
-<a class="jxr_linenumber" name="150" href="#150">150</a>     <strong class="jxr_keyword">boolean</strong> result =
-<a class="jxr_linenumber" name="151" href="#151">151</a>         ClusterStateVerifier.verifyByZkCallback((<strong class="jxr_keyword">new</strong> ClusterStateVerifier.BestPossAndExtViewZkVerifier(ZK_ADDR,
-<a class="jxr_linenumber" name="152" href="#152">152</a>                                                                                                        clusterName,
-<a class="jxr_linenumber" name="153" href="#153">153</a>                                                                                                        errStateMap)));
-<a class="jxr_linenumber" name="154" href="#154">154</a>     Assert.assertTrue(result, <span class="jxr_string">"Cluster verification fails"</span>);
-<a class="jxr_linenumber" name="155" href="#155">155</a>     
-<a class="jxr_linenumber" name="156" href="#156">156</a>     
-<a class="jxr_linenumber" name="157" href="#157">157</a>     <em class="jxr_comment">// reset a non-exist partition, should throw exception</em>
-<a class="jxr_linenumber" name="158" href="#158">158</a>     String hostName = <span class="jxr_string">"localhost_12918"</span>;
-<a class="jxr_linenumber" name="159" href="#159">159</a>     String instanceUrl = getInstanceUrl(clusterName, hostName);
-<a class="jxr_linenumber" name="160" href="#160">160</a> 
-<a class="jxr_linenumber" name="161" href="#161">161</a>     Map&lt;String, String&gt; paramMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
-<a class="jxr_linenumber" name="162" href="#162">162</a>     paramMap.put(JsonParameters.MANAGEMENT_COMMAND, ClusterSetup.resetPartition);
-<a class="jxr_linenumber" name="163" href="#163">163</a>     paramMap.put(JsonParameters.PARTITION, <span class="jxr_string">"TestDB0_nonExist"</span>);
-<a class="jxr_linenumber" name="164" href="#164">164</a>     paramMap.put(JsonParameters.RESOURCE, <span class="jxr_string">"TestDB0"</span>);
-<a class="jxr_linenumber" name="165" href="#165">165</a>     System.out.println(<span class="jxr_string">"IGNORABLE exception: test reset non-exist partition"</span>);
-<a class="jxr_linenumber" name="166" href="#166">166</a>     TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl, paramMap, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="167" href="#167">167</a>     
-<a class="jxr_linenumber" name="168" href="#168">168</a>     
-<a class="jxr_linenumber" name="169" href="#169">169</a>     <em class="jxr_comment">// reset one error partition</em>
-<a class="jxr_linenumber" name="170" href="#170">170</a>     errPartitions.clear();  <em class="jxr_comment">// remove("SLAVE-MASTER");</em>
-<a class="jxr_linenumber" name="171" href="#171">171</a>     participants[0].setTransition(<strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a>(errPartitions));
-<a class="jxr_linenumber" name="172" href="#172">172</a>     clearStatusUpdate(clusterName, <span class="jxr_string">"localhost_12918"</span>, <span class="jxr_string">"TestDB0"</span>, <span class="jxr_string">"TestDB0_4"</span>);
-<a class="jxr_linenumber" name="173" href="#173">173</a>     _errToOfflineInvoked = 0;
-<a class="jxr_linenumber" name="174" href="#174">174</a> 
-<a class="jxr_linenumber" name="175" href="#175">175</a>     paramMap.put(JsonParameters.PARTITION, <span class="jxr_string">"TestDB0_4 TestDB0_8"</span>);
-<a class="jxr_linenumber" name="176" href="#176">176</a>     TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl, paramMap, false);
-<a class="jxr_linenumber" name="177" href="#177">177</a> 
-<a class="jxr_linenumber" name="178" href="#178">178</a>     Thread.sleep(400); <em class="jxr_comment">// wait reset to be done</em>
-<a class="jxr_linenumber" name="179" href="#179">179</a>     System.out.println(<span class="jxr_string">"IGNORABLE exception: test reset non-error partition"</span>);
-<a class="jxr_linenumber" name="180" href="#180">180</a>     TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl, paramMap, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="181" href="#181">181</a> 
-<a class="jxr_linenumber" name="182" href="#182">182</a>     result =
-<a class="jxr_linenumber" name="183" href="#183">183</a>         ClusterStateVerifier.verifyByZkCallback(<strong class="jxr_keyword">new</strong> ClusterStateVerifier.BestPossAndExtViewZkVerifier(ZK_ADDR,
-<a class="jxr_linenumber" name="184" href="#184">184</a>                                                                                                    clusterName));
-<a class="jxr_linenumber" name="185" href="#185">185</a>     Assert.assertTrue(result);
-<a class="jxr_linenumber" name="186" href="#186">186</a>     Assert.assertEquals(_errToOfflineInvoked, 2, <span class="jxr_string">"reset() should be invoked 2 times"</span>);
-<a class="jxr_linenumber" name="187" href="#187">187</a>     
-<a class="jxr_linenumber" name="188" href="#188">188</a> 
-<a class="jxr_linenumber" name="189" href="#189">189</a>     <em class="jxr_comment">// clean up</em>
-<a class="jxr_linenumber" name="190" href="#190">190</a>     <em class="jxr_comment">// wait for all zk callbacks done</em>
-<a class="jxr_linenumber" name="191" href="#191">191</a>     Thread.sleep(1000);
-<a class="jxr_linenumber" name="192" href="#192">192</a> <em class="jxr_comment">//    adminThread.stop();</em>
-<a class="jxr_linenumber" name="193" href="#193">193</a>     controller.syncStop();
-<a class="jxr_linenumber" name="194" href="#194">194</a>     <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++)
-<a class="jxr_linenumber" name="195" href="#195">195</a>     {
-<a class="jxr_linenumber" name="196" href="#196">196</a>       participants[i].syncStop();
-<a class="jxr_linenumber" name="197" href="#197">197</a>     }
-<a class="jxr_linenumber" name="198" href="#198">198</a> 
-<a class="jxr_linenumber" name="199" href="#199">199</a>     System.out.println(<span class="jxr_string">"END "</span> + clusterName + <span class="jxr_string">" at "</span>
-<a class="jxr_linenumber" name="200" href="#200">200</a>         + <strong class="jxr_keyword">new</strong> Date(System.currentTimeMillis()));
-<a class="jxr_linenumber" name="201" href="#201">201</a>   }
+<a class="jxr_linenumber" name="44" href="#44">44</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">TestResetPartitionState</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/helix/tools/AdminTestBase.html">AdminTestBase</a> {
+<a class="jxr_linenumber" name="45" href="#45">45</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">static</strong> Logger LOG = Logger
+<a class="jxr_linenumber" name="46" href="#46">46</a>  	    .getLogger(TestResetPartitionState.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="47" href="#47">47</a>  
+<a class="jxr_linenumber" name="48" href="#48">48</a>      String getClusterUrl(String cluster) {
+<a class="jxr_linenumber" name="49" href="#49">49</a>  	<strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters"</span> + <span class="jxr_string">"/"</span> + cluster;
+<a class="jxr_linenumber" name="50" href="#50">50</a>      }
+<a class="jxr_linenumber" name="51" href="#51">51</a>  
+<a class="jxr_linenumber" name="52" href="#52">52</a>      String getInstanceUrl(String cluster, String instance) {
+<a class="jxr_linenumber" name="53" href="#53">53</a>  	<strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/"</span> + cluster
+<a class="jxr_linenumber" name="54" href="#54">54</a>  		+ <span class="jxr_string">"/instances/"</span> + instance;
+<a class="jxr_linenumber" name="55" href="#55">55</a>      }
+<a class="jxr_linenumber" name="56" href="#56">56</a>  
+<a class="jxr_linenumber" name="57" href="#57">57</a>      String getResourceUrl(String cluster, String resourceGroup) {
+<a class="jxr_linenumber" name="58" href="#58">58</a>  	<strong class="jxr_keyword">return</strong> <span class="jxr_string">"http://localhost:"</span> + ADMIN_PORT + <span class="jxr_string">"/clusters/"</span> + cluster
+<a class="jxr_linenumber" name="59" href="#59">59</a>  		+ <span class="jxr_string">"/resourceGroups/"</span> + resourceGroup;
+<a class="jxr_linenumber" name="60" href="#60">60</a>      }
+<a class="jxr_linenumber" name="61" href="#61">61</a>  
+<a class="jxr_linenumber" name="62" href="#62">62</a>      AtomicInteger _errToOfflineInvoked = <strong class="jxr_keyword">new</strong> AtomicInteger(0);
+<a class="jxr_linenumber" name="63" href="#63">63</a>  
+<a class="jxr_linenumber" name="64" href="#64">64</a>      <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">ErrTransition</a> {
+<a class="jxr_linenumber" name="65" href="#65">65</a>  	<strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a>(Map&lt;String, Set&lt;String&gt;&gt; errPartitions) {
+<a class="jxr_linenumber" name="66" href="#66">66</a>  	    <strong class="jxr_keyword">super</strong>(errPartitions);
+<a class="jxr_linenumber" name="67" href="#67">67</a>  	}
+<a class="jxr_linenumber" name="68" href="#68">68</a>  
+<a class="jxr_linenumber" name="69" href="#69">69</a>  	@Override
+<a class="jxr_linenumber" name="70" href="#70">70</a>  	<strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> doTransition(Message message, NotificationContext context) {
+<a class="jxr_linenumber" name="71" href="#71">71</a>  	    <strong class="jxr_keyword">super</strong>.doTransition(message, context);
+<a class="jxr_linenumber" name="72" href="#72">72</a>  	    String fromState = message.getFromState();
+<a class="jxr_linenumber" name="73" href="#73">73</a>  	    String toState = message.getToState();
+<a class="jxr_linenumber" name="74" href="#74">74</a>  	    <strong class="jxr_keyword">if</strong> (fromState.equals(<span class="jxr_string">"ERROR"</span>) &amp;&amp; toState.equals(<span class="jxr_string">"OFFLINE"</span>)) {
+<a class="jxr_linenumber" name="75" href="#75">75</a>  		<em class="jxr_comment">// System.err.println("doReset() invoked");</em>
+<a class="jxr_linenumber" name="76" href="#76">76</a>  		_errToOfflineInvoked.incrementAndGet();
+<a class="jxr_linenumber" name="77" href="#77">77</a>  	    }
+<a class="jxr_linenumber" name="78" href="#78">78</a>  	}
+<a class="jxr_linenumber" name="79" href="#79">79</a>      }
+<a class="jxr_linenumber" name="80" href="#80">80</a>  
+<a class="jxr_linenumber" name="81" href="#81">81</a>      @Test()
+<a class="jxr_linenumber" name="82" href="#82">82</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testResetPartitionState() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="83" href="#83">83</a>  	String className = TestHelper.getTestClassName();
+<a class="jxr_linenumber" name="84" href="#84">84</a>  	String methodName = TestHelper.getTestMethodName();
+<a class="jxr_linenumber" name="85" href="#85">85</a>  	String clusterName = className + <span class="jxr_string">"_"</span> + methodName;
+<a class="jxr_linenumber" name="86" href="#86">86</a>  	<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> n = 5;
+<a class="jxr_linenumber" name="87" href="#87">87</a>  
+<a class="jxr_linenumber" name="88" href="#88">88</a>  	System.out.println(<span class="jxr_string">"START "</span> + clusterName + <span class="jxr_string">" at "</span>
+<a class="jxr_linenumber" name="89" href="#89">89</a>  		+ <strong class="jxr_keyword">new</strong> Date(System.currentTimeMillis()));
+<a class="jxr_linenumber" name="90" href="#90">90</a>  
+<a class="jxr_linenumber" name="91" href="#91">91</a>  	TestHelper.setupCluster(clusterName, ZK_ADDR, 12918, <em class="jxr_comment">// participant port</em>
+<a class="jxr_linenumber" name="92" href="#92">92</a>  		<span class="jxr_string">"localhost"</span>, <em class="jxr_comment">// participant name prefix</em>
+<a class="jxr_linenumber" name="93" href="#93">93</a>  		<span class="jxr_string">"TestDB"</span>, <em class="jxr_comment">// resource name prefix</em>
+<a class="jxr_linenumber" name="94" href="#94">94</a>  		1, <em class="jxr_comment">// resources</em>
+<a class="jxr_linenumber" name="95" href="#95">95</a>  		10, <em class="jxr_comment">// partitions per resource</em>
+<a class="jxr_linenumber" name="96" href="#96">96</a>  		n, <em class="jxr_comment">// number of nodes</em>
+<a class="jxr_linenumber" name="97" href="#97">97</a>  		3, <em class="jxr_comment">// replicas</em>
+<a class="jxr_linenumber" name="98" href="#98">98</a>  		<span class="jxr_string">"MasterSlave"</span>, <strong class="jxr_keyword">true</strong>); <em class="jxr_comment">// do rebalance</em>
+<a class="jxr_linenumber" name="99" href="#99">99</a>  
+<a class="jxr_linenumber" name="100" href="#100">100</a> 	<em class="jxr_comment">// start admin thread</em>
+<a class="jxr_linenumber" name="101" href="#101">101</a> 	<em class="jxr_comment">// AdminThread adminThread = new AdminThread(ZK_ADDR, _port);</em>
+<a class="jxr_linenumber" name="102" href="#102">102</a> 	<em class="jxr_comment">// adminThread.start();</em>
+<a class="jxr_linenumber" name="103" href="#103">103</a> 
+<a class="jxr_linenumber" name="104" href="#104">104</a> 	<em class="jxr_comment">// start controller</em>
+<a class="jxr_linenumber" name="105" href="#105">105</a> 	ClusterController controller = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/controller/ClusterController.html">ClusterController</a>(clusterName,
+<a class="jxr_linenumber" name="106" href="#106">106</a> 		<span class="jxr_string">"controller_0"</span>, ZK_ADDR);
+<a class="jxr_linenumber" name="107" href="#107">107</a> 	controller.syncStart();
+<a class="jxr_linenumber" name="108" href="#108">108</a> 
+<a class="jxr_linenumber" name="109" href="#109">109</a> 	Map&lt;String, Set&lt;String&gt;&gt; errPartitions = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Set&lt;String&gt;&gt;();
+<a class="jxr_linenumber" name="110" href="#110">110</a> 	errPartitions.put(<span class="jxr_string">"SLAVE-MASTER"</span>, TestHelper.setOf(<span class="jxr_string">"TestDB0_4"</span>));
+<a class="jxr_linenumber" name="111" href="#111">111</a> 	errPartitions.put(<span class="jxr_string">"OFFLINE-SLAVE"</span>, TestHelper.setOf(<span class="jxr_string">"TestDB0_8"</span>));
+<a class="jxr_linenumber" name="112" href="#112">112</a> 
+<a class="jxr_linenumber" name="113" href="#113">113</a> 	<em class="jxr_comment">// start mock participants</em>
+<a class="jxr_linenumber" name="114" href="#114">114</a> 	MockParticipant[] participants = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>[n];
+<a class="jxr_linenumber" name="115" href="#115">115</a> 	<strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; n; i++) {
+<a class="jxr_linenumber" name="116" href="#116">116</a> 	    String instanceName = <span class="jxr_string">"localhost_"</span> + (12918 + i);
+<a class="jxr_linenumber" name="117" href="#117">117</a> 
+<a class="jxr_linenumber" name="118" href="#118">118</a> 	    <strong class="jxr_keyword">if</strong> (i == 0) {
+<a class="jxr_linenumber" name="119" href="#119">119</a> 		participants[i] = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>(clusterName,
+<a class="jxr_linenumber" name="120" href="#120">120</a> 			instanceName, ZK_ADDR, <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">ErrTransition</a>(errPartitions));
+<a class="jxr_linenumber" name="121" href="#121">121</a> 	    } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="122" href="#122">122</a> 		participants[i] = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/mock/participant/MockParticipant.html">MockParticipant</a>(clusterName,
+<a class="jxr_linenumber" name="123" href="#123">123</a> 			instanceName, ZK_ADDR);
+<a class="jxr_linenumber" name="124" href="#124">124</a> 	    }
+<a class="jxr_linenumber" name="125" href="#125">125</a> 	    participants[i].syncStart();
+<a class="jxr_linenumber" name="126" href="#126">126</a> 	}
+<a class="jxr_linenumber" name="127" href="#127">127</a> 
+<a class="jxr_linenumber" name="128" href="#128">128</a> 	<em class="jxr_comment">// verify cluster</em>
+<a class="jxr_linenumber" name="129" href="#129">129</a> 	Map&lt;String, Map&lt;String, String&gt;&gt; errStateMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Map&lt;String, String&gt;&gt;();
+<a class="jxr_linenumber" name="130" href="#130">130</a> 	errStateMap.put(<span class="jxr_string">"TestDB0"</span>, <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;());
+<a class="jxr_linenumber" name="131" href="#131">131</a> 	errStateMap.get(<span class="jxr_string">"TestDB0"</span>).put(<span class="jxr_string">"TestDB0_4"</span>, <span class="jxr_string">"localhost_12918"</span>);
+<a class="jxr_linenumber" name="132" href="#132">132</a> 	errStateMap.get(<span class="jxr_string">"TestDB0"</span>).put(<span class="jxr_string">"TestDB0_8"</span>, <span class="jxr_string">"localhost_12918"</span>);
+<a class="jxr_linenumber" name="133" href="#133">133</a> 	<strong class="jxr_keyword">boolean</strong> result = ClusterStateVerifier
+<a class="jxr_linenumber" name="134" href="#134">134</a> 		.verifyByZkCallback((<strong class="jxr_keyword">new</strong> ClusterStateVerifier.BestPossAndExtViewZkVerifier(
+<a class="jxr_linenumber" name="135" href="#135">135</a> 			ZK_ADDR, clusterName, errStateMap)));
+<a class="jxr_linenumber" name="136" href="#136">136</a> 	Assert.assertTrue(result, <span class="jxr_string">"Cluster verification fails"</span>);
+<a class="jxr_linenumber" name="137" href="#137">137</a> 
+<a class="jxr_linenumber" name="138" href="#138">138</a> 	<em class="jxr_comment">// reset a non-exist partition, should throw exception</em>
+<a class="jxr_linenumber" name="139" href="#139">139</a> 	String hostName = <span class="jxr_string">"localhost_12918"</span>;
+<a class="jxr_linenumber" name="140" href="#140">140</a> 	String instanceUrl = getInstanceUrl(clusterName, hostName);
+<a class="jxr_linenumber" name="141" href="#141">141</a> 
+<a class="jxr_linenumber" name="142" href="#142">142</a> 	Map&lt;String, String&gt; paramMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
+<a class="jxr_linenumber" name="143" href="#143">143</a> 	paramMap.put(JsonParameters.MANAGEMENT_COMMAND,
+<a class="jxr_linenumber" name="144" href="#144">144</a> 		ClusterSetup.resetPartition);
+<a class="jxr_linenumber" name="145" href="#145">145</a> 	paramMap.put(JsonParameters.PARTITION, <span class="jxr_string">"TestDB0_nonExist"</span>);
+<a class="jxr_linenumber" name="146" href="#146">146</a> 	paramMap.put(JsonParameters.RESOURCE, <span class="jxr_string">"TestDB0"</span>);
+<a class="jxr_linenumber" name="147" href="#147">147</a> 	LOG.info(<span class="jxr_string">"IGNORABLE exception: test reset non-exist partition"</span>);
+<a class="jxr_linenumber" name="148" href="#148">148</a> 	TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl,
+<a class="jxr_linenumber" name="149" href="#149">149</a> 		paramMap, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="150" href="#150">150</a> 
+<a class="jxr_linenumber" name="151" href="#151">151</a> 	<em class="jxr_comment">// reset 2 error partitions</em>
+<a class="jxr_linenumber" name="152" href="#152">152</a> 	errPartitions.clear();
+<a class="jxr_linenumber" name="153" href="#153">153</a> 	participants[0].setTransition(<strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/helix/tools/TestResetPartitionState.html">ErrTransitionWithResetCnt</a>(
+<a class="jxr_linenumber" name="154" href="#154">154</a> 		errPartitions));
+<a class="jxr_linenumber" name="155" href="#155">155</a> 	clearStatusUpdate(clusterName, <span class="jxr_string">"localhost_12918"</span>, <span class="jxr_string">"TestDB0"</span>,
+<a class="jxr_linenumber" name="156" href="#156">156</a> 		<span class="jxr_string">"TestDB0_4"</span>);
+<a class="jxr_linenumber" name="157" href="#157">157</a> 	_errToOfflineInvoked.set(0);
+<a class="jxr_linenumber" name="158" href="#158">158</a> 
+<a class="jxr_linenumber" name="159" href="#159">159</a> 	paramMap.put(JsonParameters.PARTITION, <span class="jxr_string">"TestDB0_4 TestDB0_8"</span>);
+<a class="jxr_linenumber" name="160" href="#160">160</a> 	TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl,
+<a class="jxr_linenumber" name="161" href="#161">161</a> 		paramMap, false);
+<a class="jxr_linenumber" name="162" href="#162">162</a> 
+<a class="jxr_linenumber" name="163" href="#163">163</a> 	<strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 10; i++) {
+<a class="jxr_linenumber" name="164" href="#164">164</a> 	    Thread.sleep(400); <em class="jxr_comment">// wait reset to be done</em>
+<a class="jxr_linenumber" name="165" href="#165">165</a> 	    LOG.info(<span class="jxr_string">"IGNORABLE exception: test reset non-error partition"</span>);
+<a class="jxr_linenumber" name="166" href="#166">166</a> 	    TestHelixAdminScenariosRest.assertSuccessPostOperation(instanceUrl,
+<a class="jxr_linenumber" name="167" href="#167">167</a> 		    paramMap, <strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="168" href="#168">168</a> 
+<a class="jxr_linenumber" name="169" href="#169">169</a> 	    result = ClusterStateVerifier
+<a class="jxr_linenumber" name="170" href="#170">170</a> 		    .verifyByZkCallback(<strong class="jxr_keyword">new</strong> ClusterStateVerifier.BestPossAndExtViewZkVerifier(
+<a class="jxr_linenumber" name="171" href="#171">171</a> 			    ZK_ADDR, clusterName));
+<a class="jxr_linenumber" name="172" href="#172">172</a> 	    <strong class="jxr_keyword">if</strong> (result == <strong class="jxr_keyword">true</strong>) {
+<a class="jxr_linenumber" name="173" href="#173">173</a> 		<strong class="jxr_keyword">break</strong>;
+<a class="jxr_linenumber" name="174" href="#174">174</a> 	    }
+<a class="jxr_linenumber" name="175" href="#175">175</a> 	}
+<a class="jxr_linenumber" name="176" href="#176">176</a> 	
+<a class="jxr_linenumber" name="177" href="#177">177</a> 	Assert.assertTrue(result);
+<a class="jxr_linenumber" name="178" href="#178">178</a> 	Assert.assertEquals(_errToOfflineInvoked.get(), 2,
+<a class="jxr_linenumber" name="179" href="#179">179</a> 		<span class="jxr_string">"reset() should be invoked 2 times"</span>);
+<a class="jxr_linenumber" name="180" href="#180">180</a> 
+<a class="jxr_linenumber" name="181" href="#181">181</a> 	<em class="jxr_comment">// clean up</em>
+<a class="jxr_linenumber" name="182" href="#182">182</a> 	<em class="jxr_comment">// wait for all zk callbacks done</em>
+<a class="jxr_linenumber" name="183" href="#183">183</a> 	Thread.sleep(1000);
+<a class="jxr_linenumber" name="184" href="#184">184</a> 	<em class="jxr_comment">// adminThread.stop();</em>
+<a class="jxr_linenumber" name="185" href="#185">185</a> 	controller.syncStop();
+<a class="jxr_linenumber" name="186" href="#186">186</a> 	<strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i &lt; 5; i++) {
+<a class="jxr_linenumber" name="187" href="#187">187</a> 	    participants[i].syncStop();
+<a class="jxr_linenumber" name="188" href="#188">188</a> 	}
+<a class="jxr_linenumber" name="189" href="#189">189</a> 
+<a class="jxr_linenumber" name="190" href="#190">190</a> 	System.out.println(<span class="jxr_string">"END "</span> + clusterName + <span class="jxr_string">" at "</span>
+<a class="jxr_linenumber" name="191" href="#191">191</a> 		+ <strong class="jxr_keyword">new</strong> Date(System.currentTimeMillis()));
+<a class="jxr_linenumber" name="192" href="#192">192</a>     }
+<a class="jxr_linenumber" name="193" href="#193">193</a> 
+<a class="jxr_linenumber" name="194" href="#194">194</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> clearStatusUpdate(String clusterName, String instance,
+<a class="jxr_linenumber" name="195" href="#195">195</a> 	    String resource, String partition) {
+<a class="jxr_linenumber" name="196" href="#196">196</a> 	<em class="jxr_comment">// clear status update for error partition so verify() will not fail on</em>
+<a class="jxr_linenumber" name="197" href="#197">197</a> 	<em class="jxr_comment">// old</em>
+<a class="jxr_linenumber" name="198" href="#198">198</a> 	<em class="jxr_comment">// errors</em>
+<a class="jxr_linenumber" name="199" href="#199">199</a> 	ZKHelixDataAccessor accessor = <strong class="jxr_keyword">new</strong> ZKHelixDataAccessor(clusterName,
+<a class="jxr_linenumber" name="200" href="#200">200</a> 		<strong class="jxr_keyword">new</strong> ZkBaseDataAccessor&lt;ZNRecord&gt;(_gZkClient));
+<a class="jxr_linenumber" name="201" href="#201">201</a> 	Builder keyBuilder = accessor.keyBuilder();
 <a class="jxr_linenumber" name="202" href="#202">202</a> 
-<a class="jxr_linenumber" name="203" href="#203">203</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> clearStatusUpdate(String clusterName, String instance, String resource,
-<a class="jxr_linenumber" name="204" href="#204">204</a>       String partition)
-<a class="jxr_linenumber" name="205" href="#205">205</a>   {
-<a class="jxr_linenumber" name="206" href="#206">206</a>     <em class="jxr_comment">// clear status update for error partition so verify() will not fail on old</em>
-<a class="jxr_linenumber" name="207" href="#207">207</a>     <em class="jxr_comment">// errors</em>
-<a class="jxr_linenumber" name="208" href="#208">208</a>     ZKHelixDataAccessor accessor = <strong class="jxr_keyword">new</strong> ZKHelixDataAccessor(clusterName, <strong class="jxr_keyword">new</strong> ZkBaseDataAccessor&lt;ZNRecord&gt;(_gZkClient));
-<a class="jxr_linenumber" name="209" href="#209">209</a>     Builder keyBuilder = accessor.keyBuilder();
-<a class="jxr_linenumber" name="210" href="#210">210</a> 
-<a class="jxr_linenumber" name="211" href="#211">211</a>     LiveInstance liveInstance = accessor.getProperty(keyBuilder.liveInstance(instance));
-<a class="jxr_linenumber" name="212" href="#212">212</a>     accessor.removeProperty(keyBuilder.stateTransitionStatus(instance, liveInstance.getSessionId(), resource, partition));
-<a class="jxr_linenumber" name="213" href="#213">213</a> 
-<a class="jxr_linenumber" name="214" href="#214">214</a>    }
-<a class="jxr_linenumber" name="215" href="#215">215</a>   
-<a class="jxr_linenumber" name="216" href="#216">216</a>   <em class="jxr_comment">// TODO: throw exception in reset()</em>
-<a class="jxr_linenumber" name="217" href="#217">217</a> }
+<a class="jxr_linenumber" name="203" href="#203">203</a> 	LiveInstance liveInstance = accessor.getProperty(keyBuilder
+<a class="jxr_linenumber" name="204" href="#204">204</a> 		.liveInstance(instance));
+<a class="jxr_linenumber" name="205" href="#205">205</a> 	accessor.removeProperty(keyBuilder.stateTransitionStatus(instance,
+<a class="jxr_linenumber" name="206" href="#206">206</a> 		liveInstance.getSessionId(), resource, partition));
+<a class="jxr_linenumber" name="207" href="#207">207</a> 
+<a class="jxr_linenumber" name="208" href="#208">208</a>     }
+<a class="jxr_linenumber" name="209" href="#209">209</a> 
+<a class="jxr_linenumber" name="210" href="#210">210</a>     <em class="jxr_comment">// TODO: throw exception in reset()</em>
+<a class="jxr_linenumber" name="211" href="#211">211</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/tools/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/tools/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/tools/package-frame.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/tools/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.tools</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.tools</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/tools/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/tools/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/tools/package-summary.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/tools/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.tools</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.tools</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/util/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/util/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/util/package-frame.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/util/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.util</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.util</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/util/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/util/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/util/package-summary.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/util/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.util</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.util</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-frame.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.webapp</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.webapp</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-summary.html (original)
+++ incubator/helix/site-content/xref-test/org/apache/helix/webapp/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.webapp</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.webapp</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/overview-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/overview-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/overview-frame.html (original)
+++ incubator/helix/site-content/xref-test/overview-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref-test/overview-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref-test/overview-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref-test/overview-summary.html (original)
+++ incubator/helix/site-content/xref-test/overview-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference</title>
 		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />
 	</head>
 	<body>
@@ -24,7 +24,7 @@
 	        </ul>
       	</div>
 		
-		      	<h2>Helix 0.6-incubating-SNAPSHOT Reference</h2>
+		      	<h2>Apache Helix 0.6-incubating-SNAPSHOT Reference</h2>
 
 		<table class="summary">
         	<thead>



Mime
View raw message