Duplicate listener-triggered events

I’m trying to get to the bottom of why we appear to receive duplicate listener-triggered migration eventType messages.

The messages have same same values for migrationId, transferId, migrationScopeId, createdAt, cloudAppKey, cloudUrl, jiraClientKey and confluenceClientKey but different messageIds.

The docs hint that we could get two listener-triggered events because it says: “Notifies your cloud app when core product data migration is complete or incomplete” but I don’t know how to differentiate between a complete vs incomplete event.

Hi @jbevan
Thanks for getting in touch.

The docs hint that we could get two listener-triggered events because it says: “Notifies your cloud app when core product data migration is complete or incomplete” but I don’t know how to differentiate between a complete vs incomplete event.

I believe that this not the actual intention behind ‘complete vs incomplete’. What is being stated here is that core migration can either finish in two potentially states from which app migrations can begin; COMPLETE or INCOMPLETE. This refers to the status that you can see in the CMA.

The core migration can be one status or the other - not both. You should receive a listener-triggered event if it is one of these two statuses.

For completeness sake, you should not receive a listener-triggered event if the core migration has failed.

I don’t believe our docs indicate that you should only ever receive a single listener-triggered event per transfer - but I completely understand why it’d be confusing to receive multiple with different messageIds.

I’ve raised this query internally and hopefully we’ll be able to come back to you sooner rather than later

Hi @jbevan,

If you’re getting duplicate listerner-triggered it’s like because of this bug

Your code needs to be able to deal with the duplicates for all the messages for other reasons (e.g. failure to deliver means we resend, etc.)

Regards,
James.

1 Like

Hi @jrichards , is it safe to assume that transferId will be the same for all “duplicate” migrations triggered by the same migration task?

Hi @lexek-92,

Yes, the transferId will be the same as it’s made up of the same information.

Regards,
James.