BrobridgeOrg / gravity-cli

Gravity CLI
MIT License
2 stars 3 forks source link

Gravity will combine payload's information. #10

Open TaroBill opened 2 weeks ago

TaroBill commented 2 weeks ago

We observe that when we publish faster, the result of payload will combine information. We expect individual publish do not effect each other.

version: gravity-cli : [47ca8b652eb4b3032934fb348d07b0f7c889d687] dispatcher: [49572419a6250899476c68e01159f27fe741c7da] nats image: nats:2.10.14-alpine3.19

Reproduce:

  1. Open nats and dispatcher image
  2. Create data product and ruleset with schema image image
  3. Publish an event with pk in payload
  4. Publish an event without pk in payload, but in schema.
  5. Publish an event with pk in payload. (Step 3 to Step 5 need operate faster) image
  6. Using subscribe command we can see payload's information had been combined. image

Full video

https://github.com/BrobridgeOrg/gravity-cli/assets/57003432/255ea668-daa2-4384-9d38-0d89e21968e2

william-wyliang commented 2 weeks ago

This is an issue that needs to be fixed.