Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixes changes in 3.7 Multiprocessing for Import/Export and dump/restore #106

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

Merged
merged 9 commits into from
Apr 21, 2019

Conversation

sawdog
Copy link
Member

@sawdog sawdog commented Mar 22, 2019

It's unclear what's happened with the original pull request, but I was using this to import/export from databases I was running - I see that there's a new bug on that just filed 3 days ago?

Andrew Sawyers and others added 4 commits January 21, 2019 19:55
  lookup the context and pass it into class initalization of the SimpleQueue
- for simplification, follow example patterns of importing multiprocessing as mp
- multiprocessing.Queue can cause surprising results which are avoided using a queue manager Manager(). See https://docs.python.org/3.7/library/multiprocessing.html
- optparse passes in self to the check_existing_file, so set as _
- optparse calls the callback with many more args then originally setup for.
- fix env lookup variables which were missed when rebirthdb merged back with rethinkdb
Copy link
Member

@gabor-boros gabor-boros left a comment

Choose a reason for hiding this comment

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

@sawdog Could you please add some tests as well to ensure that this functionality will work on both python2.7.x and python 3.x?

@@ -207,7 +206,10 @@ def file_contents(opt_str, value):

# -- Callbacks

def combined_connect_action(value, parser):
def combined_connect_action(obj, opt, value, parser, *args, **kwargs):
"""optparse.takeaction() calls the callback (which this is set as)
Copy link
Member

Choose a reason for hiding this comment

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

👍 for the comment

@gabor-boros gabor-boros added this to the Release 2.4.2 milestone Mar 23, 2019
@gabor-boros
Copy link
Member

@sawdog what’s up with this PR?

@gabor-boros gabor-boros mentioned this pull request Apr 19, 2019
@gabor-boros gabor-boros removed this from the Release 2.4.2 milestone Apr 19, 2019
@gabor-boros gabor-boros dismissed their stale review April 20, 2019 09:28

No need for my own review if I contribute as well

@rethinkdb rethinkdb deleted a comment Apr 20, 2019
@rethinkdb rethinkdb deleted a comment Apr 20, 2019
@rethinkdb rethinkdb deleted a comment Apr 20, 2019
@gabor-boros gabor-boros requested a review from asakatida April 20, 2019 10:07
@gabor-boros
Copy link
Member

@grandquista Although the tests are missing I would like to merge this, due to we will need to refactor the whole code (optparse is buggy and deprecated in favor of argparse). Could you check this please?

@gabor-boros gabor-boros self-assigned this Apr 20, 2019
@gabor-boros gabor-boros added the urgent The resolution is urgent label Apr 20, 2019
@gabor-boros gabor-boros added this to the Release 2.4.2 milestone Apr 20, 2019
@gabor-boros gabor-boros added the bug Something isn't working label Apr 20, 2019
Copy link

@asakatida asakatida left a comment

Choose a reason for hiding this comment

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

Overall it’s just renaming for newer versions

with open("rethinkdb/version.py", "w") as f:
f.writelines([
"# Autogenerated version",
"VERSION = {0}".format(VERSION)

Choose a reason for hiding this comment

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

This needs to use repr.

@gabor-boros gabor-boros merged commit 0143634 into rethinkdb:master Apr 21, 2019
@gabor-boros gabor-boros mentioned this pull request Apr 29, 2019
3 tasks
@Sharpz7
Copy link

Sharpz7 commented Apr 29, 2019

When does this get commited to pypi?

@gabor-boros
Copy link
Member

gabor-boros commented Apr 30, 2019

@Sharpz7 It’s already on PyPi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working urgent The resolution is urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants