hrsakai commented on pull request #127:
URL: 
https://github.com/apache/pulsar-client-node/pull/127#issuecomment-703972525


   @alanhoff 
   I can't reproduce the issue.
   I set 5294967295(greater than 32 bits integers) to initialSequenceId, but 
sequence id looks correct.
   Please tell me how to reproduce.
   ```
   initialSequenceId = 5294967295
   lastSequenceId = 5294967395 
   ```
   
   code
   ```
   const Pulsar = require('../index.js');
   
   (async () => {
     // Create a client
     const client = new Pulsar.Client({
       serviceUrl: 'pulsar://localhost:6650',
       operationTimeoutSeconds: 30,
     });
   
     // Create a producer
     const producer = await client.createProducer({
       topic: 'persistent://public/default/my-topic',
       sendTimeoutMs: 30000,
       batchingEnabled: false,
       initialSequenceId: 5294967295,
     });
   
     console.log('initialSequenceId = ' + producer.getLastSequenceId());
     // Send messages
     for (let i = 0; i < 100; i += 1) {
       const msg = `my-message-${i}`;
       await producer.send({
         data: Buffer.from(msg),
       });
     }
     console.log('lastSequenceId = ' + producer.getLastSequenceId());
   
     await producer.close();
     await client.close();
   })();
   ```


----------------------------------------------------------------
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


Reply via email to