Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-5274 #1291 [YSQL] initdb fails in debug build on CentOS
Summary: `initdb` process on the tablet server reads data from postgres system table with thousands rows hosted in the master. All these rows are fetched in context of single RPC with `DocRowwiseIterator`. Timeout of single RPC call is set to 2500msec and in `debug` build this timeout is not enough. ``` W0517 20:01:22.840813 19574 yb_rpc.cc:361] Call yb.tserver.TabletServerService.Read 127.0.0.1:41018 => 127.0.0.1:7100 (request call id 5035) took 2514ms (client timeout 2499ms) ``` After several RPC retries the whole read operations fails with timeout ``` W0501 14:40:41.087746 1236 tablet_rpc.cc:320] Timed out (yb/rpc/outbound_call.cc:436): Failed Read(tablet: 00000000000000000000000000000000, num_ops: 1, num_attempts: 47, txn: 00000000-0000-0000-0000-000000000000) to tablet 00000000000000000000000000000000 on tablet server { uuid: dd0d97df2897493fb8c454947e446efa private: [host: "127.0.0.1" port: 7100] cloud_info: placement_cloud: "cloud1" placement_region: "datacenter1" placement_zone: "rack1" after 47 attempt(s): Read RPC to 127.0.0.1:7100 timed out after 1.162s ``` Debug build uses no optimization, but in case of using `-O1` optimization `DocRowwiseIterator::HasNext` method works ~9 times faster and RPC takes no more than 250msecs Test Plan: - rebuild YB in debug mode `/yb_build.sh --sj` - check cluster starts `./bin/yb-ctl start` Reviewers: timur, mikhail Reviewed By: mikhail Subscribers: yql Differential Revision: https://phabricator.dev.yugabyte.com/D6660
- Loading branch information