Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving TrackingClientSingleton.initialize into the bean itself #17631

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

xiaohansong
Copy link
Contributor

@xiaohansong xiaohansong commented Oct 5, 2022

https://github.com/airbytehq/oncall/issues/753

Moving TrackingClientSingleton.initialize into the bean

Noticed this bean was initialized before ApplicationInitializer; thus all trackingClient referred (especially in ApplicationBeanFactory.java) were using default logging client despite in the configuration we specified to use segment.

This shouldn't affect anything because within airbyte-worker no place is referring Singleton to generate a trackingClient except for this bean factory, and even if the bean was lazy initialized the only creation will still be from the bean defined in TemporalBeanFactory so we guarantee it will NOT be the default tracking client.

@github-actions github-actions bot added area/platform issues related to the platform area/worker Related to worker labels Oct 5, 2022
@xiaohansong xiaohansong temporarily deployed to more-secrets October 5, 2022 21:53 Inactive
@xiaohansong xiaohansong temporarily deployed to more-secrets October 5, 2022 23:03 Inactive
@xiaohansong xiaohansong temporarily deployed to more-secrets October 5, 2022 23:08 Inactive
Copy link
Contributor

@jdpgrailsdev jdpgrailsdev left a comment

Choose a reason for hiding this comment

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

:shipit:

@xiaohansong xiaohansong marked this pull request as ready for review October 5, 2022 23:12
@xiaohansong xiaohansong changed the title enable testing for micronaut Moving TrackingClientSingleton.initialize into the bean itself Oct 5, 2022
@xiaohansong xiaohansong temporarily deployed to more-secrets October 5, 2022 23:43 Inactive
@xiaohansong xiaohansong merged commit 559a79e into master Oct 6, 2022
@xiaohansong xiaohansong deleted the xiaohan/micronauttest branch October 6, 2022 02:42
letiescanciano added a commit that referenced this pull request Oct 6, 2022
…vation

* master: (26 commits)
  supply a source id for schema discovery in connector integration tests (#17662)
  Source Iterable: Add permission check for stream (#17602)
  Moving TrackingClientSingleton.initialize into the bean itself (#17631)
  Handle null workspace IDs in tracking/reporting methods gracefully (#17641)
  Bump Airbyte version from 0.40.11 to 0.40.12 (#17653)
  Revert "Do not wait the end of a reset to return an update (#17591)" (#17640)
  Standardize HttpRequester's url_base and path format (#17524)
  Create geography_type enum and add geography column in connection and workspace table (#16818)
  airbyte-cron: update connector definitions from remote (#16438)
  Do not wait the end of a reset to return an update (#17591)
  Remove redundant title labels from connector specs (#17544)
  Updated GA4 status
  support large schema discovery (#17394)
  🪟 🐛 Fixes connector checks not properly ending their loading state (#17620)
  🪟🧪 [Experiment] add hideOnboarding experiment (#17605)
  Source Recharge: change releaseStage to GA (#17606)
  Source Recharge: skip stream if 403 received (#17608)
  remove sonar-scan workflow (#17609)
  Mark/tables should be full width on all pages (#17401)
  Auto fail all workfow if there is a Versioning issue (#17562)
  ...
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
…tehq#17631)

* enable testing for micronaut

* move tracking client initializer into the bean

* pmd fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform area/worker Related to worker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants