Skip to content

ADBDEV-2092: Different number of interfaces per host#268

Closed
tsdkv wants to merge 1 commit intoadb-6.xfrom
ADBDEV-2092
Closed

ADBDEV-2092: Different number of interfaces per host#268
tsdkv wants to merge 1 commit intoadb-6.xfrom
ADBDEV-2092

Conversation

@tsdkv
Copy link

@tsdkv tsdkv commented Oct 7, 2021

At the moment there is a problem with the different number of interfaces per host. It has not been checked.

Example host file:

sti-vm2-1
sti-vm3-1
sti-vm3-2

The gpinitsystem didn't check the different number of interfaces. It only used the first host as a template for counting, assuming that the others had same number.

@pisohaka
Copy link
Member

pisohaka commented Nov 2, 2021

bender build

@tsdkv tsdkv force-pushed the ADBDEV-2092 branch 3 times, most recently from 303437b to 7284e7b Compare November 15, 2021 22:52
@tsdkv tsdkv marked this pull request as ready for review November 15, 2021 23:01
@tsdkv tsdkv changed the title ADBDEV-2092 ADBDEV-2092: Different number of interfaces per host Nov 15, 2021
@tsdkv tsdkv requested a review from a team November 16, 2021 11:38
if [ `$ECHO ${M_HOST_ARRAY[@]}|$TR ' ' '\n'|$AWK -F"~" '{print $2}'|$SORT -u|$WC -l` -ne $MCOUNT ];then
COUNT_MHOST_NODES=`$ECHO ${M_HOST_ARRAY[@]}|$TR ' ' '\n'|$AWK -F"~" '{print $2}'|$UNIQ -c|$AWK '{print $1}'|$SORT -u`
if [ `$ECHO ${COUNT_MHOST_NODES}|$WC -w` -ne 1 ];then
ERROR_EXIT "[FATAL]:-Uneven distribution of network interfaces by hosts" 2

Choose a reason for hiding this comment

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

Probably is is worth to add more information to show what hosts are not unique.
For example:

LOG_MSG "[FATAL]:-Uneven distribution of network interfaces by hosts" 1
LOG_MSG "[INFO]: Number of hosts: `$ECHO ${M_HOST_ARRAY[@]}|$TR ' ' '\n'|$AWK -F"~" '{print $2}'|$WC -w`" 1
$ECHO ${M_HOST_ARRAY[@]}|$TR ' ' '\n'|$AWK -F"~" '{print $1" -> "$2}'
LOG_MSG "[INFO]: Number of unique hosts: `$ECHO ${COUNT_MHOST_NODES}|$WC -w`" 1
ERROR_EXIT "[FATAL]:-Unable to continue" 2

Will produce:

20211213:13:36:04:025358 gpinitsystem:ssmirnov-mdw:gpadmin-[FATAL]:-Uneven distribution of network interfaces by hosts
20211213:13:36:04:025358 gpinitsystem:ssmirnov-mdw:gpadmin-[INFO]: Number of hosts: 3
ssmirnov-sdw1-1 -> ssmirnov-sdw1
ssmirnov-sdw2-1 -> ssmirnov-sdw2
ssmirnov-sdw2-2 -> ssmirnov-sdw2
20211213:13:36:05:025358 gpinitsystem:ssmirnov-mdw:gpadmin-[INFO]: Number of unique hosts: 2
20211213:13:36:05:025358 gpinitsystem:ssmirnov-mdw:gpadmin-[FATAL]:-Unable to continue Script Exiting!

Choose a reason for hiding this comment

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

For me this improvement looks nice and gives precise information to fix error.

RekGRpth pushed a commit that referenced this pull request Mar 2, 2026
Isolation tests run as separate make rules, all of them outputting to the same
directory. Because of this, regression.diffs file gets overwritten, and so its
contents for earlier runs are lost.

To fix this, use --outputdir option to put them all into separate directories,
together with results directory, and also auto-generated sql and results.

pg_regress also had an issue that it created these directories in the current
folder, not in --outputdir, which is also fixed here for --outputdir to work
properly.

Changes from original commit:
1. There are less test suites in 6X, unnecessary changes removed.
2. Update path to resgroup tests output in run_resgroup_test.bash.
3. Add missing directory creation.
4. Update hardcoded .so path in resgroup tests

Ticket: GG-215

(cherry picked from commit 5a495764fe5886d924d68890f86838b7af5c9cce)
@tsdkv tsdkv closed this Mar 13, 2026
@ivanievlev
Copy link

ivanievlev commented Mar 13, 2026 via email

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