Skip to content

S3 offsets should use 64bit integers#22523

Merged
urso merged 2 commits intoelastic:masterfrom
urso:s3-input-offset-int
Nov 10, 2020
Merged

S3 offsets should use 64bit integers#22523
urso merged 2 commits intoelastic:masterfrom
urso:s3-input-offset-int

Conversation

@urso
Copy link
Copy Markdown

@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.
@urso urso requested a review from kaiyan-sheng November 10, 2020 16:52
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 10, 2020
@botelastic
Copy link
Copy Markdown

botelastic bot commented Nov 10, 2020

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

💚 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