Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.4
-
Fix Version/s: None
-
Component/s: API
-
Labels:None
Description
When running SQ Runner in forked mode, in case there is a bug in SQ batch (which is the case) then process may hang forever waiting for all threads to terminate.
The fix should be done in BatchLauncherMain:
public static void main(String[] args) throws IOException { new BatchLauncherMain(new BatchLauncher()).execute(args); }
should be replaced by something like:
public static void main(String[] args) { try { new BatchLauncherMain(new BatchLauncher()).execute(args); } catch (Exception e) { e.printStackTrace(System.err); System.exit(1); } }
This will allow the forked process to terminate itself in case of exception.
Attachments
Issue Links
- relates to
-
SONAR-6659 ProgressMonitor during file indexation is not properly stopped in case of error
-
- Closed
-
-
SCANNERAPI-141 Remove forked mode
-
- Closed
-