[Progress record]:
has been claimed by jack-xu2011
Proposed time: 2022/06/10
Discussion time:
Accept/Reject Time:
Complete time:
[issues]:
[email]:
[Release]: 1.2.0
[Proposer]: jack-xu2011
Motivation & Background
At present, in the code related to linkis error codes, an enumeration class of error codes is constructed for different modules, and most of the codes in these classes are repetitive codes.
Basic concept
Expect to achieve goals
Eliminates duplicate code and is easy to extend as new modules are added.
Implementation plan
1. Add the function module enumeration class of linkis, and define the modules in linkis (this should be shared by the whole linkis)
2. Define the mapping relationship between each module and error code in ErrorCodeUtils
3. Merge all error code enumerations and refactor related code
Changes
Modification | Detail | |
---|---|---|
1 | Modification of maven module | |
2 | Modification of HTTP interface | |
3 | Modification of the client interface | |
4 | Modification of database table structure | |
5 | Modification of configuration item | |
6 | Modification Error code | |
7 | Modifications for Third Party Dependencies |
Compatibility, Deprecation, and Migration Plan
- What impact (if any) will there be on existing users?
- If we are changing behavior, how will we phase out the older behavior?
- If we require special migration tools, describe them here.
- When will we remove the existing behavior?