[MCOL-971] 1.0 to 1.1 non-root upgrade issue - problem shows after a reboot, still using 1.0 ENV variables Created: 2017-10-12 Updated: 2023-10-26 Resolved: 2017-10-26 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.0.11 |
| Fix Version/s: | 1.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Hill (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
non-root install, my test environment was Amazon AMI |
||
| Sprint: | 2017-20, 2017-21 |
| Description |
|
After a 1.0 non-root install was upgraded and then the server was rebooted, the following error occurred: mcsadmin This is happening because the 1.0 ENV variables aren't cleanly removed as part of the 1.0 install and erase/upgrade process to 1.1. The main issue is 1.0 postConfigure also calls post-install, which messes up the saved .bashrc file. In 1.1, postConfigure was changed to NOT call post-install, so the problem is not in the 1.1 code. So a fix in 1.0.12 will need to be done, BUT there might need to be some code or workaround in 1.1 to prevent the problem when user upgrades from 1.0.11 or earlier ------------------------------------------------------------------------- at 1.0.11 ami launch - .bashrc
.bashrc.columnstore - is empty $ cat .bashrc.columnstoreSave
AFTER postConfigure is run: cat .bashrc.columnstoreSave // has the ENV and alias in there so when the pre-uninstall is run, the 1.0 ENV and alias will remain. ./mariadb/columnstore/bin/pre-uninstall --installdir=/home/mariadb-user/mariadb/columnstore cat .bashrc
install mariadb 1.1 and run post-install
run postconfigure with new ENV export COLUMNSTORE_INSTALL_DIR=/home/mariadb-user/mariadb/columnstore successfully installs then reboot $ mcsadmin |
| Comments |
| Comment by David Hill (Inactive) [ 2017-10-24 ] |
|
This will be fix by Since the whole file is replaced on upgraded, old settings cant remain anymore like it did when we was using .bashrc files. how to test: install 1.0... you will see alias's in .bashrc |
| Comment by Daniel Lee (Inactive) [ 2017-10-26 ] |
|
Build verified: Github source for 1.1.1 /root/columnstore/mariadb-columnstore-server Merge pull request #72 from mariadb-corporation/ /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine Merge pull request #302 from mariadb-corporation/ |