Skip to content

[Transaction] Set TC state is Ready after open MLTransactionMetadataStore completely. - #13957

Merged
liangyepianzhou merged 6 commits into
apache:masterfrom
liangyepianzhou:put_TC_afterReader
Jun 15, 2022
Merged

[Transaction] Set TC state is Ready after open MLTransactionMetadataStore completely.#13957
liangyepianzhou merged 6 commits into
apache:masterfrom
liangyepianzhou:put_TC_afterReader

Conversation

@liangyepianzhou

@liangyepianzhou liangyepianzhou commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

Motivation

The MLTransactionMetadataStore constructor and openTransactionMetadataStore method are asynchronous.
So there may be situations where the store in the Initializing state is put into stores

Modification

Pass in a future to wait for MLTransactionMetadataStore initialization to complete and then put it into stores.

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)

  • doc-not-needed

…tore completely.

### Motivation
The MLTransactionMetadataStore constructor and openTransactionMetadataStore method are asynchronous. So there may be situations where the store in the Initializing state was put into stores
### Modification
Pass in a future to wait for MLTransactionMetadataStore initialization to complete
@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@congbobo184 congbobo184 modified the milestones: 2.10.0, 2.11.0 Feb 14, 2022
@congbobo184

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@mattisonchao

Copy link
Copy Markdown
Member

Hi, @liangyepianzhou

Could you please rebase this PR and fix the conflicts.

@liangyepianzhou
liangyepianzhou merged commit 0fe8ac0 into apache:master Jun 15, 2022
codelipenghui pushed a commit that referenced this pull request Jun 28, 2022
…tore completely. (#13957)

[Transaction] Set TC state is Ready after open MLTransactionMetadataStore completely.
### Motivation
The MLTransactionMetadataStore constructor and openTransactionMetadataStore method are asynchronous. So there may be situations where the store in the Initializing state was put into stores
### Modification
Pass in the future to wait for MLTransactionMetadataStore initialization to complete

(cherry picked from commit 0fe8ac0)
mattisonchao pushed a commit that referenced this pull request Jul 2, 2022
…tore completely. (#13957)

[Transaction] Set TC state is Ready after open MLTransactionMetadataStore completely.
### Motivation
The MLTransactionMetadataStore constructor and openTransactionMetadataStore method are asynchronous. So there may be situations where the store in the Initializing state was put into stores
### Modification
Pass in the future to wait for MLTransactionMetadataStore initialization to complete

(cherry picked from commit 0fe8ac0)
@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jul 2, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 4, 2022
…tore completely. (apache#13957)

[Transaction] Set TC state is Ready after open MLTransactionMetadataStore completely.
### Motivation
The MLTransactionMetadataStore constructor and openTransactionMetadataStore method are asynchronous. So there may be situations where the store in the Initializing state was put into stores
### Modification
Pass in the future to wait for MLTransactionMetadataStore initialization to complete

(cherry picked from commit 0fe8ac0)
(cherry picked from commit 3c0063b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants