Skip to content
🎯
Focusing
🎯
Focusing
Pro
Block or report user

Report or block NotFound9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse

Organizations

@awesome-tips
Block or report user

Report or block NotFound9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse

Pinned

  1. Java后端面试题精选,包括Java基础、JVM、数据库、mysql、redis、计算机网络、算法、数据结构、操作系统、设计模式、系统设计、框架原理(做开源不容易,希望给我一个Star,也便于更新时获得通知,谢谢!) http://notfound9.github.io/interviewGuide/

    Java 1.1k 219

  2. Forked from Meituan-Dianping/Leaf

    Leaf项目改进计划——主要是针对美团的分布式ID生成框架Leaf原项目中的一些issue体现出来的问题,对Leaf项目进行功能增强,问题修复及优化改进。介绍文章:https://juejin.im/post/5eaea4f4f265da7b991c4c31

    Java 5 1

  3. Forked from Nicholas86/Graver

    给美团的Graver框架提PR的项目,PR地址这里https://github.com/Meituan-Dianping/Graver/pull/20

    Objective-C 1

78 contributions in the last year

May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Mon Wed Fri

Contribution activity

May 2020

Created an issue in Meituan-Dianping/Leaf that received 4 comments

时间差过大,超过41位溢出,导致生成的id负数的问题

因为Leaf框架是沿用snowflake的位数分配, 最大41位时间差+10位的workID+12位序列化,但是由于snowflake是强制要求第一位为符号位0,否则生成的id转换为十进制后会是复试,但是Leaf项目中没有对时间差进行校验,当时间戳过大或者自定义的twepoch设置不当过小,…

4 comments

Seeing something unexpected? Take a look at the GitHub profile guide.

You can’t perform that action at this time.