nodejs-pubsub icon indicating copy to clipboard operation
nodejs-pubsub copied to clipboard

enableExactlyOnceDelivery doesn't work in the emulator

Open modestaspruckus opened this issue 3 years ago • 3 comments

Environment details

  • OS: MacOs 12.6
  • Node.js version: 16.17.1
  • npm version: 8.19.1
  • @google-cloud/pubsub version: 3.2

Steps to reproduce

I've followed steps on https://github.com/googleapis/nodejs-pubsub/commit/998de35d4bffde4fcffd217347307c04031df3e2#diff-e94e8edef47e761ba16b40144b0f5b89f0a20de0a051500a50c43e4574178c80

  1. Create PULL subscription with enableExactlyOnceDelivery flag
  2. Variable this._subscriber.isExactlyOnceDelivery is undefined on subscriber.js file

image

image

I'm using pub/sub emulator

modestaspruckus avatar Oct 12 '22 16:10 modestaspruckus

@modestaspruckus Hi, thanks for the question. Unfortunately I don't think the emulator currently supports exactly-once delivery emulation. I'll put this on the agenda for tomorrow to ask if there are plans there.

Are you seeing the same issue against the real service, or is it just the emulator?

feywind avatar Oct 12 '22 17:10 feywind

Hi, Thanks for fast reply. Good to know that the problem is only on emulator. I haven't tried yet without it on production environment.

modestaspruckus avatar Oct 13 '22 07:10 modestaspruckus

It sounds like there's a new emulator release in the works.

feywind avatar Oct 13 '22 18:10 feywind

Confirmed that emulator now support exactly once.

hongalex avatar Mar 09 '23 19:03 hongalex