Sonarqube 声纳中未删除快照

Sonarqube 声纳中未删除快照,sonarqube,sonar-runner,Sonarqube,Sonar Runner,我有一个声纳项目,快照可以追溯到一年多以前。问题是旧的snaphosts没有被删除,这(我认为)导致SonarQube的速度非常慢。我的数据库清理器配置的所有设置都设置为默认值 当我从gradle任务运行sonar runner时,它也会输出以下内容: ... 11:23:18.072 DEBUG - Post-jobs : org.sonar.plugins.dbcleaner.ProjectPurgePostJob@1cffdfd -> org.sonar.plugins.issuea

我有一个声纳项目,快照可以追溯到一年多以前。问题是旧的snaphosts没有被删除,这(我认为)导致SonarQube的速度非常慢。我的数据库清理器配置的所有设置都设置为默认值

当我从gradle任务运行sonar runner时,它也会输出以下内容:

...
11:23:18.072 DEBUG - Post-jobs : org.sonar.plugins.dbcleaner.ProjectPurgePostJob@1cffdfd -> org.sonar.plugins.issueassign.notification.SendIssueNotificationsPostJob@140401 -> org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob@c5f5c2 -> org.sonar.plugins.core.batch.IndexProjectPostJob@19261ea
11:23:18.072 INFO  - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
11:23:18.503 INFO  - -> Keep one snapshot per day between 2014-09-12 and 2014-10-09
11:23:18.507 INFO  - -> Keep one snapshot per week between 2013-10-11 and 2014-09-12
11:23:18.513 INFO  - -> Keep one snapshot per month between 2009-10-16 and 2013-10-11
11:23:18.523 INFO  - -> Delete data prior to: 2009-10-16
11:23:18.524 DEBUG - ==>  Preparing: select * from projects p where p.id=? 
11:23:18.524 DEBUG - ==> Parameters: 1(Long)
11:23:18.526 DEBUG - <==      Total: 1
11:23:18.526 DEBUG - ==>  Preparing: select * from projects where scope='PRJ' and root_id=? 
11:23:18.526 DEBUG - ==> Parameters: 1(Long)
11:23:19.191 DEBUG - <==      Total: 186
11:23:19.191 DEBUG - ==>  Preparing: select * from projects where scope='PRJ' and root_id=? 
11:23:19.191 DEBUG - ==> Parameters: 2(Long)
11:23:19.192 DEBUG - <==      Total: 0
...
11:23:19.966 DEBUG - ==>  Preparing: select * from projects where scope='PRJ' and root_id=? 
11:23:19.966 DEBUG - ==> Parameters: 11658(Long)
11:23:19.967 DEBUG - <==      Total: 0
...
。。。
11:23:18.072调试-发布作业:org.sonar.plugins.dbcleaner。ProjectPurgePostJob@1cffdfd->org.sonar.plugins.issuessign.notification。SendIssueNotificationsPostJob@140401->org.sonar.plugins.core.issue.notification。SendIssueNotificationsPostJob@c5f5c2->org.sonar.plugins.core.batch。IndexProjectPostJob@19261ea
11:23:18.072信息-执行post作业类org.sonar.plugins.dbcleaner.ProjectPurgePostJob
11:23:18.503信息--->在2014-09-12和2014-10-09之间每天保存一个快照
11:23:18.507信息--->在2013-10-11和2014-09-12之间每周保存一个快照
11:23:18.513信息--->在2009-10-16和2013-10-11之间每月保存一个快照
11:23:18.523信息--->删除2009-10-16之前的数据
11:23:18.524调试-==>准备:从项目p中选择*其中p.id=?
11:23:18.524调试-==>参数:1(长)
11:23:18.526调试-准备:从scope='PRJ'和root_id=?
11:23:18.526调试-==>参数:1(长)
11:23:19.191调试-准备:从scope='PRJ'和root_id=?
11:23:19.191调试-==>参数:2(长)
11:23:19.192调试-准备:从scope='PRJ'和root_id=?
11:23:19.966调试-==>参数:11658(长)

11:23:19.967调试-请注意,包含事件的快照,除非您是说您“在2013-10-11和2014-09-12之间每周有一个以上的快照”(例如)?是的。例如,我有4张2013年7月29日的快照。是否可以使用详细标志(-X/--debug或-Dsonar.verbose=true)运行它?我更新了sonar runner的输出。我看不出有什么问题。有什么具体的我应该找的吗?谢谢你的回答。不幸的是,只有几个快照具有事件。请在SonarQube中提供项目历史记录的快照,并突出显示希望删除的快照。项目的新版本是一个事件。所有快照都有一个特定的版本:398、399、400等等。这就是为什么它们不会被删除。那么我的问题是:398399等真的是你项目的版本吗?如果不是,为什么每次运行SonarQube分析时都会增加此版本?啊,我没有意识到新版本意味着一个事件。我们使用SVN修订版作为一个版本,但显然,这不是它的本意。非常感谢您的帮助!不客气!版本应该是应用程序的实际版本:1.5、2.3.1等。它不会经常更改。通常,每次您将新版本推向生产时。