[MCOL-1587] postConfigure: System Name invalid value entering makes inconsistent "Columnstore.xml" and postConfigure cannot be rerun due to parser errors Created: 2018-07-24  Updated: 2019-07-10  Resolved: 2019-07-10

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.1.5
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Stepan Patryshev (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

CentOS Linux 7


Attachments: XML File 180724_Columnstore_Parse_Err.xml    

 Description   

Steps:

1. Just install ColumnStore 1.1.5 on Centos 7, but not configure it.

2. Run "sudo /usr/local/mariadb/columnstore/bin/postConfigure".

3. Select 1 for the type of System Server install.

4. For the System Name value paste the following 4 lines:

Select the type of System Server install [1=single, 2=multi] (2) > 1
 
Performing the Single Server Install.
Enter System Name (columnstore-1) > HappyMariaCS3

Actual results:

1. Console output:

terminate called after throwing an instance of 'std::runtime_error'
  what():  Config::parseDoc: error parsing config file /usr/local/mariadb/columnstore/etc/Columnstore.xml

2. postConfigure cannot be rerun again due to the parser errors:

/usr/local/mariadb/columnstore/etc/Columnstore.xml:260: parser error : Specification mandate value for attribute the
                <DBRootPerforming the Single Server Install.>/usr/local/mariadb/columnstore/da
                                      ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:260: parser error : attributes construct error
                <DBRootPerforming the Single Server Install.>/usr/local/mariadb/columnstore/da
                                      ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:260: parser error : Couldn't find end of Start Tag DBRootPerforming line 260
                <DBRootPerforming the Single Server Install.>/usr/local/mariadb/columnstore/da
                                      ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:260: parser error : expected '>'
mariadb/columnstore/dataPerforming the Single Server Install.</DBRootPerforming
                                                                               ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:260: parser error : Opening and ending tag mismatch: SystemConfig line 220 and DBRootPerforming
mariadb/columnstore/dataPerforming the Single Server Install.</DBRootPerforming
                                                                               ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:261: parser error : Opening and ending tag mismatch: Columnstore line 3 and SystemConfig
        </SystemConfig>
                       ^
/usr/local/mariadb/columnstore/etc/Columnstore.xml:262: parser error : Extra content at the end of the document
        <SystemModuleConfig>
        ^
terminate called after throwing an instance of 'std::runtime_error'
  what():  Config::parseDoc: error parsing config file /usr/local/mariadb/columnstore/etc/Columnstore.xml
Aborted

3. The configuration file "/usr/local/mariadb/columnstore/etc/Columnstore.xml" (attached 180724_Columnstore_Parse_Err.xml) becomes inconsistent.
It contains the following lines 260-262:

		<DBRootPerforming the Single Server Install.>/usr/local/mariadb/columnstore/dataPerforming the Single Server Install.</DBRootPerforming the Single Server Install.>
	</SystemConfig>
	<SystemModuleConfig>

Expected results:

1. postConfigure can be rerun.
2. "Columnstore.xml" does not become inconsistent.


Generated at Thu Feb 08 02:29:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.