Closed kunkun-tang closed 6 years ago
I don't think it's an elegant fix. Can we put those classpath in global.properties? or at least construct it from JavaProcessJob.java which avoids the code duplication. Check JavaProcessJob#getClassPaths(). cc @HappyRay
@chengren311 Yes, it's not. Your concern is valid, but we probably should consider moving all those classpaths together at a future point and comprehensively test it.
nit: there's typo in your description: logacy
The merged pull request created a new az-core module, which should be the baseline foundation class for all other az modules. It caused a bug in AZ production cluster:
The issue is that launched job doesn't specify
azkaban-common
classpath. The root cause comes from the old legacy codebase inAzkaban-plugins
. Originally every jobtype tries to locate which jar includes classProps
and include that jar as part of the classpath. However, the mentioned pull request broke it sinceProps
is moved toaz-core
module now. So we locate another class inAzkaban-common
and have the jar wrapping the class.The solution is just temporary, and we should wholely refactor these class at some point in future.