Skip to content

[FIXBUG][common]fix yarn applications status cause NPE(#3645)#3648

Merged
qiaozhanwei merged 3 commits intoapache:devfrom
597365581:patch-9
Sep 7, 2020
Merged

[FIXBUG][common]fix yarn applications status cause NPE(#3645)#3648
qiaozhanwei merged 3 commits intoapache:devfrom
597365581:patch-9

Conversation

@597365581
Copy link
Copy Markdown
Contributor

@597365581 597365581 commented Sep 2, 2020

[FIXBUG][common]fix yarn applications status cause NPE

Tips

What is the purpose of the pull request

(For example: This pull request adds checkstyle plugin.)

Brief change log

(for example:)

  • Add maven-checkstyle-plugin to root pom.xml

Verify this pull request

(Please pick either of the following options)

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added dolphinscheduler-dao tests for end-to-end.
  • Added CronUtilsTest to verify the change.
  • Manually verified the change by testing locally.

fix get yarn applications status from yarn server,http code return 404, get yarn applications status cause NullPointerException
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Sep 2, 2020

Please retry analysis of this Pull-Request directly on SonarCloud.

Copy link
Copy Markdown
Contributor Author

@597365581 597365581 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix get yarn applications status from yarn server,http code return 404, get yarn applications status cause NullPointerException

Copy link
Copy Markdown
Contributor Author

@597365581 597365581 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get yarn applications status from yarn server,http code return 404, get yarn applications status cause NullPointerException

@597365581 597365581 marked this pull request as draft September 2, 2020 09:57
@597365581 597365581 marked this pull request as ready for review September 2, 2020 11:00
@597365581 597365581 marked this pull request as draft September 2, 2020 11:14
@597365581
Copy link
Copy Markdown
Contributor Author

fix get yarn applications status from yarn server,http code return 404, get yarn applications status cause NullPointerException

@597365581 597365581 marked this pull request as ready for review September 2, 2020 11:15
@felix-thinkingdata
Copy link
Copy Markdown
Contributor

felix-thinkingdata commented Sep 2, 2020

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。

@felix-thinkingdata
Copy link
Copy Markdown
Contributor

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.It's best to describe the situation in detail.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。最好详细描述下情况。

@597365581
Copy link
Copy Markdown
Contributor Author

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.It's best to describe the situation in detail.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。最好详细描述下情况。

1、yarn http request timeout。2、yarn url is incorrect and so no...

@597365581
Copy link
Copy Markdown
Contributor Author

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.It's best to describe the situation in detail.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。最好详细描述下情况。

1、yarn http request timeout。2、yarn url is incorrect 3、 two yarn cluster,yarn url config in disorder and so no...

@felix-thinkingdata
Copy link
Copy Markdown
Contributor

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.It's best to describe the situation in detail.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。最好详细描述下情况。

1、yarn http request timeout。2、yarn url is incorrect 3、 two yarn cluster,yarn url config in disorder and so no...

Does this erase any specific exception information in the log?

这样会抹去在日志中的具体的异常信息吗?

@felix-thinkingdata
Copy link
Copy Markdown
Contributor

Can you describe what happens when volatilization happens? There is a difference between getting a status return exception, such as 404, and a task running status failure.It's best to describe the situation in detail.

什么情况下会发生?还有就是获取状态404和获取运行状态是失败的还是有区别的。最好详细描述下情况。

1、yarn http request timeout。2、yarn url is incorrect 3、 two yarn cluster,yarn url config in disorder and so no...

Does this erase any specific exception information in the log?

这样会抹去在日志中的具体的异常信息吗?
I see that the lower utility class prints a detailed exception.
我看到了,下层工具类会打印详细异常。

Copy link
Copy Markdown
Contributor

@felix-thinkingdata felix-thinkingdata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optimized exceptions when getting information over YARN HTTP.

优化了,在通过yarn http获取信息时的异常情况。

good job

@597365581
Copy link
Copy Markdown
Contributor Author

Optimized exceptions when getting information over YARN HTTP.

优化了,在通过yarn http获取信息时的异常情况。

good job

ok,can merge?

@597365581 597365581 marked this pull request as draft September 3, 2020 03:35
@597365581 597365581 marked this pull request as ready for review September 3, 2020 03:36
@felix-thinkingdata
Copy link
Copy Markdown
Contributor

ok,can merge?

Wait for others to review.I have no authority to merge

Copy link
Copy Markdown
Member

@CalvinKirs CalvinKirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
but,multiple if nesting does not seem intuitive enough, if it can be modified, it would be better。

@CalvinKirs
Copy link
Copy Markdown
Member

please change the pr title to [FIXBUG][common]fix yarn applications status cause NPE

Copy link
Copy Markdown
Contributor

@yangyichao-mango yangyichao-mango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felix-thinkingdata
Copy link
Copy Markdown
Contributor

please change the pr title to [FIXBUG][common]fix yarn applications status cause NPE

按照要求改下标题。

@597365581 597365581 changed the title fix #3645 [FIXBUG][common]fix yarn applications status cause NPE Sep 4, 2020
@597365581 597365581 changed the title [FIXBUG][common]fix yarn applications status cause NPE [FIXBUG][common]fix yarn applications status cause NPE(#3645) Sep 4, 2020
@597365581
Copy link
Copy Markdown
Contributor Author

@felix-thinkingdata ok, title has changed

Copy link
Copy Markdown
Contributor

@qiaozhanwei qiaozhanwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@qiaozhanwei qiaozhanwei merged commit ba3adbd into apache:dev Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants