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

Issue 5597 : ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client. #5598

Merged

Conversation

sachin-j-joshi
Copy link
Contributor

ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client

Signed-off-by: Sachin Joshi sachin.joshi@emc.com

Change log description
ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client

Purpose of the change
Fixes #5597

What the code does
ChunkedSegmentStorage closes chunkStorage.
ExtendedS3ChunkStorage and ExtendedS3Storage close S3Client.

How to verify it
Build should pass.

…e S3Client.

Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>
@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #5598 (4c7a801) into master (1cea260) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5598      +/-   ##
============================================
- Coverage     84.69%   84.69%   -0.01%     
- Complexity    13857    13858       +1     
============================================
  Files           917      917              
  Lines         51323    51339      +16     
  Branches       5297     5299       +2     
============================================
+ Hits          43470    43480      +10     
- Misses         4960     4962       +2     
- Partials       2893     2897       +4     
Impacted Files Coverage Δ Complexity Δ
.../pravega/storage/extendeds3/ExtendedS3Storage.java 88.79% <62.50%> (-1.00%) 50.00 <3.00> (+1.00) ⬇️
...ega/storage/extendeds3/ExtendedS3ChunkStorage.java 86.01% <77.77%> (-0.56%) 37.00 <3.00> (+3.00) ⬇️
...age/extendeds3/ExtendedS3SimpleStorageFactory.java 85.71% <100.00%> (ø) 2.00 <0.00> (ø)
...a/storage/extendeds3/ExtendedS3StorageFactory.java 100.00% <100.00%> (ø) 3.00 <0.00> (ø)
...tore/storage/chunklayer/ChunkedSegmentStorage.java 89.64% <100.00%> (+0.03%) 109.00 <0.00> (ø)
...ore/server/host/stat/SegmentStatsRecorderImpl.java 76.87% <0.00%> (-4.63%) 33.00% <0.00%> (-2.00%)
...a/segmentstore/server/logs/OperationProcessor.java 88.21% <0.00%> (-3.43%) 42.00% <0.00%> (-2.00%)
...gmentstore/server/host/stat/SegmentAggregates.java 81.92% <0.00%> (-2.41%) 22.00% <0.00%> (-2.00%)
...egmentstore/server/containers/MetadataCleaner.java 89.83% <0.00%> (-1.70%) 20.00% <0.00%> (-1.00%)
...egmentstore/storage/chunklayer/WriteOperation.java 93.22% <0.00%> (-1.57%) 59.00% <0.00%> (-1.00%)
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1cea260...a2f7e38. Read the comment docs.

Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>
@sachin-j-joshi
Copy link
Contributor Author

@andreipaduroiu Changed the constructor to take shouldClose this way ExtendedS3Storage doesn't have to decide whether to use shared client or not, instead the factory decides and passes correct parameters to shouldClose appropriately.

Also we want to move towards optimistic checks. So, instead of checking isClosed on every call we just let the calls fail when client is closed.

@andreipaduroiu andreipaduroiu merged commit c8b2c8e into pravega:master Feb 2, 2021
tkaitchuck pushed a commit to tkaitchuck/pravega-1 that referenced this pull request Feb 15, 2021
…e S3Client. (pravega#5598)

ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client.

Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>

Co-authored-by: Andrei Paduroiu <andreipaduroiu@users.noreply.github.com>
tkaitchuck pushed a commit to tkaitchuck/pravega-1 that referenced this pull request Feb 15, 2021
…e S3Client. (pravega#5598)

ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client.

Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>

Co-authored-by: Andrei Paduroiu <andreipaduroiu@users.noreply.github.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
sachin-j-joshi added a commit to sachin-j-joshi/pravega that referenced this pull request Feb 23, 2021
…e S3Client. (pravega#5598)

ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client.

Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>

Co-authored-by: Andrei Paduroiu <andreipaduroiu@users.noreply.github.com>
sachin-j-joshi added a commit that referenced this pull request Mar 19, 2021
Cherry-picks following changes 0.9

Issue 5518: (SLTS) Fix Integer overflow. (#5520)
Issue 5606: BoundedInputStream::markSupported() should always return false.. (#5615)
Issue 5597 : ExtendedS3ChunkStorage and ExtendedS3Storage should close S3Client. (#5598)
Issue 5535: (SegmentStore) Refactoring ExtendedS3 Test Mocks (#5537)
Issue 5456: (SLTS) - Handle possible failure during deletion of metadata keys can cause version mismatch in next attempt (#5457)
Issue 5458: (SLTS) For read operation, read all chunks in parallel. (#5459)
Issue 4967: (SLTS) Add createWithContent overload that creates object and writes to it in a single call. (#5455)
Issue 5664: SLTS - fix possible thread visibility issues.. (#5665)
Issue 5475: Eliminate unnecessary pessimistic checks. (#5662)
Issue 5570: (SLTS) AsyncBaseChunkStorage latency should not include time spent in waiting to be executed. (#5661)
Issue 4967: (SLTS) No need to check last chunk length for claimOwnership for no append mode. (#5663)
Issue 5673: (SLTS) Fix wrong GC config (#5674)
Issue 5737: (SLTS) Improve metrics (#5746)
Issue 5460: (SLTS) Add read index virtual block entries to metadata. (#5461)
Issue 5772: (SLTS) - BaseMetadataStore does not evict entries from buffer. (#5773)
Issue 5798: (SLTS) Fix close in GarbageCollector, ExtendedS3ChunkStorage and HDFSChunkStorage. (#5800)
Issue 5788: (SLTS) Remove ACL operations from ExtendedS3ChunkStorage (#5790)
Issue 5808: SLTS - Fix Preconditions checks to include enough information in message. (#5809)
Issue 5853: SLTS - BaseMetadataStore.get does not return deep copy when loading from store. #5858
Issue 5866: (SLTS) ReadIndexCache stats not reported. (#5867)


Signed-off-by: Sachin Joshi <sachin.joshi@emc.com>
@sachin-j-joshi sachin-j-joshi deleted the issue-5597-SLTS-close-S3-Client branch August 23, 2021 20:48
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.

ExtendedS3ChunkStorage and ExtendedS3Storage do not close S3Client
2 participants