diff --git a/filter/src/test/java/org/apache/rocketmq/filter/ParserTest.java b/filter/src/test/java/org/apache/rocketmq/filter/ParserTest.java
index 36ef2714fcc..115632faa0a 100644
--- a/filter/src/test/java/org/apache/rocketmq/filter/ParserTest.java
+++ b/filter/src/test/java/org/apache/rocketmq/filter/ParserTest.java
@@ -84,14 +84,17 @@ public void testParse_decimalOverFlow() {
@Test
public void testParse_floatOverFlow() {
try {
- String str = "1";
- for (int i = 0; i < 2048; i++) {
- str += "111111111111111111111111111111111111111111111111111";
+ StringBuffer sb = new StringBuffer(210000);
+ sb.append("1");
+ for (int i = 0; i < 2048; i ++) {
+ sb.append("111111111111111111111111111111111111111111111111111");
}
- str += ".";
- for (int i = 0; i < 2048; i++) {
- str += "111111111111111111111111111111111111111111111111111";
+ sb.append(".");
+ for (int i = 0; i < 2048; i ++) {
+ sb.append("111111111111111111111111111111111111111111111111111");
}
+ String str = sb.toString();
+
SelectorParser.parse("a > " + str);
diff --git a/pom.xml b/pom.xml
index 6fe4f73f1b9..72cd3496399 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,7 +157,7 @@
-
+
true
@@ -315,6 +315,7 @@
maven-surefire-plugin
2.19.1
+ 1
1
true
@@ -333,6 +334,7 @@
maven-failsafe-plugin
2.19.1
+ 1
**/NormalMsgDelayIT.java
diff --git a/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java b/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java
index 4fc7412b1fd..1ade7c2838e 100644
--- a/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java
+++ b/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java
@@ -247,7 +247,7 @@ public void shutdown() {
try {
- Thread.sleep(1000 * 3);
+ Thread.sleep(1000);
} catch (InterruptedException e) {
log.error("shutdown Exception, ", e);
}
diff --git a/store/src/test/java/org/apache/rocketmq/store/ConsumeQueueTest.java b/store/src/test/java/org/apache/rocketmq/store/ConsumeQueueTest.java
index b7d38f8c78f..7e01b8513c9 100644
--- a/store/src/test/java/org/apache/rocketmq/store/ConsumeQueueTest.java
+++ b/store/src/test/java/org/apache/rocketmq/store/ConsumeQueueTest.java
@@ -212,8 +212,6 @@ public void dispatch(DispatchRequest request) {
try {
try {
putMsg(master);
- // wait build consume queue
- Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
assertThat(Boolean.FALSE).isTrue();
diff --git a/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQAsyncSendProducer.java b/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQAsyncSendProducer.java
index 2f8af68b31e..9907cac8008 100644
--- a/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQAsyncSendProducer.java
+++ b/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQAsyncSendProducer.java
@@ -26,10 +26,11 @@
import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.client.producer.MessageQueueSelector;
import org.apache.rocketmq.client.producer.SendCallback;
+import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageQueue;
import org.apache.rocketmq.test.clientinterface.AbstractMQProducer;
-import org.apache.rocketmq.test.sendresult.SendResult;
+import org.apache.rocketmq.test.sendresult.ResultWrapper;
import org.apache.rocketmq.test.util.RandomUtil;
import org.apache.rocketmq.test.util.TestUtil;
@@ -39,20 +40,19 @@ public class RMQAsyncSendProducer extends AbstractMQProducer {
private String nsAddr = null;
private DefaultMQProducer producer = null;
private SendCallback sendCallback = null;
- private List successSendResult = Collections
- .synchronizedList(new ArrayList());
- private AtomicInteger exceptionMsgCount = new AtomicInteger(
- 0);
+ private List successSendResult = Collections.synchronizedList(new ArrayList());
+ private AtomicInteger exceptionMsgCount = new AtomicInteger(0);
private int msgSize = 0;
public RMQAsyncSendProducer(String nsAddr, String topic) {
super(topic);
this.nsAddr = nsAddr;
sendCallback = new SendCallback() {
- public void onSuccess(org.apache.rocketmq.client.producer.SendResult sendResult) {
+ @Override
+ public void onSuccess(SendResult sendResult) {
successSendResult.add(sendResult);
}
-
+ @Override
public void onException(Throwable throwable) {
exceptionMsgCount.getAndIncrement();
}
@@ -66,7 +66,7 @@ public int getSuccessMsgCount() {
return successSendResult.size();
}
- public List getSuccessSendResult() {
+ public List getSuccessSendResult() {
return successSendResult;
}
@@ -94,10 +94,12 @@ private void start() {
}
}
- public SendResult send(Object msg, Object arg) {
+ @Override
+ public ResultWrapper send(Object msg, Object arg) {
return null;
}
+ @Override
public void shutdown() {
producer.shutdown();
}
diff --git a/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQNormalProducer.java b/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQNormalProducer.java
index 42949339e33..6bbec6cb948 100644
--- a/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQNormalProducer.java
+++ b/test/src/main/java/org/apache/rocketmq/test/client/rmq/RMQNormalProducer.java
@@ -26,7 +26,7 @@
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.common.message.MessageQueue;
import org.apache.rocketmq.test.clientinterface.AbstractMQProducer;
-import org.apache.rocketmq.test.sendresult.SendResult;
+import org.apache.rocketmq.test.sendresult.ResultWrapper;
public class RMQNormalProducer extends AbstractMQProducer {
private static Logger logger = Logger.getLogger(RMQNormalProducer.class);
@@ -91,7 +91,7 @@ public void start() {
}
}
- public SendResult send(Object msg, Object orderKey) {
+ public ResultWrapper send(Object msg, Object orderKey) {
org.apache.rocketmq.client.producer.SendResult metaqResult = null;
Message message = (Message) msg;
try {
@@ -132,7 +132,7 @@ public void send(List