How to reproduce:
Start the csqlserver.
Open another terminal.
run ps -ef | grep csqlserver
kill -9 <pid of csqlserver>
server running in another terminal gets killed.
run csqlserver again.
Observed behavior:
it fails with the following message
5326:3086379344:DatabaseManagerImpl.cxx:106:Shared Memory already exists
5326:3086379344:DatabaseManagerImpl.cxx:108:Shared memory create failed
System Database Initialization failed
Expected behavior:
The server should start cleanly without any error.
Solution:
The shared memory segments created during start up do not get removed from the system. Hence the error Shared Memory already exists' appear.
Shared memory segments created during startup should be removed gracefully when server gets killed.