-
Notifications
You must be signed in to change notification settings - Fork 76
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
s3select - Add tests (and some optional funcationality for them) #7222
Conversation
b3307a8
to
bd017ad
Compare
] | ||
`; | ||
|
||
class S3SelectStream extends Transform { |
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.
Why aren't you using the S3SelectStream
in util/s3select
?
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.
The "real" S3SelectStream in util/s3select also has the AWS chunk enconding.
If we want to reuse it we need to make the encoding optional (eg add parameter/move to a different stream).
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.
Added a comment to explain rationale of the new class.
src/test/system_tests/ceph_s3_tests/s3-tests-lists/s3_tests_pending_list.txt
Outdated
Show resolved
Hide resolved
02a5fb0
to
d1ec6ff
Compare
docs/dev_guide/ceph_s3_tests/ceph_s3_tests_pending_list_status.md
Outdated
Show resolved
Hide resolved
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.
LGTM
@alphaprinz, Thank you for adding comments with detailed explanations!
2 (last) comments:
- @guymguym, would you please review tests
double pipe close
andasync loop error
? - @alphaprinz, would please organize the PR description?
For example:
- add testing instructions for running the file you created
- add the gap of parquet file (it can be a Jira link)
- add to the changes updating to
test_s3select.js
ea9ee81
to
6d349c2
Compare
Implement Stats message. Send End message on errors. Add FileHeaderInfo=IGNORE. Add unit tests. Uncomment most ceph s3select tests from pending list. Add a manual patch for ceph tests code so teardown will delete bucket created by test. Signed-off-by: Amit Prinz Setter <aprinzse@ibm.com>
Explain the changes
First commit adds some optional functionality which is tested in ceph s3select tests.
Second commit adds tests.
Issues: Fixed #xxx / Gap #xxx
1a. End message on error.
1b. Stats message on completion.
1c. FileHeaderInfo=IGNORE (it's a different field in s3selct csv_definitions struct).
New unit tests.
Most ceph tests related to s3select were removed from pending list.
(Remaining tests have bugs in tests)
A manual fix is applied to test code so that bucket name would conform to bucket name pattern.
After fix teardown properly deletes the bucket created by test.
Without fix only one test passes. The second test fails when it tries to create an already existing bucket.
Testing Instructions: