You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/12/10 04:46:21 UTC

[GitHub] [pulsar-client-node] ilaipi opened a new issue #135: send delay message, but deliver immediately

ilaipi opened a new issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135


   client version: 1.2.0
   
   OS: wsl2 ubuntu
   
   
   ```
   // producer:
   send() {
       const producer = await this.pulsar.createProducer({
         topic: 'my-topic',
       });
       await producer.send({
         data: Buffer.from(`Hello, pulsar, ${Date.now()}`),
       });
   
       await producer.send({
         data: Buffer.from(`Hello, pulsar, delayed, ${Date.now()}`),
         deliverAfter: 30000,
         // deliverAt: new Date().getTime() + 50000,
       });
       await producer.close();
   }
   
   // consumer
       await this.pulsar.subscribe({
         topic: 'my-topic',
         subscription: 'my-subscription',
         subscriptionType: 'Shared',
         listener: (msg, msgConsumer) => {
           console.log(msg.getData().toString());
           msgConsumer.acknowledge(msg);
         },
       });
   ```
   
   when I call send(), the consumer console print 
   ```
   Hello, pulsar, 1607572676764
   Hello, pulsar, delayed, 1607572676776
    ```
   immediately.
   
   
   Is this right?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-node] hrsakai commented on issue #135: send delay message, but deliver immediately

Posted by GitBox <gi...@apache.org>.
hrsakai commented on issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135#issuecomment-747205568


   v1.2.0 doesn't include this feature yet.
   We will release v1.3.0 in a few months. Please wait for it.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-node] hrsakai closed issue #135: send delay message, but deliver immediately

Posted by GitBox <gi...@apache.org>.
hrsakai closed issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135


   


-- 
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:
users@infra.apache.org



[GitHub] [pulsar-client-node] hrsakai commented on issue #135: send delay message, but deliver immediately

Posted by GitBox <gi...@apache.org>.
hrsakai commented on issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135#issuecomment-836051236


   @ericshao 
   Yes, v1.3.0 supports for delayed delivery.


-- 
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:
users@infra.apache.org



[GitHub] [pulsar-client-node] ericshao commented on issue #135: send delay message, but deliver immediately

Posted by GitBox <gi...@apache.org>.
ericshao commented on issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135#issuecomment-835187939


   @hrsakai does this fixed in v1.3.0?


-- 
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:
users@infra.apache.org



[GitHub] [pulsar-client-node] hrsakai commented on issue #135: send delay message, but deliver immediately

Posted by GitBox <gi...@apache.org>.
hrsakai commented on issue #135:
URL: https://github.com/apache/pulsar-client-node/issues/135#issuecomment-842938122


   @ilaipi 
    We released v1.3.0, so closed this issue.


-- 
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:
users@infra.apache.org