[
https://issues.apache.org/jira/browse/RATIS-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453398#comment-16453398
]
Tsz Wo Nicholas Sze commented on RATIS-226:
-------------------------------------------
Just have tried the patch by
{code}
mvn -DskipShade test -fae '-Dtest=TestRaftExceptionWith*'
{code}
but TestRaftExceptionWithHadoopRpc is still executed. It seems that profile
somehow is no longer working.
- We may skip tests as below; see
http://maven.apache.org/plugins-archives/maven-surefire-plugin-2.12.4/examples/skipping-test.html
{code}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
{code}
- We should also skip the Hadoop tests in ratis-example. Just comment out the
Hadoop factory in ParameterizedBaseTest.
{code}
+++
b/ratis-examples/src/test/java/org/apache/ratis/examples/ParameterizedBaseTest.java
@@ -108,7 +108,7 @@ public abstract class ParameterizedBaseTest extends
BaseTest {
add(clusters, MiniRaftClusterWithNetty.FACTORY, ids.next(), prop);
}
if (isAll || classes.contains(MiniRaftClusterWithHadoopRpc.class)) {
- add(clusters, MiniRaftClusterWithHadoopRpc.FACTORY, ids.next(), prop);
+// add(clusters, MiniRaftClusterWithHadoopRpc.FACTORY, ids.next(), prop);
}
for(int i = 0; i < clusters.size(); i++) {
LOG.info(i + ": " + clusters.get(i)[0].getClass().getSimpleName());
{code}
> Skip the hadoop-rpc unit tests and TestRaftStream
> -------------------------------------------------
>
> Key: RATIS-226
> URL: https://issues.apache.org/jira/browse/RATIS-226
> Project: Ratis
> Issue Type: Improvement
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Kit Hui
> Priority: Major
> Attachments: r226_20180426.patch
>
>
> The hadoop-rpc tests are currently unreliable since they are not well
> maintained. Let's skip them for the moment.
> TestRaftStream also has some known problem (see RATIS-149). Let's ignore it.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)