Sonar-scm-git plugin produces tons of debug log when sonar.verbose=true

  • SonarQube Community Edition Version 7.9.1 (build 27448), sonar-scm-git plugin 1.12.1
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, is unmodified
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, is unmodified
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, isRacyClean=false, read=2021-04-13 14:49:47.523000000, lastModified=2021-04-13 14:49:29.000000000, delta=18523000000 ns, racy<=1251250000 ns
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, is unmodified
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, isRacyClean=false, read=2021-04-13 14:49:47.523000000, lastModified=2021-04-13 14:49:29.000000000, delta=18523000000 ns, racy<=1251250000 ns
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, isRacyClean=false, read=2021-04-13 14:49:47.523000000, lastModified=2021-04-13 14:49:29.000000000, delta=18523000000 ns, racy<=1251250000 ns
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, is unmodified
build	13-Apr-2021 14:49:52	14:49:52.638 DEBUG: file=/home/bamboo/bamboo-agent-home/xml-data/build-dir/LB-VAFPCM0-JOB1/.git/objects/pack, is unmodified
  • run scan with sonar.verbose=true
  • disable sonar.verbose

After upgrade sonar-scm-git plugin to latest 1.12.1 version it started produces huge debug logs. for some repos debug log is about 300MB and even leads to OOM issue.

Hello,
Thanks for reporting it.
We have a bug ticket for this problem: https://jira.sonarsource.com/browse/SONARSCGIT-55