-
Notifications
You must be signed in to change notification settings - Fork 19
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
CLOUD-464: Updates for Reconciliation #176
base: master
Are you sure you want to change the base?
Changes from 3 commits
ebe7968
b3f8f06
08ac7dd
400b8d6
440d2ad
3e6b0e7
11880d1
aa3d6b4
ef9cd2a
abc7719
bd0b6e9
1e48653
f973a39
7e21676
40bc71c
09652f1
662d939
c8cbddb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,7 @@ | |
group "root" | ||
mode 0754 | ||
cookbook 'ndb' | ||
variables({ :node_id => found_id }) | ||
variables({}) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can remove this line entirely ;) |
||
if node['services']['enabled'] == "true" | ||
notifies :enable, resources(:service => service_name) | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,17 @@ if [ "X$USERID" != "X<%= node['ndb']['user'] %>" ]; then | |
exit -3 | ||
fi | ||
|
||
if [ "${NDBD_INITIAL_RESTART}" = "true" ]; then | ||
INIT_ARG= | ||
if [ "${NDBD_INITIAL_RESTART}" = "true" || -n "${INITIAL_START}" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The correct syntax is either |
||
INIT_ARG=--initial | ||
sed -i 's/^NDBD_INITIAL_RESTART=.*$/NDBD_INITIAL_RESTART=false/g' <%= node['ndb']['scripts_dir'] %>/ndbd_env_variables | ||
fi | ||
|
||
SERVICE_ARG= | ||
if [ -n "$SERVICE_NAME" ]; then | ||
maismail marked this conversation as resolved.
Show resolved
Hide resolved
|
||
SERVICE_ARG="--service-name $SERVICE_NAME" | ||
fi | ||
|
||
MGM_CONN=<%= node['ndb']['connectstring'] %> | ||
|
||
# comma separated list of node-ids of nodes not to wait for when starting this ndbmtd | ||
|
@@ -45,8 +51,8 @@ done | |
|
||
echo "Starting Data Node <%= @node_id %>." | ||
# --connect-retries == -1 implies that the ndbd keeps trying forever to connect to the ndb_mgmd | ||
#su <%= node['ndb']['user'] %> -c "<%= node['mysql']['base_dir'] %>/bin/ndbmtd -c $MGM_CONN --ndb-nodeid=<%= @node_id %> --connect-retries=-1 --connect-delay=10" | ||
<%= node['mysql']['base_dir'] %>/bin/ndbmtd -c "$MGM_CONN" --ndb-nodeid=<%= @node_id %> --connect-retries=-1 --connect-delay=10 $INIT_ARG $NOWAIT_NODES_LIST | ||
#su <%= node['ndb']['user'] %> -c "<%= node['mysql']['base_dir'] %>/bin/ndbmtd -c $MGM_CONN --ndb-nodeid=<%= @node_id %> --connect-retries=-1 --connect-delay=10 ${SERVICE_ARG}" | ||
<%= node['mysql']['base_dir'] %>/bin/ndbmtd -c "$MGM_CONN" --ndb-nodeid=<%= @node_id %> --connect-retries=-1 --connect-delay=10 $INIT_ARG $NOWAIT_NODES_LIST ${SERVICE_ARG} | ||
|
||
RES=$(echo $?) | ||
exit $RES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version change should wait for RONDB-519, which updates rondb from the entire platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok