Skip to content

[Transaction] Move MetaStoreHandlerNotReadyException and add MetaStoreHandlerHasClosedException#14211

Closed
liangyepianzhou wants to merge 1 commit intoapache:masterfrom
liangyepianzhou:MetaStoreHandlerNotReadyException
Closed

[Transaction] Move MetaStoreHandlerNotReadyException and add MetaStoreHandlerHasClosedException#14211
liangyepianzhou wants to merge 1 commit intoapache:masterfrom
liangyepianzhou:MetaStoreHandlerNotReadyException

Conversation

@liangyepianzhou
Copy link
Contributor

Master #13918

Motivation & Modification

Makes exceptions on the Transaction client side clearer.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

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

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Check the box below or label this PR directly (if you have committer privilege).

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

…eHandlerHasClosedException

### Motivation & Modification
Makes exceptions on the Transaction client side clearer.
@gaoran10
Copy link
Contributor

Sorry, I'm not sure why we need to make the exception MetaStoreHandlerNotReadyException to extend PulsarClientException. Could you add some explanation?

@liangyepianzhou
Copy link
Contributor Author

MetaStoreHandlerNotReadyException

PulsarClientException

Just my personal opinion

  1. We will eventually delete this TransactionCoordinatorClientException, so we need to remove this exception from it
  2. This exception is caused by that pulsarClient perform ops related to transaction when MetaStoreHandler was not in the right state that can sent request to TC. So put it into PulsarClientException is appropriate.

@liangyepianzhou
Copy link
Contributor Author

/pulsarbot run-failure-checks

@@ -156,8 +157,7 @@ public void testPulsarClientCloseThenCloseTcClient() throws Exception {
try {
handler.newTransactionAsync(10, TimeUnit.SECONDS).get();
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we need to add fail() here.

@github-actions
Copy link

The pr had no activity for 30 days, mark with Stale label.

@github-actions
Copy link

The pr had no activity for 30 days, mark with Stale label.

@codelipenghui codelipenghui modified the milestones: 2.11.0, 2.12.0 Jul 26, 2022
@tisonkun
Copy link
Member

Closed as stale and conflict. Please rebase and resubmit the patch if it's still relevant.

@tisonkun tisonkun closed this Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants