bananaaggle opened a new pull request #11223:
URL: https://github.com/apache/druid/pull/11223


   ### Description
   
   Druid has Kafka and kinesis ingestions. Pulsar is a message queue which is 
similar to Kafka. We have created SeekableStreamSupervisor interface to server 
this type of message queue. I implement a Pulsar ingestion follow this model. 
This ingestion use Pulsar message ID as sequence number and use exclusive 
consume mode which can ordered consume message from Pulsar. Like Kinesis, 
Pulsar can not compute lag using SeekableStreamSupervisor interface. I've test 
it on my MAC and it works for creating/suspending/resuming supervisor and 
publishing segments. I'll add unit tests and document for it later. 
   It's type is pulsar and IOconfig will like this:
   '''
       "ioConfig": {
         "topic": "persistent://public/default/json-topic",
         "consumerProperties": {
           "pulsar.url": "pulsar://10.23.2.26:6650"
         },
         "stream": "persistent://public/default/json-topic"
          ...
       }
   '''
   
   This PR has:
   - [ ] been self-reviewed.
      - [ ] using the [concurrency 
checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md)
 (Remove this item if the PR doesn't have any relation to concurrency.)
   - [ ] added documentation for new or modified features or behaviors.
   - [ ] added Javadocs for most classes and all non-trivial methods. Linked 
related entities via Javadoc links.
   - [ ] added or updated version, license, or notice information in 
[licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
   - [ ] added comments explaining the "why" and the intent of the code 
wherever would not be obvious for an unfamiliar reader.
   - [ ] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for [code 
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
 is met.
   - [ ] added integration tests.
   - [ ] been tested in a test Druid cluster.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to