Details
Description
Using the Standalone Runner, if the runner is bad configured (another kind of database for instance), the error is not really clear (BootstrapException => PicoLifecycleException => ... => ClassNotFoundException).
Of course it's due to a bad configuration, however we may help the user to find exactly the error.
For instance me way check that both url from runner and server are the same and that the jdbc is the same also.
Check of username/password for database may be done but can lead to security issue.
Issue Links
- is duplicated by
-
SONAR-3385
Stop the Sonar analysis and log a meaningful error message when the Sonar batch is not using the same DB than the Sonar server
-
- relates to
-
SONAR-1568
Master/Slave for Sonar Instances
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Project | Sonar Plugins [ 11911 ] | Sonar [ 11694 ] |
| Key | SONARPLUGINS-1579 |
|
| Component/s | Log [ 14850 ] | |
| Component/s | Standalone Runner [ 14640 ] |
| Fix Version/s | 2.14 [ 18034 ] |
| Fix Version/s | 2.15 [ 18255 ] | |
| Fix Version/s | 2.14 [ 18034 ] |
| Assignee | Freddy Mallet [ freddy.mallet ] | |
| Fix Version/s | 2.16 [ 18337 ] | |
| Fix Version/s | 2.15 [ 18255 ] |
| Summary | Add a check on JDBC URL between runner and sonar server | Stop the Sonar Analysis when the Sonar batch and the Sonar server are not using the same DB |
| Assignee | Freddy Mallet [ freddy.mallet ] |
| Link |
This issue is duplicated by |
| Component/s | Database [ 13193 ] |
| Assignee | Fabrice Bellingard [ fabemn ] |
| Original Estimate | 0 minutes [ 0 ] | |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Assignee | Fabrice Bellingard [ fabemn ] | Freddy Mallet [ freddy.mallet ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Assignee | Freddy Mallet [ freddy.mallet ] | Fabrice Bellingard [ fabemn ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Link | This issue relates to SONAR-1568 [ SONAR-1568 ] |
Here is the description of the use case which must be covered :
SONAR-1is using SONAR-DB-ASONAR-1but SONAR-DB-B instead of SONAR-DB-AIn that case, a meaningful error message should be thrown