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

PP bug fix and crash log #154

Merged
merged 10 commits into from
May 20, 2020
Merged

PP bug fix and crash log #154

merged 10 commits into from
May 20, 2020

Conversation

rajeee
Copy link
Contributor

@rajeee rajeee commented May 14, 2020

The postrprocessing would crash if the number of partitions ended up being larger than number of files.

Pull Request Description

The pull request as two part.

  1. Fixing the PP bug: Postprocessing fail in Eagle #153
  2. Adding a detailed crash logging capability to BSB to make debugging errors easier in the future.

Checklist

Not all may apply

  • Code changes (must work)
  • Tests exercising your feature/bug fix (check coverage report on CircleCI build -> Artifacts)
  • All other unit tests passing
  • Update validation for project config yaml file changes
  • Update documentation
  • Run a small batch run to make sure it all works (local is fine, unless an Eagle specific feature)

@rajeee rajeee requested a review from nmerket May 14, 2020 18:15
Copy link
Member

@nmerket nmerket left a comment

Choose a reason for hiding this comment

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

Looks pretty good. One comment about testing below. Hopefully this extra logging stuff helps in debugging in the future.

@@ -326,6 +326,7 @@ def combine_results(fs, results_dir, cfg, do_timeseries=True):

# Determine how many files should be in each partition and group the files
npartitions = math.ceil(total_mem / 1e9) # 1 GB per partition
npartitions = min(len(ts_filenames), npartitions) # cannot have less than one file per partition
Copy link
Member

Choose a reason for hiding this comment

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

Do you have a test for this? To avoid having to make files that are actually big enough to hit this issue, you could mock some function in the line of calculation for total_mem.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added the test.

@rajeee rajeee requested a review from nmerket May 20, 2020 00:59
@nmerket nmerket merged commit 2124a82 into master May 20, 2020
@nmerket nmerket deleted the pp_bug_fix_and_crash_log branch May 20, 2020 17:44
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.

None yet

2 participants