lizhanhui closed pull request #365: [ISSUE #364]Fix conflict found in the merge
process
URL: https://github.com/apache/rocketmq/pull/365
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/client/src/main/java/org/apache/rocketmq/client/consumer/rebalance/AllocateMachineRoomNearby.java
b/client/src/main/java/org/apache/rocketmq/client/consumer/rebalance/AllocateMachineRoomNearby.java
index 9b166e7a9..ec0f7f648 100644
---
a/client/src/main/java/org/apache/rocketmq/client/consumer/rebalance/AllocateMachineRoomNearby.java
+++
b/client/src/main/java/org/apache/rocketmq/client/consumer/rebalance/AllocateMachineRoomNearby.java
@@ -24,7 +24,7 @@
import org.apache.rocketmq.client.consumer.AllocateMessageQueueStrategy;
import org.apache.rocketmq.client.log.ClientLogger;
import org.apache.rocketmq.common.message.MessageQueue;
-import org.slf4j.Logger;
+import org.apache.rocketmq.logging.InternalLogger;
/**
* An allocate strategy proxy for based on machine room nearside priority. An
actual allocate strategy can be
@@ -35,7 +35,7 @@
* no alive consumer to monopolize them.
*/
public class AllocateMachineRoomNearby implements AllocateMessageQueueStrategy
{
- private final Logger log = ClientLogger.getLog();
+ private final InternalLogger log = ClientLogger.getLog();
private final AllocateMessageQueueStrategy
allocateMessageQueueStrategy;//actual allocate strategy
private final MachineRoomResolver machineRoomResolver;
diff --git
a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java
b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java
index 99aab9e07..c3da3e9af 100644
---
a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java
+++
b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingAbstractTest.java
@@ -36,7 +36,7 @@
@Test
public void testProcessResponseCommand() throws InterruptedException {
final Semaphore semaphore = new Semaphore(0);
- ResponseFuture responseFuture = new ResponseFuture(1, 3000, new
InvokeCallback() {
+ ResponseFuture responseFuture = new ResponseFuture(null,1, 3000, new
InvokeCallback() {
@Override
public void operationComplete(final ResponseFuture responseFuture)
{
assertThat(semaphore.availablePermits()).isEqualTo(0);
@@ -57,7 +57,7 @@ public void operationComplete(final ResponseFuture
responseFuture) {
@Test
public void testProcessResponseCommand_NullCallBack() throws
InterruptedException {
final Semaphore semaphore = new Semaphore(0);
- ResponseFuture responseFuture = new ResponseFuture(1, 3000, null,
+ ResponseFuture responseFuture = new ResponseFuture(null,1, 3000, null,
new SemaphoreReleaseOnlyOnce(semaphore));
remotingAbstract.responseTable.putIfAbsent(1, responseFuture);
@@ -72,7 +72,7 @@ public void testProcessResponseCommand_NullCallBack() throws
InterruptedExceptio
@Test
public void testProcessResponseCommand_RunCallBackInCurrentThread() throws
InterruptedException {
final Semaphore semaphore = new Semaphore(0);
- ResponseFuture responseFuture = new ResponseFuture(1, 3000, new
InvokeCallback() {
+ ResponseFuture responseFuture = new ResponseFuture(null,1, 3000, new
InvokeCallback() {
@Override
public void operationComplete(final ResponseFuture responseFuture)
{
assertThat(semaphore.availablePermits()).isEqualTo(0);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services