futurewei-cloud / chogori-opengauss

Other
2 stars 7 forks source link

It should load config file once #47

Open ahsank opened 1 year ago

ahsank commented 1 year ago

Currently gaussdb loads json config file all the time, making debugging harder due to extra log messages

[0000:13:59:29.400.196]--[140032605398400]-(k2::pg) [Info] [session.cpp:125 @endTxn] end txn, with action: Commit
[0000:13:59:29.400.697]--[140031578593024]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.401.196]--[140031561824000]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.401.298]--[140031561824000]-(k2::pg) [Info] [session.cpp:128 @operator()] txn ended, with action: Commit
[0000:13:59:29.401.451]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.401.498]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.401.558]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.402.265]--[140031561824000]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.402.447]--[140031608944384]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.402.698]--[140031561824000]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.402.872]--[140031561824000]-(k2::pg) [Info] [session.cpp:111 @operator()] Started new txn: {_id=ts=0000:13:59:29.402.001, tso_id=1000} {timeout=0000:00:00:20.000.000, priority=medium, syncFinalize=false}
[0000:13:59:29.402.898]--[140031561824000]-(k2::pg) [Error] [session.cpp:114 @operator()] Unable to begin txn due to: {code=201, message=}
[0000:13:59:29.403.097]--[140032605398400]-(k2::pg) [Info] [session.cpp:125 @endTxn] end txn, with action: Commit
[0000:13:59:29.403.867]--[140031561824000]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.404.238]--[140031578593024]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.404.304]--[140031578593024]-(k2::pg) [Info] [session.cpp:128 @operator()] txn ended, with action: Commit
[0000:13:59:29.404.409]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.404.478]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.404.510]--[140032605398400]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.405.160]--[140031578593024]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.405.427]--[140031608944384]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[0000:13:59:29.405.649]--[140031578593024]-(k2::pg) [Info] [config.cpp:35 @Config] /opt/opengauss/simpleInstall/k2config_pgrun.json
[000
iafuture commented 1 year ago

This is quite interesting since it shows 4 threads executing. The. What was the scenario you ran?

ahsank commented 1 year ago

I just run ./install.sh which runs initdb