sqenv.sh is not idempotent
Bug #1401216 reported by
Chris Sheedy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
Low
|
Chris Sheedy |
Bug Description
Invoking sqenv.sh more than once in the same shell should be a safe operation, and not increase the size of environment variables. Setting SQ_VERBOSE=1 is an easy way to see the growth in $PATH each time sqenv.sh is invoked.
Changed in trafodion: | |
importance: | Undecided → Low |
tags: | added: dev-environment |
Changed in trafodion: | |
assignee: | nobody → Chris Sheedy (chris-sheedy) |
status: | New → In Progress |
Changed in trafodion: | |
milestone: | r1.0 → r2.0 |
Changed in trafodion: | |
status: | Fix Committed → In Progress |
To post a comment you must log in.
An example message that should not be given is in the developer environment, when starting with clean source code for trafodion/core :
$ . ./sqenvr.sh etc/ms. env
$ . ./sqenvr.sh
The environment changed from a previous execution of this script.
This is not supported. To change environments, do the following:
sqstop
<make any changes, e.g. update Hadoop, HBase, MySQL>
start a new shell and source in sqenv.sh
rm $MY_SQROOT/
sqgen
start a new shell and source in sqenv.sh
sqstart
$