分区批处理作业消息聚合问题

时间:2016-12-20 21:07:10

标签: spring-integration spring-batch

我们正在运行一堆分区作业。有时候,一份工作会被卡住"并没有完成。我打开了日志记录并查看了发送消息和获取回复的日志语句。我看到两者的数量相同(并匹配我们的网格大小),但看不到步骤完成。

2016-12-19 19:00:12,323 DEBUG [org.springframework.integration.jms.JmsOutboundGateway$GatewayReplyListenerContainer] (org.springframework.integration.jms.JmsOutboundGateway#0.replyListener-1) Rec
eived message of type [class org.jboss.jms.message.ObjectMessageProxy] from consumer [JBossMessageConsumer->ConsumerDelegate[963904217, ID=4d7h-x6nuqwwi-1-3aky9qwi-thplfd-dx1m4a]] of session [JBo
ssSession->SessionDelegate[1869025798, ID=3d7h-x6nuqwwi-1-3aky9qwi-thplfd-dx1m4a]]

2016-12-19 19:00:12,323 DEBUG [org.springframework.integration.jms.JmsOutboundGateway] (org.springframework.integration.jms.JmsOutboundGateway#0.replyListener-1) Received reply with correlationId 52e7a2fe-5f27-43e2-877e-d51383059dfa_23

2016-12-19 19:00:12,323 DEBUG [org.springframework.integration.jms.JmsOutboundGateway] (springbatch.partitioned.jms.taskExecutor-12) xx.outbound-gateway Obtained reply with CorrelationId 52e7a2fe-5f27-43e2-877e-d51383059dfa_23

2016-12-19 19:00:12,338 DEBUG [org.springframework.integration.jms.JmsOutboundGateway] (springbatch.partitioned.jms.taskExecutor-12) converted JMS Message [delegator->JBossMessage[150186246558120156]:PERSISTENT, deliveryId=41] to integration Message payload [StepExecution: id=66106, version=3, name=xx.partitioned.loadStagingtoPc:3, status=COMPLETED, exitStatus=COMPLETED, readCount=1, filterCount=0, writeCount=1 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=1, rollbackCount=0, exitDescription=]

2016-12-19 19:00:12,338 DEBUG [org.springframework.integration.jms.JmsOutboundGateway] (springbatch.partitioned.jms.taskExecutor-12) handler 'org.springframework.integration.jms.JmsOutboundGateway#0' sending reply Message: [Payload=StepExecution: id=66106, version=3, name=xx.partitioned.loadStagingtoPc:3, status=COMPLETED, exitStatus=COMPLETED, readCount=1, filterCount=0, writeCount=1 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=1, rollbackCount=0, exitDescription=][Headers={timestamp=1482192012338, id=569a87fd-3f2f-40b8-bf47-3ac4d1b9fe0e, jms_timestamp=1482192012270, replyChannel=org.springframework.integration.channel.QueueChannel@154c762, correlationId=7923:xx.partitioned.loadStagingtoPc, jms_redelivered=false, sequenceSize=50, jms_replyTo=JBossTopic[partitionReplyTopic], sequenceNumber=11, jms_messageId=ID:JBM-cc4fc0df-3a08-4509-80f1-435454f911af}]

我看到所有消息的这些日志语句。

调试消息聚合处理的最佳方法是什么?

我找不到一个带有日志语句的类,它会显示正在发生的事情。 (Spring Batch 2.2.7)

0 个答案:

没有答案