-
Notifications
You must be signed in to change notification settings - Fork 12
DHP-969 Batch Export Participant Worker & DHP-970 Tune Worker Thread Pool #175
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
base: develop
Are you sure you want to change the base?
Conversation
src/main/java/org/sagebionetworks/bridge/exporter3/BaseParticipantVersionWorkerProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/sagebionetworks/bridge/exporter3/BaseParticipantVersionWorkerProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors several worker processors and their test suites for participant version export, while also updating configuration values and introducing a common base request and processor class to reduce duplicated logic. Key changes include:
- Consolidation of request classes with a common base (BaseParticipantVersionRequest)
- Updated thread pool and rate limiter configurations in the resources and Spring configuration files
- Refactoring of Redrive, Ex3, and BatchExport worker processors to extend a common base class
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/test/java/org/sagebionetworks/bridge/exporter3/RedriveParticipantVersionsWorkerProcessorTest.java | Adjustments in test setup and removal of legacy mocking/testing code |
src/test/java/org/sagebionetworks/bridge/exporter3/BatchExportParticipantVersionWorkerProcessorTest.java | New test suite for batch export functionality |
src/main/resources/BridgeWorkerPlatform.conf | Updates to thread pool sizes and Synapse rate limits |
src/main/java/org/sagebionetworks/bridge/workerPlatform/config/SpringConfig.java | Added bean for append table executor service |
src/main/java/org/sagebionetworks/bridge/exporter3/* | Refactoring of various worker processors to inherit common behavior via a base class |
// Mock shared dependencies. | ||
Config mockConfig = mock(Config.class); | ||
when(mockConfig.get(RedriveParticipantVersionsWorkerProcessor.CONFIG_KEY_BACKFILL_BUCKET)).thenReturn( | ||
BACKFILL_BUCKET); | ||
processor.setConfig(mockConfig); | ||
|
||
app = Exporter3TestUtil.makeAppWithEx3Config(); | ||
App app = Exporter3TestUtil.makeAppWithEx3Config(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider assigning to the class-level 'app' field instead of declaring a new local variable so that later tests that rely on 'app' are not affected by variable shadowing.
App app = Exporter3TestUtil.makeAppWithEx3Config(); | |
app = Exporter3TestUtil.makeAppWithEx3Config(); |
Copilot uses AI. Check for mistakes.
Work in progress
https://sagebionetworks.jira.com/browse/DHP-969
https://sagebionetworks.jira.com/browse/DHP-970