You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/08/29 07:15:49 UTC

[GitHub] [rocketmq-clients] zzjcool opened a new issue, #198: MessageId codec is not using UTC+0

zzjcool opened a new issue, #198:
URL: https://github.com/apache/rocketmq-clients/issues/198

   https://github.com/apache/rocketmq-clients/blob/62d0deb2acfc7adf827f7d636581b6652b1e3b53/java/client/src/main/java/org/apache/rocketmq/client/java/message/MessageIdCodec.java#L107
   ```
                       process id(lower 2bytes)
                               ▲
   mac address(lower 6bytes)   │   sequence number(big endian)
                      ▲        │          ▲ (4bytes)
                      │        │          │
                ┌─────┴─────┐ ┌┴┐ ┌───┐ ┌─┴─┐
         0x01+  │     6     │ │2│ │ 4 │ │ 4 │
                └───────────┘ └─┘ └─┬─┘ └───┘
                                    │
                                    ▼
             seconds since 2021-01-01 00:00:00(UTC+0)
                           (lower 4bytes)
   ```
   
    2021-01-01 00:00:00(UTC+0) timestamp is 1609459200


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

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq-clients] aaron-ai closed issue #198: MessageId codec is not using UTC+0

Posted by GitBox <gi...@apache.org>.
aaron-ai closed issue #198: MessageId codec is not using UTC+0
URL: https://github.com/apache/rocketmq-clients/issues/198


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

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq-clients] aaron-ai commented on issue #198: MessageId codec is not using UTC+0

Posted by GitBox <gi...@apache.org>.
aaron-ai commented on issue #198:
URL: https://github.com/apache/rocketmq-clients/issues/198#issuecomment-1261654882

   Thanks for your feedback.


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

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq-clients] github-actions[bot] commented on issue #198: MessageId codec is not using UTC+0

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #198:
URL: https://github.com/apache/rocketmq-clients/issues/198#issuecomment-1261601816

   This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.


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

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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