trafodion
trafodion copied to clipboard
[TRAFODION-3183] fetch huge data give rise to core
each time do fetch , calc whether fetch size is bigger than 1GB, if true ,devide fetch times depend on fetchsize/1gb
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/2942/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/2942/
is there some one can review this?
jenkins, retest
@selvaganesang, does this look good to you now?
Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3071/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3071/
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3076/
Test Failed. https://jenkins.esgyn.com/job/Check-PR-master/3076/
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3077/
Test Failed. https://jenkins.esgyn.com/job/Check-PR-master/3077/
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3078/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3078/
@selvaganesang do you think it's OK now
is there someone can review this?
I think @selvaganesang is still out on vacation; he should be back tomorrow. I will ping him then.
New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3079/
Test Failed. https://jenkins.esgyn.com/job/Check-PR-master/3079/
Previous Test Aborted. New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3080/
Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3080/
Looks ok with some subtle corrections needed. getFetchSize needs to call setFetchSizeIfExceedLimit() so that it can return correct value of fetch size when getFetchSize is issued without calling next(). You can do some optimization so that setFetchSizeIfExceededLimit is called only once instead of calculating the fetch size every time next() is called. FetchSize can be obtained via a data source property to control the size of the buffer to ship from server to client. Currently it is either 100 rows or 1 GB