Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of Transaction Buffer Client. #6544

Merged
merged 7 commits into from
Jul 27, 2020

Conversation

codelipenghui
Copy link
Contributor

Motivation

Implement the transaction buffer client.

Modifications

Verifying this change

New unit tests added

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): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (yes)

@codelipenghui codelipenghui self-assigned this Mar 17, 2020
@codelipenghui codelipenghui added this to the 2.6.0 milestone Mar 17, 2020
@codelipenghui codelipenghui changed the title [WIP] Implementation of Transaction Buffer Client. Implementation of Transaction Buffer Client. Mar 22, 2020
} else {
long diff = (peeked.createdAt + operationTimeoutInMills) - System.currentTimeMillis();
if (diff <= 0) {
timeToWaitMs = operationTimeoutInMills;
Copy link
Contributor

Choose a reason for hiding this comment

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

It is time out, so timeTowaitMs shouldn't = operationTimeoutInMills

cnx(topic).whenComplete((clientCnx, throwable) -> {
if (throwable == null) {
try {
clientCnx.ctx().writeAndFlush(cmd, clientCnx.ctx().voidPromise());
Copy link
Contributor

Choose a reason for hiding this comment

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

I think clientCnx.ctx().writeAndFlush(cmd, clientCnx.ctx().voidPromise()); should .addListener

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

3 similar comments
@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

/pulsarbot run-failure-checks

5 similar comments
@gaoran10
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@gaoran10
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 054f18b into apache:master Jul 27, 2020
@codelipenghui codelipenghui deleted the txn_buffer_client branch July 27, 2020 13:12
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
* Implementation of Transaction Buffer Client.

* Fix check style.

* add license header

* fix  tests
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
* Implementation of Transaction Buffer Client.

* Fix check style.

* add license header

* fix  tests
@gaoran10 gaoran10 mentioned this pull request Nov 21, 2020
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants