Skip to content

Fix: Resolve duplicate bean registrations in observability and step bridge#10

Merged
ancongui merged 1 commit intodevelopfrom
fix/resolve-duplicate-bean-registrations
Feb 13, 2026
Merged

Fix: Resolve duplicate bean registrations in observability and step bridge#10
ancongui merged 1 commit intodevelopfrom
fix/resolve-duplicate-bean-registrations

Conversation

@casc84ab
Copy link
Contributor

Summary

  • Add @AutoConfigureBefore(DataEnrichmentAutoConfiguration.class) and @ConditionalOnMissingBean guards to ObservabilityAutoConfiguration for jobTracingService, jobMetricsService, and jobOrchestratorHealthIndicator beans
  • Add @ConditionalOnMissingBean(name = "stepEventPublisherBridge") to StepBridgeConfiguration to prevent duplicate bean when both fireflyframework-domain and fireflyframework-data are on the classpath

Test plan

  • All 322 fireflyframework-data tests pass
  • core-data-template starts cleanly with no duplicate bean errors
  • All 36 microservice repos compile and pass tests

…figurations

Add @AutoConfigureBefore and @ConditionalOnMissingBean guards to
ObservabilityAutoConfiguration to prevent duplicate jobTracingService,
jobMetricsService, and jobOrchestratorHealthIndicator beans when
DataEnrichmentAutoConfiguration also defines them. Add
@ConditionalOnMissingBean guard to StepEventPublisherBridge bean.
@casc84ab casc84ab requested a review from ancongui February 13, 2026 16:00
Copy link
Contributor

@ancongui ancongui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Two well-targeted fixes:

  1. ObservabilityAutoConfiguration: @AutoConfigureBefore(DataEnrichmentAutoConfiguration.class) ensures correct ordering, and @ConditionalOnMissingBean on jobTracingService, jobMetricsService, and jobOrchestratorHealthIndicator prevents duplicates. Each conditional checks by type (class), which is the right approach.

  2. StepBridgeConfiguration: Same @ConditionalOnMissingBean(name = "stepEventPublisherBridge") guard as the paired domain PR #8.

Clean, minimal changes with clear intent.

@ancongui ancongui merged commit dbc5d1f into develop Feb 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants