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: Persistence layer creates zero-length initial shards file #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjdweck
Copy link

@bjdweck bjdweck commented Apr 10, 2020

I was running into an issue when running hermit in several different environments (docker on Win10, docker on Ubuntu, Ubuntu, PyCharm on Ubuntu): hermit was not initializing the shards_file properly (with empty bson) and the UI was choking on it. Turns out that the persistence layer command was resulting in an empty initial file being created, and the existing code didn't catch it because it was only checking for the existence of the file.

@codecov-io
Copy link

Codecov Report

Merging #32 into master will not change coverage by %.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #32   +/-   ##
=======================================
  Coverage   57.83%   57.83%           
=======================================
  Files          25       25           
  Lines        1238     1238           
  Branches      168      168           
=======================================
  Hits          716      716           
  Misses        504      504           
  Partials       18       18           
Impacted Files Coverage Δ
hermit/shards/shard_set.py 58.53% <0.00%> (ø)

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 e02011c...ae7ed73. Read the comment docs.

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.

2 participants