Skip to content

[ISSUE #4614] Document Pulsar connector event mapping, precautions and references - #5437

Open
Labu1 wants to merge 1 commit into
apache:developfrom
Labu1:repodestek/issue-4614
Open

Labu1 wants to merge 1 commit into
apache:developfrom
Labu1:repodestek/issue-4614

Conversation

@Labu1

@Labu1 Labu1 commented Nov 23, 2026

Copy link
Copy Markdown

Fixes #4614

Motivation

Issue #4614 asks for Pulsar connector documentation covering what the connector does, its configuration items, precautions and official reference links. docs/feature/connectors/pulsar.md already listed the classes and the two configuration keys, but it said nothing about event mapping or caveats, and its Running example (bin/start-connector.sh with -D...) is not a valid command. The comments on the issue point to a separate eventmesh-site page (apache/eventmesh-site#262). This PR updates the doc that ships in this repository so it matches the current plugin code.

Modifications

Only docs/feature/connectors/pulsar.md changes:

  • Event mapping: the CloudEvent attributes the source sets for each Pulsar message (id, source, type, subject, datacontenttype, data). The sink sends only the event's data bytes.
  • Precautions, each taken from PulsarSourceConnector, PulsarSinkConnector and ConnectorApplication:
    • connector.topic is also the runtime's EventMesh topic in single-connector mode.
    • Numbered -Dconnector.N.* keys are not read by the plugin, which then falls back to its defaults.
    • The source uses a fixed subscription connector-source with the client defaults (Exclusive, Latest).
    • The source is at-most-once: it acks inside poll() and commit is a no-op.
    • Sink send failures lead to redelivery.
    • There are no auth or TLS options.
  • Running: replaced the broken example with a CONNECTOR_OPTS=... bin/start-connector.sh command, matching the connectors README, for both source and sink.
  • References: links to the official Pulsar docs, Java client and messaging concepts.

Documentation

  • Does this pull request introduce a new feature? (yes / no) no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) not applicable
  • If a feature is not applicable for documentation, explain why? This is a documentation-only change for an existing connector.
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Testing

Ran gradle test in a clean Linux container: passed.


This PR was prepared with AI assistance (Claude) and reviewed by me before submitting.

…ons and references

The in-repo Pulsar connector page only listed the classes and the two
config keys, and its Running example was not a valid command. Add
what the issue asks for: how Pulsar messages map to CloudEvent
attributes (and what the sink writes), precautions derived from the
current code (shared connector.topic, numbered connector.N.* keys not
read, fixed Exclusive subscription 'connector-source', at-most-once
source acknowledgement, sink retry via redelivery, no auth/TLS
options), a working CONNECTOR_OPTS example for source and sink, and
links to the official Pulsar documentation.

Fixes apache#4614.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

This branch has not been deployed

No deployments
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.

[Doc] Documentation Needed for eventmesh-connector-pulsar

1 participant