Skip to content

[BUG] optimize #3165 Gets the value of this property “resource.storage.type”, Comparison with enumerated types  #3176

@felix-thinkingdata

Description

@felix-thinkingdata

By looking at the ResourcesService code, I found a potential problem.

Enumeration type comparisons are used in both classes :HadoopUtils.java ,CommonUtils.java

I don't think this submission is perfect

All comparisons of ResUploadType need to be optimized.

I'm going to modify this part

中文:

通过阅读ResourcesService代码,发现了潜在隐患。

在HadoopUtils和CommonUtils,资源中心类型,都是通过枚举类型比较。

所以感觉到submission 这个提交是不完备的。

需要优化所有的ResUploadType类型比较部分的代码。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions