Skip to content

Remove redundant check when creating DistributedStagesScheduler#12202

Merged
Praveen2112 merged 1 commit intotrinodb:masterfrom
yikf:codeSimplification
May 4, 2022
Merged

Remove redundant check when creating DistributedStagesScheduler#12202
Praveen2112 merged 1 commit intotrinodb:masterfrom
yikf:codeSimplification

Conversation

@yikf
Copy link
Copy Markdown
Contributor

@yikf yikf commented Apr 30, 2022

Description

This pr aims to clean useless condition in SqlQueryScheduler when createDistributedStagesScheduler for code simplification(Condition 'retryPolicy == RetryPolicy.QUERY' is always 'true' when reached)

Related issues, pull requests, and links

Documentation

( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 30, 2022
@yikf
Copy link
Copy Markdown
Contributor Author

yikf commented Apr 30, 2022

cc @findepi

Copy link
Copy Markdown
Member

@Praveen2112 Praveen2112 left a comment

Choose a reason for hiding this comment

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

Thanks for finding it out.

@raunaqmorarka @findepi Is it okay to remove this redundant check ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we rename the commit message as Remove redundant check when creating DistributedStagesScheduler

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@yikf yikf changed the title [MINOR]Clean useless condition for code simplification [MINOR]Remove redundant check when creating DistributedStagesScheduler May 2, 2022
@Praveen2112 Praveen2112 changed the title [MINOR]Remove redundant check when creating DistributedStagesScheduler Remove redundant check when creating DistributedStagesScheduler May 4, 2022
@Praveen2112 Praveen2112 merged commit a81b665 into trinodb:master May 4, 2022
@github-actions github-actions bot added this to the 380 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants