Skip to content

Conversation

water32
Copy link
Contributor

@water32 water32 commented Aug 20, 2025

When the environment variables COORDINATOR_DATA_DIRECTORY are not set correctly, the error message is meaningless

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


When the environment variables COORDINATOR_DATA_DIRECTORY are not set correctly, the error message is meaningless
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi, @water32 welcome!🎊 Thanks for taking the effort to make our project better! 🙌 Keep making such awesome contributions!

coordinator_data_directory = os.getenv('COORDINATOR_DATA_DIRECTORY')
if coordinator_data_directory is None:
coordinator_data_directory = options.coordinatorDataDirectory
coordinator_data_directory = get_coordinatordatadir()
Copy link
Contributor

Choose a reason for hiding this comment

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

Also need to modify gpstart, gpstop, and etc

@tuhaihe
Copy link
Member

tuhaihe commented Aug 20, 2025

Hi @water32 thanks for your contribution! Could you please update the commit title and message body following our commit convention .gitmessage for a better context? Thanks.

@water32 water32 changed the title Update gpstop Let gpstop error message about environment variable readable Aug 26, 2025
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.

4 participants