Skip to content

Remove breakpoint feature - #2392

Merged
shengquan-ni merged 7 commits into
masterfrom
shengquan-remove-breakpoint
Feb 19, 2024
Merged

shengquan-ni merged 7 commits into
masterfrom
shengquan-remove-breakpoint

Conversation

@shengquan-ni

Copy link
Copy Markdown
Contributor

This PR:

  1. removes all breakpoint-related code from both the frontend and backend since maintaining them is a burden for the developers and it is not actively used by our users.

@shengquan-ni shengquan-ni self-assigned this Feb 19, 2024

@Yicong-Huang Yicong-Huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Left minor comments in code.

@shengquan-ni
shengquan-ni merged commit 084e9c4 into master Feb 19, 2024
@shengquan-ni
shengquan-ni deleted the shengquan-remove-breakpoint branch February 19, 2024 10:25
@Yicong-Huang Yicong-Huang added engine refactor Refactor the code labels Feb 23, 2024
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR:
1. removes all breakpoint-related code from both the frontend and
backend since maintaining them is a burden for the developers and it is
not actively used by our users.
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Sep 24, 2026
### What changes were proposed in this PR?

Removes the plumbing left behind when the link-breakpoint feature was
deleted from the UI. None of these streams can emit — there is no
`.next()` on any of them anywhere in production, so the getters hand out
streams that never fire and `linksWithBreakpoints` is permanently empty.
Pure deletion, no behaviour change: **−100 lines**.

### History

| | |
| --- | --- |
| **Introduced by** | the original breakpoint implementation, commit
`f80c9a43db` (2020-03-29) — predates the PR workflow |
| **Usage removed by** | apache#2392 (2024-02-19) — "Remove breakpoint
feature" deleted `setLinkBreakpoint` and the
`breakpointChangeStream.next` producers. apache#3033 (2024-11-13) — "Remove
Operator Group" then removed the last
`jointLinkBreakpointShowStream.next` / `HideStream.next` calls |

Since apache#3033 there has been no producer at all.

| Removed | Where |
| --- | --- |
| `jointLinkBreakpointShowStream` / `HideStream` + their getters, and
the `linkIDType` alias only they used | `joint-graph-wrapper.ts` |
| `linksWithBreakpoints` + `getLinkIDsWithBreakpoint` |
`joint-graph-wrapper.ts` |
| `breakpointChangeStream` + `getBreakpointChangeStream`, and the
`"setLinkBreakpoint"` / `"breakpointChangeStream"` entries in the
restricted-method union | `workflow-graph.ts` |
| the merge operand | `workflow-action.service.ts` |
| `handleLinkBreakpointToggleEvents` + its call |
`workflow-editor.component.ts` |

> Reviewer note — one guard collapses rather than disappearing. The
`link:mouseleave` handler skipped `hideTools()` for links that had a
breakpoint; since `getLinkIDsWithBreakpoint()` always returns empty,
that branch was always taken, so the call is now unconditional. Same
behaviour, one branch fewer. The doc comment above it, which explained
the breakpoint exception, is updated to match.

> The `"setLinkBreakpoint"` union entry names a method that no longer
exists — it is a string in a restricted-method union, not a call site.

> These picked up coverage in apache#7481 (2026-08-09) and apache#6586 (2026-07-20),
which is why they look live; those tests poke the dead subjects directly
through `(wrapper as any)` rather than exercising a feature.

### Any related issues, documentation, discussions?

Closes apache#8612

### How was this PR tested?

Existing tests only — this PR removes code and the tests that poked it.

From `frontend/`:

- `npx ng build` — **success**. This PR edits a component, so the AOT
build is the gate that proves no template still binds to a removed
member.
- `npx ng test --watch=false --include='**/joint-graph-wrapper.spec.ts'
--include='**/workflow-graph.spec.ts'
--include='**/workflow-editor.component.spec.ts'` — 251 tests pass
across the three files.
- `yarn --cwd frontend format:ci` — clean.

Verification, re-runnable by a reviewer:

```
git grep -n "LinkBreakpoint\|breakpointChangeStream\|linksWithBreakpoints\|linkIDType"
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
renovate-bot pushed a commit to renovate-bot/apache-_-texera that referenced this pull request Oct 24, 2026
### What changes were proposed in this PR?

Removes the adaptive-batching pause/resume pair from
`WorkerTimerService`, which can no longer do anything. **+7/−106
lines.** There is no behaviour change.

- **`WorkerTimerService.scala`:** `pauseAdaptiveBatching()`,
`resumeAdaptiveBatching()`, and the `isPaused` flag (with its reset in
`stopAdaptiveBatching`). `isPaused` could only be set by
`pauseAdaptiveBatching()`, which has no production caller, so
`resumeAdaptiveBatching()` has never re-armed the timer since then.
- **`ResumeHandler.scala`:** the no-op `resumeAdaptiveBatching()` call.
The rest of the handler is unchanged. Pause and resume leave the flush
timer alone, both before and after this PR.
- **Specs:** `WorkerTimerServiceSpec` loses the four cases that only
exercised the removed methods. Its start/stop cases drop their
`isPaused` asserts, and one stop case that called pause now stops twice
instead, keeping its repeated-cancel assertion. `DPThreadSpec` drops
eight `resumeAdaptiveBatching` mock expectations.

`PauseManager.isPaused`, a different and live member, is untouched.

### History

| | |
| --- | --- |
| **Introduced by** | apache#1826 (2023-02-02), "Add time-based batch in
network output buffer": the pause method. apache#2208 (2023-11-16),
"Refactoring of amber engine", moved it into `WorkerTimerService` and
added `isPaused`, `resumeAdaptiveBatching()` and the `ResumeHandler`
call |
| **Usage removed by** | apache#2392 (2024-02-19), "Remove breakpoint
feature". It deleted the last `pauseAdaptiveBatching()` caller, the
breakpoint branch in `DataProcessor` |

It has done nothing for over two and a half years.

### Any related issues, documentation, discussions?

Closes apache#9026

### How was this PR tested?

No new tests. The surviving start/stop behaviour keeps its cases.

Locally, from the repo root with Java 17:

- `sbt "WorkflowExecutionService/Test/compile"
"WorkflowExecutionService/scalafmtCheckAll"
"WorkflowExecutionService/scalafixAll --check"`: success.
- `sbt "WorkflowExecutionService/testOnly *WorkerTimerServiceSpec
*DPThreadSpec *DataProcessorSpec *WorkerSpec *LoggingSpec
*CoordinatorTimerServiceSpec"`: 6 suites, 53 tests, all pass.
- `sbt "WorkflowExecutionService/testOnly *e2e.PauseSpec"`, which runs a
real pause/resume through `ResumeHandler`: 2 tests, both pass.

To re-check:

```
git grep -n -e pauseAdaptiveBatching -e resumeAdaptiveBatching   # no hits
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants