Race Condition: MCP-Server akzeptiert Requests vor Import-Ende #28
Labels
No labels
bug
build
enhancement
headless
P1-critical
P2-high
P3-medium
P4-low
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-tools/jdt-mcp-server#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
HeadlessApplication.start()startet den MCP-Server sofort und importiert Projekte in einem Daemon-Thread. Wenn ein Request kommt WÄHREND der Import noch läuft, sind die Projekte unvollständig.Betroffener Code
HeadlessApplication.java— Daemon-Thread für Import (Zeile 47-65)Auswirkung
jdt_list_projectskann 0 zurückgeben wenn Import noch läuftjdt_rename_elementkann Elemente nicht findenVorgeschlagener Fix
Entweder:
Kontext
Identifiziert bei der Analyse von #26 durch Agent jdt-duft (Markus Duft).
Fixed in
2dc6291— readiness gate viaCountDownLatchblocks all tools (exceptjdt_get_version,jdt_list_projects,jdt_import_project) until import and build are complete. 300s timeout.