Skip to content
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

S3 offsets should use 64bit integers #22523

Merged
merged 2 commits into from
Nov 10, 2020
Merged

Conversation

urso
Copy link

@urso urso commented Nov 10, 2020

  • Bug

What does this PR do?

Use int64 in S3 input offset arithmetic.

Why is it important?

The size of int is platform specific and should not be used for offset
computations into sources that can go beyond 2GB.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

The size of `int` is platform specific and should not be used for offset
computations into sources that can go beyond 2GB.
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 10, 2020
@botelastic
Copy link

botelastic bot commented Nov 10, 2020

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 10, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #22523 updated]

  • Start Time: 2020-11-10T16:56:49.556+0000

  • Duration: 47 min 52 sec

Test stats 🧪

Test Results
Failed 0
Passed 1957
Skipped 259
Total 2216

Copy link
Contributor

@kaiyan-sheng kaiyan-sheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the change! It looks good.

@elasticmachine
Copy link
Collaborator

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 1957
Skipped 259
Total 2216

@urso urso merged commit 9c41b67 into elastic:master Nov 10, 2020
@urso urso deleted the s3-input-offset-int branch November 10, 2020 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs_team Indicates that the issue/PR needs a Team:* label review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[x-pack-filebeat][windows-7-32] got some failed tests for TestConvertOffsetToString
3 participants