koblas / impalathing

A golang driver for impala via thrift
Other
28 stars 21 forks source link

slow impala query cause i/o timeout #13

Open darren opened 5 years ago

darren commented 5 years ago

2019/05/18 23:01:25 rowset.go:155: FetchResults failed: read tcp 192.168.20.8:51468->192.168.20.15:21000: i/o timeout

https://github.com/koblas/impalathing/blob/84e5f9c518e1d1c8f1d2de51ed27b6edb7e0355e/connection.go#L30

it seems that 10 second timeout here is too small.

koblas commented 5 years ago

Would encourage a pull request that adds a timeout to the options structure.