botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 83 forks source link

Multiple attempts to create session with the same ID #317

Closed emirotin closed 5 years ago

emirotin commented 6 years ago

Revealed during the stress testing.

Results in such error logs:

21:49:46 - error: [notification::botpress] DialogEngine: insert into "dialog_sessions" ("active_on", "created_on", "id", "state") values (now(), now(), $1, $2) - duplicate key value violates unique constraint "dialog_sessions_pkey"

dmytropanontko commented 5 years ago

@emirotin Do you can provide step to reproduce?

emirotin commented 5 years ago

I might have fixed this already. The repro is: try sending lots of messages from the new user ID simultaneously. You can check the bench folder, it runs against the existing bot which should be started on port 3000 (standard)

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.