Skip to content

LiveQueryServer doesn't shutdown properly #8424

Closed
@dplewis

Description

@dplewis

New Issue Checklist

Issue Description

There is a flaky test on the JS SDK and I believe it is caused by the liveQueryServer not shutting down when the server shuts down. The server is shutdown but there are still connections to the liveQueryServer. This may have unwanted effects. Also there are flaky tests on the server that could be addressed
https://github.com/parse-community/Parse-SDK-JS/actions/runs/4011772368/jobs/6889651856

Steps to reproduce

  1. Start server with startLiveQueryServer: true configuration
  2. Call server.handleShutdown()
  3. Call server.close()
  4. Check if live query server is still running

Actual Outcome

LiveQueryServer is still opened

Expected Outcome

LiveQueryServer is closed

Alternatives / Workarounds

In production I use a dedicated live query server instead of the internal configuration which is recommended so I never see this issue.

Environment

Server

  • Parse Server version: 6.0.0
  • Operating system: Mac
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local

Database

  • System (MongoDB or Postgres): Mongo
  • Database version: 4.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): Javascript
  • SDK version: 4.0.0

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions