Skip to content

[improve][ml] Use correct isActive method for cursor - #19322

Merged
lhotari merged 2 commits into
apache:masterfrom
michaeljmarshall:fix-cursor-activity-change
Jan 26, 2023
Merged

[improve][ml] Use correct isActive method for cursor#19322
lhotari merged 2 commits into
apache:masterfrom
michaeljmarshall:fix-cursor-activity-change

Conversation

@michaeljmarshall

Copy link
Copy Markdown
Member

Motivation

In #19159, we made a change motivated by simplifying the code. However, one problem is that it changed the level of abstraction by calling the ManagedCursor class, which could technically have a different definition of isActive. In order to retain the original meaning, I am reverting that PR and using a method in the ManagedLedgerImpl class to simplify the code.

Other relevant context: #19159 (review) and #19159 (comment)

Modifications

Verifying this change

This is a return to the previous state with a cosmetic change, so the current test coverage should suffice.

Does this pull request potentially affect one of the following parts:

No breaking changes.

Documentation

  • doc-not-needed

Matching PR in forked repository

PR in forked repository: skipping the PR

@lhotari
lhotari merged commit 87b1dd6 into apache:master Jan 26, 2023
@michaeljmarshall
michaeljmarshall deleted the fix-cursor-activity-change branch February 14, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants