Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix getConf bugs when it comes across warning #18330

Closed
wants to merge 3 commits into from

Conversation

YichuanSun
Copy link
Contributor

What changes are proposed in this pull request?

As issue #15795 mentioned. When output any warnings, the cli of judging HA_ENABLED will be invalid. This PR fixs it.

Why are the changes needed?

Bug fix.

Does this PR introduce any user facing changes?

No.

@YichuanSun YichuanSun self-assigned this Oct 26, 2023
bin/alluxio-monitor.sh Outdated Show resolved Hide resolved
else
result="false"
fi
echo $result
Copy link
Contributor

Choose a reason for hiding this comment

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

remove echo

else
result="false"
fi
echo $result
Copy link
Contributor

Choose a reason for hiding this comment

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

remove echo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually I don't think it can be removed. If we delete echo, the function will use a temporary parameter "result" to store the boolean value, after returning, the result will not exist.

@jiacheliu3
Copy link
Contributor

Also you should submit the PR to master-2.x

@YichuanSun YichuanSun closed this Oct 27, 2023
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.

None yet

2 participants