Skip to content

Conversation

@gaoran10
Copy link
Contributor

Motivation

Currently, Pulsar only supports produce transaction messages in no batch mode.

Modifications

Add transaction id in the batch message container, if the newly added message has a different transaction id with the container, it will be added in the next batch.

Verifying this change

add a new unit test.

org.apache.pulsar.client.impl.TransactionEndToEndTest#batchProduceCommitTest

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)

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.7.0 milestone Oct 31, 2020
@codelipenghui codelipenghui merged commit f6adf91 into apache:master Nov 1, 2020
@gaoran10 gaoran10 deleted the txn-produce-batch-message2 branch November 1, 2020 16:03
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
### Motivation

Currently, Pulsar only supports produce transaction messages in no batch mode.

### Modifications

Add transaction id in the batch message container, if the newly added message has a different transaction id with the container, it will be added in the next batch.

### Verifying this change

add a new unit test.

**org.apache.pulsar.client.impl.TransactionEndToEndTest#batchProduceCommitTest**
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
### Motivation

Currently, Pulsar only supports produce transaction messages in no batch mode.

### Modifications

Add transaction id in the batch message container, if the newly added message has a different transaction id with the container, it will be added in the next batch.

### Verifying this change

add a new unit test.

**org.apache.pulsar.client.impl.TransactionEndToEndTest#batchProduceCommitTest**
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.

2 participants