From 6bff37c027ad28c5a8d0500d84fa46f5bb318716 Mon Sep 17 00:00:00 2001 From: T2938 Date: Mon, 4 Mar 2024 13:58:09 +0800 Subject: [PATCH 1/4] The sample code of transaction is missing ".build()" --- docs/txn-use.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/txn-use.md b/docs/txn-use.md index 615e2eab285d..3be260ac1dc4 100644 --- a/docs/txn-use.md +++ b/docs/txn-use.md @@ -85,6 +85,7 @@ To use Pulsar transaction API, complete the following steps. // Step 3: create a Pulsar client and enable transactions. .enableTransaction(true) .serviceUrl(jct.serviceUrl) + .build() // Step 4: create three producers to produce messages to input and output topics. ProducerBuilder producerBuilder = client.newProducer(Schema.STRING); From 11f810307bdc368c420feefb603e0a5ff7894777 Mon Sep 17 00:00:00 2001 From: T2938 Date: Mon, 4 Mar 2024 14:15:14 +0800 Subject: [PATCH 2/4] The sample code of schema has a expressing error --- docs/admin-api-schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin-api-schemas.md b/docs/admin-api-schemas.md index c7539be53181..d562e13a4ea2 100644 --- a/docs/admin-api-schemas.md +++ b/docs/admin-api-schemas.md @@ -202,7 +202,7 @@ To get a specific version of a schema, you can use one of the following methods. Use the `get` subcommand. ```bash -pulsar-admin schemas get --version= +pulsar-admin schemas get --version ``` From b018b9c0245a07639c538065340f5c6783efbde2 Mon Sep 17 00:00:00 2001 From: Yajun Zhao <92070379+zhaoyajun2009@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:31:42 +0800 Subject: [PATCH 3/4] Update admin-api-schemas.md --- docs/admin-api-schemas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin-api-schemas.md b/docs/admin-api-schemas.md index d562e13a4ea2..c7539be53181 100644 --- a/docs/admin-api-schemas.md +++ b/docs/admin-api-schemas.md @@ -202,7 +202,7 @@ To get a specific version of a schema, you can use one of the following methods. Use the `get` subcommand. ```bash -pulsar-admin schemas get --version +pulsar-admin schemas get --version= ``` From 7a2740d7eb5900bc5eb750e789d557cb1a980ca5 Mon Sep 17 00:00:00 2001 From: Yajun Zhao <92070379+zhaoyajun2009@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:36:16 +0800 Subject: [PATCH 4/4] Update txn-use.md --- docs/txn-use.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/txn-use.md b/docs/txn-use.md index 3be260ac1dc4..3ddb0b2d4e42 100644 --- a/docs/txn-use.md +++ b/docs/txn-use.md @@ -85,7 +85,7 @@ To use Pulsar transaction API, complete the following steps. // Step 3: create a Pulsar client and enable transactions. .enableTransaction(true) .serviceUrl(jct.serviceUrl) - .build() + .build(); // Step 4: create three producers to produce messages to input and output topics. ProducerBuilder producerBuilder = client.newProducer(Schema.STRING);