-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [On call / 171] Source Salesforce: fixed the bug when Bulk
fetch took all memory of kube pods
#11692
Conversation
Bulk
fetch took all memory of kube pods.Bulk
fetch took all memory of kube pods
Codecov Report
@@ Coverage Diff @@
## master #11692 +/- ##
=========================================
Coverage ? 88.11%
=========================================
Files ? 7
Lines ? 547
Branches ? 0
=========================================
Hits ? 482
Misses ? 65
Partials ? 0 Continue to review full report at Codecov.
|
/test connector=connectors/source-salesforce
|
I have added in really I still cannot see any difference
|
Signed-off-by: Sergey Chvalyuk <[email protected]>
Can we adjust this test to use all memory in the system available? Let’s say 10gb file?
…________________________________
From: Serhii Chvaliuk ***@***.***>
Sent: Tuesday, April 5, 2022 11:16:11 PM
To: airbytehq/airbyte ***@***.***>
Cc: Baz ***@***.***>; Assign ***@***.***>
Subject: Re: [airbytehq/airbyte] 🐛 [On call / 171] Source Salesforce: fixed the bug when `Bulk` fetch took all memory of kube pods (PR #11692)
I have added unit_tests/test_memory.py file PLEASE REMOVE !!!
in really I still cannot see any difference
git checkout bazrnov/171-source-salesforce-oom-issue
pytest -s unit_tests/test_memory.py
first_size = 0.10 Mb, first_peak = 16.71 Mb
git checkout master
pytest -s unit_tests/test_memory.py
first_size = 0.10 Mb, first_peak = 16.71 Mb
—
Reply to this email directly, view it on GitHub<#11692 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFPMHGRF7R3I2XXWH7NG24DVDSNQXANCNFSM5SPH4HPA>.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
…salesforce-oom-issue
…salesforce-oom-issue
2885769
to
804b5f1
Compare
/test connector=connectors/source-salesforce
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small question around the TmpFileIOError's constructor, but looks good otherwise
airbyte-integrations/connectors/source-salesforce/source_salesforce/exceptions.py
Outdated
Show resolved
Hide resolved
/publish connector=connectors/source-salesforce
|
cb15d1c
to
8ce95f5
Compare
…took all memory of kube pods (#11692)
What
Resolving: https://github.com/airbytehq/oncall/issues/171
How
download_data
method to write the response by chunks into tmp fileread_with_chunks
method to read the data from tmp file by chunks (lines)test_memory
unit_test to cover the caseDockerfile
to support native installation ofpandas
andnumpy
frameworks🚨 User Impact 🚨
No impact expected.
Pre-merge Checklist
Expand the relevant checklist and delete the others.
Updating a connector
Community member or Airbyter
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described here