Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • stork stork
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 274
    • Issues 274
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • storkstork
  • Issues
  • #484
Closed
Open
Issue created Feb 23, 2021 by Marcin Siodelski@marcinMaintainer

Committing Kea app to the database may hang

When I was testing #483 (closed), I came across an issue described in the following comment: !267 (comment 195348).

In order to reproduce, follow these steps:

  • Start Stork server,
  • Make sure that no Kea app runs on the machine with an agent,
  • Launch agent registration procedure,
  • Approve agent registration in the UI,
  • Start Kea app on the monitored machine and allow some time for the agent to discover the Kea app,
  • Navigate to the machine page and click "Get Latest State"

The request to get state should hang (not return status 200) and the app should be neither visible in the UI nor in the database. The database transaction committing the app to the database should hang.

As I explained in the following comment: !267 (comment 195373), the issue appears to be related to committing events to the database outside of an open transaction. We may consider committing the events within the transaction, but we should investigate why exactly it hangs to avoid this issue in the future.

Assignee
Assign to
Time tracking