From 58bb31ffc82b4189848cb589c839ed0e9f7c0ec9 Mon Sep 17 00:00:00 2001 From: Anonymitaet Date: Mon, 15 Aug 2022 18:51:44 +0800 Subject: [PATCH 1/3] [fix][doc] correct configuration name to exposingBrokerEntryMetadataToClientEnabled --- site2/docs/developing-binary-protocol.md | 2 +- .../version-2.1.1-incubating/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.10.0/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.10.1/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.10.x/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.2.1/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.3.0/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.3.1/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.3.2/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.4.1/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.4.2/developing-binary-protocol.md | 2 +- .../versioned_docs/version-2.5.0/developing-binary-protocol.md | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/site2/docs/developing-binary-protocol.md b/site2/docs/developing-binary-protocol.md index 1e4ebe6281743..97937119e2bcd 100644 --- a/site2/docs/developing-binary-protocol.md +++ b/site2/docs/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.10.0/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.10.0/developing-binary-protocol.md index 9787f91e3624f..11394505ac8cc 100644 --- a/site2/website/versioned_docs/version-2.10.0/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.10.0/developing-binary-protocol.md @@ -69,7 +69,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.10.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.10.1/developing-binary-protocol.md index 9787f91e3624f..11394505ac8cc 100644 --- a/site2/website/versioned_docs/version-2.10.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.10.1/developing-binary-protocol.md @@ -69,7 +69,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.10.x/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.10.x/developing-binary-protocol.md index 9787f91e3624f..11394505ac8cc 100644 --- a/site2/website/versioned_docs/version-2.10.x/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.10.x/developing-binary-protocol.md @@ -69,7 +69,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata diff --git a/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md index 2c228f623dc8c..1631ad97925c3 100644 --- a/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md @@ -68,7 +68,7 @@ If you want to use broker entry metadata for **consumers**: 1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`enableExposingBrokerEntryMetadataToClient`](reference-configuration.md#broker) parameter to `true` in the `broker.conf` file. +2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. ## Message metadata From 7a914462239e7d090b29a04fafc255a5c95e2bc1 Mon Sep 17 00:00:00 2001 From: Anonymitaet Date: Wed, 17 Aug 2022 16:32:45 +0800 Subject: [PATCH 2/3] update --- .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 18 ------------------ .../developing-binary-protocol.md | 11 +++++++++++ .../developing-binary-protocol.md | 11 +++++++++++ 9 files changed, 22 insertions(+), 126 deletions(-) diff --git a/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.2.1/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.0/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.1/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.3.2/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.4.1/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.4.2/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.5.0/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer. diff --git a/site2/website/versioned_docs/version-2.8.x/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.8.x/developing-binary-protocol.md index 9084b006b9bed..7a2a034b044ce 100644 --- a/site2/website/versioned_docs/version-2.8.x/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.8.x/developing-binary-protocol.md @@ -50,6 +50,17 @@ Payload commands have this basic structure: | metadata | The message [metadata](#message-metadata) stored as a binary protobuf message | | | payload | Anything left in the frame is considered the payload and can include any sequence of bytes | | +## Broker entry metadata + +Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. + +It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. + +| Field | Required or optional | Description | +|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| +| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | +| `index` | Optional | The index of the message. It is assigned by the broker. + ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed on unchanged to the consumer. diff --git a/site2/website/versioned_docs/version-2.9.x/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.9.x/developing-binary-protocol.md index a18a8b8d56172..6a782a4255273 100644 --- a/site2/website/versioned_docs/version-2.9.x/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.9.x/developing-binary-protocol.md @@ -50,6 +50,17 @@ Payload commands have this basic structure: | metadata | The message [metadata](#message-metadata) stored as a binary protobuf message | | | payload | Anything left in the frame is considered the payload and can include any sequence of bytes | | +## Broker entry metadata + +Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. + +It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. + +| Field | Required or optional | Description | +|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| +| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | +| `index` | Optional | The index of the message. It is assigned by the broker. + ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed on unchanged to the consumer. From 7ff66c1acfaac07686efea2f8a0f701c5e2f5ed8 Mon Sep 17 00:00:00 2001 From: Anonymitaet Date: Wed, 17 Aug 2022 16:47:27 +0800 Subject: [PATCH 3/3] update --- .../developing-binary-protocol.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md b/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md index 1631ad97925c3..f39e44c80dea2 100644 --- a/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md +++ b/site2/website/versioned_docs/version-2.1.1-incubating/developing-binary-protocol.md @@ -52,24 +52,6 @@ Payload commands have this basic structure: | `metadata` | Required | The message [metadata](#message-metadata) stored as a binary protobuf message | | | `payload` | Required | Anything left in the frame is considered the payload and can include any sequence of bytes | | -## Broker entry metadata - -Broker entry metadata is stored alongside the message metadata as a serialized protobuf message. -It is created by the broker when the message arrived at the broker and passed without changes to the consumer if configured. - -| Field | Required or optional | Description | -|:-------------------|:----------------|:------------------------------------------------------------------------------------------------------------------------------| -| `broker_timestamp` | Optional | The timestamp when a message arrived at the broker (`id est` as the number of milliseconds since January 1st, 1970 in UTC) | -| `index` | Optional | The index of the message. It is assigned by the broker. - -If you want to use broker entry metadata for **brokers**, configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter in the `broker.conf` file. - -If you want to use broker entry metadata for **consumers**: - -1. Use the client protocol version [18 or later](https://github.com/apache/pulsar/blob/ca37e67211feda4f7e0984e6414e707f1c1dfd07/pulsar-common/src/main/proto/PulsarApi.proto#L259). - -2. Configure the [`brokerEntryMetadataInterceptors`](reference-configuration.md#broker) parameter and set the [`exposingBrokerEntryMetadataToClientEnabled`](reference-configuration-broker.md#exposingbrokerentrymetadatatoclientenabled) parameter to `true` in the `broker.conf` file. - ## Message metadata Message metadata is stored alongside the application-specified payload as a serialized protobuf message. Metadata is created by the producer and passed without changes to the consumer.