github / github/codeql-cli-binaries

`evaluation/runQueries` query server command fails silently if it fails to acquire the database lock

Open
#51 2 comments 0 reactions 0 assignees View on GitHub
CLI
Dominant language
No language data
Stars
1k
Forks
184
PR merge metrics
No merged PRs in 30d

Description

Hi!

When having several query servers running on the same database (eg: VSCode + CodeQL.nvim) the first one running a query acquires a lock for the database, and running a query using `evaluation/runQueries` command on the second one fails silently without returning the reason of the failure.

Contributor guide

Open the contributing guide

Research direction

Start at the evaluation/runQueries query server command and trace how database-lock acquisition failures are handled. Reproduce the case with two query servers using the same database; done means the second command returns the reason it could not acquire the lock instead of failing silently.

Written by the indexing model from the issue text.

Assessment

Domain
cli, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.