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

Java8 ByteBuffer.flip returnType #974

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Java8 ByteBuffer.flip returnType #974

merged 2 commits into from
Mar 7, 2023

Conversation

singhravidutt
Copy link
Contributor

@singhravidutt singhravidutt commented Mar 6, 2023

Updating use of BuyteBuffer.flip() for Java8 plasma-umass/doppio#497 (comment) explains the issue very well.

@singhravidutt
Copy link
Contributor Author

/gcbun

@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Patch coverage: 95.00% and project coverage change: +0.13 🎉

Comparison is base (b769cc3) 80.99% compared to head (98b9156) 81.13%.

Additional details and impacted files
@@                Coverage Diff                 @@
##             branch-2.2.x     #974      +/-   ##
==================================================
+ Coverage           80.99%   81.13%   +0.13%     
- Complexity           2237     2250      +13     
==================================================
  Files                 154      156       +2     
  Lines               10342    10369      +27     
  Branches             1209     1211       +2     
==================================================
+ Hits                 8377     8413      +36     
+ Misses               1447     1442       -5     
+ Partials              518      514       -4     
Flag Coverage Δ
hadoop2integrationtest 61.64% <90.00%> (+0.58%) ⬆️
hadoop2unittest 69.35% <87.50%> (+0.11%) ⬆️
hadoop3integrationtest 61.60% <90.00%> (+0.60%) ⬆️
hadoop3unittest 69.38% <87.50%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...oop/gcsio/GoogleCloudStorageClientReadChannel.java 84.01% <77.77%> (+1.57%) ⬆️
...op/fs/gcs/GoogleHadoopFileSystemConfiguration.java 99.13% <100.00%> (-0.01%) ⬇️
...oud/hadoop/gcsio/GoogleCloudStorageClientImpl.java 91.22% <100.00%> (+1.94%) ⬆️
...op/gcsio/GoogleCloudStorageClientWriteChannel.java 94.18% <100.00%> (ø)
...oud/hadoop/gcsio/GoogleCloudStorageFileSystem.java 91.29% <100.00%> (+0.13%) ⬆️
...oop/gcsio/GoogleCloudStorageFileSystemOptions.java 100.00% <100.00%> (ø)
...m/google/cloud/hadoop/util/ErrorTypeExtractor.java 100.00% <100.00%> (ø)
...ogle/cloud/hadoop/util/GrpcErrorTypeExtractor.java 100.00% <100.00%> (ø)
...adoop/fs/gcs/GoogleHadoopSyncableOutputStream.java 90.00% <0.00%> (+1.53%) ⬆️
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@singhravidutt singhravidutt marked this pull request as ready for review March 6, 2023 17:04
@@ -131,7 +132,7 @@ public Boolean call() throws Exception {
}
byteBuffer.put(data.toByteArray());
// switch to read mode
byteBuffer.flip();
((Buffer) byteBuffer).flip();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we are doing this? What will happen if we do not do this?

Also, add a comment here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is covered as part of PR description.

@singhravidutt singhravidutt merged commit ea5f334 into branch-2.2.x Mar 7, 2023
@singhravidutt singhravidutt deleted the byteBuffer branch March 7, 2023 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants