在Java服务中多次收到IoTHub文件上传通知

时间:2019-02-22 15:01:10

标签: azure file-upload notifications azure-iot-hub

我有一项服务,可通过Java SDK监听Azure IoTHub,以获取文件上传通知并进行相应的处理。

但是,问题是这些通知被多次接收,导致服务两次运行相同的操作。

我已经搜索了文档,但似乎找不到有关确认通知的任何信息。监视操作监视端点我注意到了同一件事:

Azure Event Hub Explorer > Message Received:
{
  "fileUploadCorrelationId": "56a317df147b4309aeea1d9ff1a7d70a",
  "fileUploadFilename": "",
  "time": "2019-02-22T14:29:14.6306269Z",
  "operationName": "fileUploadNotificationReceived",
  "category": "FileUploadOperations",
  "level": "Information",
  "deviceId": "",
  "ipAddress": ""
}
Azure Event Hub Explorer > Message Received:
{
  "fileUploadCorrelationId": "56a317df147b4309aeea1d9ff1a7d70a",
  "fileUploadFilename": "",
  "time": "2019-02-22T14:30:14.6416627Z",
  "operationName": "fileUploadNotificationReceived",
  "category": "FileUploadOperations",
  "level": "Information",
  "deviceId": "",
  "ipAddress": ""
}

SDK似乎已确认已收到通知,但是IoTHub第二次发送了该通知。

有人遇到过这个问题吗?

0 个答案:

没有答案