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

[Transaction][buffer] Add new commands for the transaction #4866

Merged
merged 10 commits into from
Aug 5, 2019

Conversation

zymap
Copy link
Member

@zymap zymap commented Aug 1, 2019


Motivation

Add new commands for the transaction.

Modifications

  • Add new property for CommandSend
  • Add new command CommandEndTxnOnPartition

---

*Motivation*

Add new commands for the transaction.

*Modifications*

- Add new property for `CommandSend`
- Add new command `CommandEndTxnOnPartition`
@zymap
Copy link
Member Author

zymap commented Aug 2, 2019

@sijie updated.

@zymap
Copy link
Member Author

zymap commented Aug 2, 2019

run cpp tests
run java8 tests

@sijie
Copy link
Member

sijie commented Aug 2, 2019

// Couldn?t find any executable in /home/jenkins/tools/maven/apache-maven-3.5.0

run integration tests
run cpp tests

@zymap
Copy link
Member Author

zymap commented Aug 3, 2019

@sijie I add more commands in the pull request. PTAL. Thanks.

@zymap
Copy link
Member Author

zymap commented Aug 3, 2019

run cpp tests
run java8 tests
run integration tests

@@ -23,42 +23,42 @@ option java_package = "org.apache.pulsar.common.api.proto";
option optimize_for = LITE_RUNTIME;

message Schema {
enum Type {
Copy link
Member

Choose a reason for hiding this comment

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

Seems most of the changes in this file is the code alignment change. I would suggest keep the original format, so it would be easy to find what is really changed for this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry for the inconvenience to your review. All I added commands are under the comments called the transaction related.

I updated the alignments because there are two types of alignments in this file. I replace all the tab with 4 spaces. And I think it is easier to keep consistent when we update this file in the future.

Copy link
Member

Choose a reason for hiding this comment

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

OK. It is better to do the alignments in a separate PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for your reminder. I will pay more attention next time.

optional uint64 txnid_least_bits = 2 [default = 0];
optional uint64 txnid_most_bits = 3 [default = 0];
optional ServerError error = 4;
optional string message = 5;
Copy link
Member

Choose a reason for hiding this comment

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

What message will return for all these Response above?

Copy link
Member

Choose a reason for hiding this comment

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

Ok. Seems there is also other command response with message returned and use in log.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. 👍

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.

None yet

3 participants