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

Fix #705 out of memory error thrown by Files.readAllBytes #710

Merged
merged 8 commits into from
Apr 23, 2019

Conversation

melowe
Copy link
Contributor

@melowe melowe commented Apr 23, 2019

Change data loaders to return input streams rather than byte arrays.

  1. Added test replicating issue Unable to migrate data from constellation when payloads content is large #705
  2. Sqlite doesn't support setBinaryStream so added work around for time being.

for set binary stream when available to JDBC driver. Fixes #705 where 
Files.readAllBytes throws out of memory error. 

Conflicts:
	data-migration/src/test/java/com/quorum/tessera/data/migration/DirectoryStoreFileTest.java
@codecov-io
Copy link

codecov-io commented Apr 23, 2019

Codecov Report

Merging #710 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #710      +/-   ##
============================================
+ Coverage     99.49%   99.49%   +<.01%     
- Complexity     1867     1874       +7     
============================================
  Files           285      286       +1     
  Lines          5552     5572      +20     
  Branches        278      281       +3     
============================================
+ Hits           5524     5544      +20     
  Misses            5        5              
  Partials         23       23
Impacted Files Coverage Δ Complexity Δ
.../quorum/tessera/data/migration/H2DataExporter.java 100% <ø> (ø) 2 <0> (ø) ⬇️
...om/quorum/tessera/data/migration/SqliteLoader.java 100% <100%> (ø) 4 <0> (ø) ⬇️
.../java/com/quorum/tessera/data/migration/Utils.java 100% <100%> (ø) 3 <3> (?)
...com/quorum/tessera/data/migration/BdbDumpFile.java 100% <100%> (ø) 4 <3> (ø) ⬇️
...rum/tessera/data/migration/DirectoryStoreFile.java 100% <100%> (ø) 5 <1> (ø) ⬇️
...quorum/tessera/data/migration/CmdLineExecutor.java 100% <100%> (ø) 5 <0> (ø) ⬇️
...com/quorum/tessera/data/migration/StoreLoader.java 100% <100%> (ø) 2 <0> (ø) ⬇️
...rum/tessera/data/migration/SqliteDataExporter.java 100% <100%> (ø) 6 <2> (+4) ⬆️
...uorum/tessera/data/migration/JdbcDataExporter.java 100% <100%> (ø) 6 <0> (ø) ⬇️

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 f3a2841...e969c03. Read the comment docs.

Avoid Files max size validation to ensure buffering is working. Same
test fails with same messageless error reported by user against master.
@Krish1979 Krish1979 merged commit 7510c03 into master Apr 23, 2019
@prd-fox prd-fox added 0.10.0 bug Something isn't working labels Apr 29, 2019
@prd-fox prd-fox deleted the issue-705 branch April 29, 2019 13:54
@Krish1979 Krish1979 added 0.9.3 and removed 0.10.0 labels Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.3 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants