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

Change payload file path #92

Closed
wants to merge 2 commits into from
Closed

Conversation

EESergey
Copy link
Contributor

Without this change, when running simultaneously, the size of the objects being written may be incorrect.

Without this change, when running simultaneously, the size of the objects being written may be incorrect.

Signed-off-by: EESergey <s.eremenko@nspcc.io>
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.20%. Comparing base (9254250) to head (4973030).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master     #92   +/-   ##
======================================
  Coverage    2.20%   2.20%           
======================================
  Files          11      11           
  Lines         725     725           
======================================
  Hits           16      16           
  Misses        709     709           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roman-khimov
Copy link
Member

Please add scenarios prefix to the commit message.

The file is created in the /tmp directory and other users do not have write access. To avoid unwanted interference, the file is moved to the home directory.

Signed-off-by: EESergey <s.eremenko@nspcc.io>
@@ -33,7 +33,7 @@
def main():
container_list = []
objects_struct = []
payload_filepath = '/tmp/data_file'
payload_filepath = '/tmp/data_file_' + args.size + 'k'
Copy link
Member

Choose a reason for hiding this comment

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

i guess the problem you saw here was caused by a general mistake: this script was not expected to be used simultaneously. if we are trying to solve it, can we add some more unique data to the name (e.g. time?). if you are already running it for different sizes in parallel, i will not be surprised if some time in the future somebody will try to run it for two different networks or for two different object sets but with the same size, etc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the size is correct, then I don't see a problem with it.
To solve the problem with rights, I moved this file to the home directory.

@EESergey
Copy link
Contributor Author

A few more changes need to be made.

@EESergey EESergey closed this Jul 30, 2024
@EESergey EESergey deleted the feat/multithreaded-data-generator branch July 30, 2024 11:17
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