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

Java JNI compaction suspend and resume API available? #1071

Closed
sam-guo opened this issue Apr 11, 2016 · 2 comments
Closed

Java JNI compaction suspend and resume API available? #1071

sam-guo opened this issue Apr 11, 2016 · 2 comments
Assignees
Labels

Comments

@sam-guo
Copy link

sam-guo commented Apr 11, 2016

Hi,

In our Java app we would like to pause and resume Rocks compaction from time to time (for example, in order to do our own EBS snapshot).

Are those APIs available on JNI interface? I did a quick search and could not find any.
If they are not in JNI, are they available in the original C/C++ APIs? Any plan to add them to JNI?

Or, is there any other way to achieve what we are trying to do on Java side?

Thanks,
Sam

@adamretter
Copy link
Collaborator

@sam-guo If they are available in the C++ API and you can point me to the methods, I will happily add wrappers to the Java API for you.

@sam-guo
Copy link
Author

sam-guo commented Apr 13, 2016

Hi adamretter,

I did a grep and saw these 2 functions:

./db/db_impl.cc:Status DBImpl::PauseBackgroundWork()
./db/db_impl.cc:Status DBImpl::ContinueBackgroundWork()

that I think will work. Could you add them to the Java API?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants