Bamboo Specs scan fails with IllegalStateException

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

When Bamboo runs the Specs scan a process fails with a IllegalStateException (Could not update chain with key BLITZ3-REPO1P as it's being modified in another thread).

診断

During Specs scan the following error will be seen in the logs:

Could not update chain with key PROJ-PLAN as it's being modified in another thread. 14-Jul-2021 10:52:43 java.lang.IllegalStateException: Could not update chain with key PROJ-PLAN as it's being modified in another thread. 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.modifyExistingTopLevelPlan(PlanConfigImportServiceImpl.java:465) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.lambda$importPlan$0(PlanConfigImportServiceImpl.java:422) 14-Jul-2021 10:52:43 at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate.execute(BambooTransactionHibernateTemplate.java:28) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.PlanConfigImportServiceImpl.importPlan(PlanConfigImportServiceImpl.java:401) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.DefaultSpecsConsumer.importPlanProperties(DefaultSpecsConsumer.java:131) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.importers.PlanImporterProvider.lambda$getEntityProvider$1(PlanImporterProvider.java:38) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsWithImporter(AllTypesSpecsImporter.java:130) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.AllTypesSpecsImporter.importBambooYamlsOfAllTypes(AllTypesSpecsImporter.java:69) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.lambda$processSimplifiedYaml$2(YamlSpecsImportServiceImpl.java:112) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.SpecsOptimizeProcessor.processSpecs(SpecsOptimizeProcessor.java:43) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.rss.YamlSpecsImportServiceImpl.processSimplifiedYaml(YamlSpecsImportServiceImpl.java:108) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.tryProcessYaml(RepositoryStoredSpecsServiceImpl.java:338) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:184) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:374) 14-Jul-2021 10:52:43 at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42)

原因

Few Specs scan threads try to modify same plan at the same time. Locking mechanism prevents concurrent plan configuration modification.

ソリューション

Avoid managing of plan configuration with different repositories. Check if RSS repository manage unique group of plans and deployments. Check same repository is not added twice to linked or project (since Bamboo 8.0 DC) repositories. 

更新日時: September 26, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。