mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #1063 , rocketmq bugfix
This commit is contained in:
@@ -63,7 +63,6 @@ public class CanalRocketMQProducer implements CanalMQProducer {
|
|||||||
return mqs.get(partition);
|
return mqs.get(partition);
|
||||||
}
|
}
|
||||||
}, null);
|
}, null);
|
||||||
callback.commit();
|
|
||||||
} catch (MQClientException | RemotingException | MQBrokerException | InterruptedException e) {
|
} catch (MQClientException | RemotingException | MQBrokerException | InterruptedException e) {
|
||||||
logger.error("Send message error!", e);
|
logger.error("Send message error!", e);
|
||||||
callback.rollback();
|
callback.rollback();
|
||||||
@@ -122,7 +121,6 @@ public class CanalRocketMQProducer implements CanalMQProducer {
|
|||||||
logger.error("send flat message to hashed partition error", e);
|
logger.error("send flat message to hashed partition error", e);
|
||||||
callback.rollback();
|
callback.rollback();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,6 +128,10 @@ public class CanalRocketMQProducer implements CanalMQProducer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
callback.commit();
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("send message to rocket topic: {}", destination.getTopic());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user