5 comments (5 comments)0 reactions (0 reactions)0 assignees (0 assignees)Java9,451 stars (9,451 stars)3,886 forks (3,886 forks)batch import
help wanted
Description
请问下,mycat 双主模式下主键能用mycat 自带的全局或本地时间戳生成方式么,内置的主键生成机制在双主下,id有可能重复么,还是需要一个全局的id生成器来做?
Contributor guide
- Tech stack
- javasqlmysql
- Domain
- backenddatabase
- Issue type
- research
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-3 hours
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- Mycat basicsDistributed primary keys
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 30
- Research direction
- Investigate the Mycat source code for primary key generation mechanisms such as GlobalSequence and TimestampSequence. Check the implementation in files like MycatSequence.java and related configuration. Determine if these generators are safe in a dual master setup by analyzing potential duplicate ID scenarios. Review the issue comments and any referenced documentation for additional context.