Repository navigation
Description
Task Summary
Remove unused code from the Scala sources and tests of the Amber engine and web server, workflow-core, workflow-operator, observability and the notebook-migration service, and narrow the database reads of the account, notification, dashboard-search, Hub and Jupyter-registration lookups to what they use, without changing behavior:
- Unused bindings: name the pattern,
catchand callback bindings that nothing reads_inClusterListener,DeadLetterMonitorActor,Utils,SequentialRecordStorage, the argument parsers ofComputingUnitMasterandComputingUnitWorker,WebsocketInput,WorkflowWebsocketResource,AiAssistantManager,ExecFactory,VirtualIdentityUtils,URLFetchUtil,HtmlVizOpDescandDPThreadSpec. S3StorageClient.uploadObject: read each chunk with a plainwhileloop and upload the parts in a loop that adds eachCompletedPartto the Java list the SDK takes, instead of anIteratorof(partNumber, size)tuples. Copy each part out of the reused buffer once instead of twice (buffer.takeand thenRequestBody.fromBytes).SQLSourceOpExec.fetchBatchByBoundary: take the boundary from the typematchas avalinstead of overwriting avarthat starts asnull.- Worker statistics: drop the executor parameter
StatisticsManager.getStatisticsno longer reads. Telemetry: dropWorkflowMetricsRecorder's unused logger andWorkflowMetrics' unrecordedCancelledoutcome andUnknownkind. Scan sources: dropSkippedRowReporter's uncalledcountand an Arrow batch counter that is only incremented. Sort the Arrow Flight benchmark's latencies once per run. - Test helpers: drop parameters and defaults that no caller uses (
budgetMs's default inDPThreadSpec,avatarinExternalAuthProvisionerSpec,dictionary's default inDictionaryMatcherOpExecSpec,n's default inHashJoinOpSpecandIntervalOpExecSpec), and the thread referencesPythonWorkerPoolnever reads. - Test fixtures: drop
TestOperators.asterixDBSourceOpDesc, which only its ownTestOperatorsSpeccase still builds, andgetCsvScanOpDesc'smultiLineparameter, which it never read. PointheaderlessSmallMultiLineDataCsvScanOpDescand the "infer schema from headerless multi-line-data csv" case ofCSVScanSourceOpDescSpecatcountry_sales_headerless_small_multi_line.csv, so the tests named for multi-line data read it, and check the scanned rows in that case. - Account, login and notification queries: select only the columns
AuthResource,ExternalAuthProvisioner,GmailResource,AdminUserResourceandUserResourceread, instead of full joined or user rows. InGmailResource, also compile the email regex once and pass the subject and content tocreateMimeMessageinstead of copying theEmailMessage. - Dashboard search: build
searchAllResources' results in one pass, dropgetOrderFields' unreachablecase NoneandgetColumnField'scase _ => null, buildWorkflowSearchQueryBuilder's access condition as aval, drop agetGroupByFieldsoverride that repeats the base default, and drop the resource ID thatVersionedResourceTables.hydratepairs with each entry (every caller discards it) together withidOf. - Notebook migration: stop selecting the unread notebook ID and the
JSONBcasts, select only the two registration URLs in the Jupyter endpoint lookup, and derive a healthy registration's token once. - Hub: select only the columns
hydratereads, collect liked IDs withfetchSet, check likes and clones withfetchExists, and reuse the per-type request groups ingetCountswithout the zero entries its lookup already defaults. - Tests: pin the rewritten dataset-search mismatch flag, the drop of a Hub resource lakeFS cannot size, and an admin update to an unused address.
Introduced by:
- Amber engine and web server: Refine Amber Messaging Layer (1/2) #945 (2021-01-05), Improve websocket connection by adding hearbeats and auto-reconnecting #1101 (2021-05-03), Web server workflow-related state refactoring #1387 (2022-02-10), Add support for enabling cluster mode in scripts #1381 (2022-05-13), Amber Fault Tolerance: Local Recovery #1671 (2022-11-07), Amber Fault Tolerance: Global Recovery and Detection #1677 (2022-11-07), Remove unreachable worker nodes and enable auto-restart of worker #2060 (2023-07-14), Enable asynchronous workflow stats persistence #2529 (2024-03-29), Enhancing Workflow Runtime Statistics Measurement at Port Level #2570 (2024-04-07), and [1/3] Add AI Assistant Service - AI Flag #2808 (2024-09-02).
- Account and notification queries: Display Error Message for Duplicate Email Address Updates #3080 (2024-11-19), Enable email notifications to users upon an inactive login attempt #3393 (2025-04-29), Add domain display in email content #3440 (2025-06-08), feat: add user registration form #4185 (2026-02-16), refactor(common/auth): move login credentials to auth_provider #7055 (2026-08-10), feat(frontend): ask an account with no email address for one at sign-in #7758 (2026-08-21), feat(amber): include requester name in account email #7639 (2026-08-30), and feat(auth): Add email verification to user registration to verify email ownership. #7978 (2026-08-31).
- Dashboard search and Hub: Refactor fulltext search #2358 (2024-02-23), Refactor Hub Workflow Search Results and Permission-Based Redirection #2838 (2024-09-25), Refactor APIs related to Hub interaction activities #3252 (2025-02-09), Handle mismatched datasets on displaying dashboard #3446 (2025-05-26), Unify Count Retrieval APIs to improve community resources browsing performance #3442 (2025-06-28), refactor(hub): retrieve
isLike,accessandsizeof hub resources in batches #3519 (2025-07-09), refactor(amber): make the hub and unified search resource-agnostic #7928 (2026-08-26), feat(frontend, amber): add models to the hub and unified search #7930 (2026-09-01), and fix(resource, computing-unit): keep owners' full access to their datasets, models and computing units #8890 (2026-10-27). workflow-core: Integrating Interaction marker propagation into Amber #2271 (2024-01-18), Make OpExecInitInfo serializable #3183 (2024-12-31), and feat: Add BigObject Support for Handling Data Larger Than 2GB in Java #4067 (2025-11-25).workflow-operator: PostgreSQL Source Adaptor #1013 (2021-02-11), Fixed random error for UrlFetcher operator test #1866 (2023-03-23), Table Download with Apache Arrow Integration #3139 (2024-12-06), Remove logical schema propagation #3186 (2024-12-31), and feat(workflow-operator): report scan rows that fail schema parsing #6947 (2026-10-02).observability: feat(observability): backend metrics + tracing primitives #5376 (2026-10-27).- Notebook migration: feat(python-notebook-migration): add notebook-migration-service microservice in backend #5258 (2026-06-24) and feat(notebook-migration): resolve the Jupyter URL and token per user #8032 (2026-09-03).
- Tests and benchmark: AsterixDB Source Operator #1044 (2021-02-25), Add support of multi-line data for CSV Operator #1083 (2021-04-25), IntervalJoin Operator #1227 (2021-07-25), Add URI and folder support to the storage of replay log #2254 (2023-12-13), Split Hash Join Into Build and Probe Operators as Its Physical Plan #2302 (2024-02-05), Use Input Port Materialization Reader Threads to Replace Cache Source Operators #3425 (2025-05-26), test(amber): add unit test coverage for worker managers (Statistics/Serialization/Pause) #4836 (2026-05-03), test(amber): add unit test coverage for StatisticsManager + SerializationManager #5439 (2026-06-06), feat(bench): add Arrow Flight E2E benchmark + Benchmarks CI workflow #5557 (2026-06-11), test(workflow-operator): add unit test coverage for operator support utilities #6077 (2026-07-03), test(amber): add no-DB specs for the dashboard search query tier #7116 (2026-07-31), test(workflow-operator): route Python tests to amber-integration #7207 (2026-08-14), test(amber): cover the DP thread's lifecycle edges #7870 (2026-08-23), feat(amber): report the owner's email in dataset search #7875 (2026-08-31), test(amber): share engine and service test fixtures #9534 (2026-11-19), and refactor(workflow-operator): share operator and test code #9518 (2026-11-21).
Usage removed by:
- AsterixDB fixture: Disable dependent tests with AsterixDB #1118 (2021-05-11,
Disable dependent tests with AsterixDB) commented out its only test use, which Remove MySQL Connector #3294 (2025-03-04) deleted; test(workflow-operator): add unit test coverage for operator support utilities #6077 then added a case that builds the fixture alone. - Multi-line fixture: Update amber to depend on sub projects #3111 (2024-11-26,
Update amber to depend on sub projects) pointedheaderlessSmallMultiLineDataCsvScanOpDescat the single-linecountry_sales_headerless_small.csv. TheCSVScanSourceOpDescSpeccase has read that single-line file since Add support of multi-line data for CSV Operator #1083 added it. awaitCond's default budget: test(amber): share engine and service test fixtures #9534 (2026-11-19,test(amber): share engine and service test fixtures) routed its last callers through a helper that always passes a budget.getStatistics' executor parameter: Remove Sink Operator in the Backend #3312 (2025-03-12,Remove Sink Operator in the Backend) dropped its only read, the sink-operator check.- Everything else: unused or redundant since introduction.
This is a cleanup: production behavior does not change, and the two CSV tests named for multi-line data read the multi-line file.
Task Type
- Refactor / Cleanup
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]Remove unused Scala bindings, parameters and test fixtures[/-][+]Remove unused Scala code and narrow account, Hub and dashboard queries[/+][-]Remove unused Scala code and narrow account, Hub and dashboard queries[/-][+]Remove unused Scala code and narrow database reads[/+]refactor: drop unused code and narrow queries (apache#9681)