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

-k option fails to create file with list of keys #19

Open
amgorb opened this issue Jan 18, 2017 · 3 comments
Open

-k option fails to create file with list of keys #19

amgorb opened this issue Jan 18, 2017 · 3 comments

Comments

@amgorb
Copy link

amgorb commented Jan 18, 2017

# java -jar riak-data-migrator-0.2.9/riak-data-migrator-0.2.9.jar -k -b bucket -r files -c hosts.txt -v
PB Port not specified, using the default: 8087
HTTP port not specified, using the default: 8098

no file create and no other output

# java -jar riak-data-migrator-0.2.9/riak-data-migrator-0.2.9.jar -k -b bucket -r files -h localhost -v
PB Port not specified, using the default: 8087
HTTP port not specified, using the default: 8098

Riak 2.1.4, similar request curl -i http://localhost:8098/buckets/bucket/keys?keys=true works fine.
Ruby PB client works fine also.

@dmitrizagidulin
Copy link

Hi @amgorb! How large was the dataset in your test? (I'm wondering if this is maybe a case of the key list timing out).

@amgorb
Copy link
Author

amgorb commented Jan 19, 2017

Hi @dmitrizagidulin!

I've tested with different buckets (1000000 and several keys) and there is no timeout, probably problem is somewhere else:

# time java -jar /root/riak-data-migrator-0.2.9/riak-data-migrator-0.2.9.jar -k -b test -r hereseo/ -c hosts.txt -v
PB Port not specified, using the default: 8087
HTTP port not specified, using the default: 8098

real    0m0.169s
user    0m0.093s
sys     0m0.067s

same bucket,same riak, same host but with -b works fine:

time java -jar /root/riak-data-migrator-0.2.9/riak-data-migrator-0.2.9.jar -d -b test -r hereseo/ -c hosts.txt -v
PB Port not specified, using the default: 8087
HTTP port not specified, using the default: 8098

Dumping bucket test
100% completed. Read 4 @ 51 obj/sec
Dump Summary:
         Bucket     Objects     Seconds    Objs/Sec     Size/KB Val. Err.
           test           4         0.1        51.3          46         0
       Total: 1           4         0.1        51.3          46         0

real    0m1.207s
user    0m0.990s
sys     0m0.180s

@dmitrizagidulin
Copy link

Thanks. Seems like a bug, yeah.

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

No branches or pull requests

2 participants