Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello.
In Present, the function-alert test is failed when the volume to place a data directory is small, because an alert is triggered when a remaining volume of a pg_global falls below a threshold.
The places that cause the test to fail are follows.
The test overwrites a remaining volume of pg_default to make it look smaller for triger a alert.
It is set in the following places.
pg_statsinfo/test/script/function-alert.sh
Line 162 in 67e35c3
And the log output at this time is follows.
The second line is the log that causes the test to failed.
Test results should not diffrent by environment, so I propose this solution.
It is the test overwrites a remaining volume of pg_global to make it look bigger for not triger a alert.
This is made alerted in only pg_default.
As a side note, another solution is eixsted for this problem.
It is the test overwrites a remaining volume of pg_global to make it look smaller for triger a alert.
This is made alerted in both pg_default and pg_blobal.
But, the purpose of this test is to confirm that an alert will be triggered when a remaining volume is below the threshold, so it only needs to be confirmed in one tablespace.