修复oceanbasev10writer遇到带小版本号的OB处理异常
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
com.alibaba.datax.plugin.writer.oceanbasev10writer.task.ConcurrentTableWriterTask的136行。遇到有小版本好的OB会抛异常例如3.2.3.1
建议需改为:
String version = config.getString(Config.OB_VERSION);
String[] versionArray = version.split("\\.");
String majorVersion = versionArray[0] + versionArray[1];
if ((Integer.valueOf(majorVersion) >= 21)) {
isOb2 = true;
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Open ConcurrentTableWriterTask and inspect line 136, focusing on how OB_VERSION is parsed. Reproduce the exception with an OceanBase version such as 3.2.3.1, then verify that the version is handled without an exception and that the existing OB behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100