-
Notifications
You must be signed in to change notification settings - Fork 537
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
Post-commit hook not triggered on Riak 3.0.9 #1098
Comments
If I look at
I have a number of riak processes, both the
|
Also no luck with:
|
I think the correct format is to define both "mod" and "fun" in the postcommit bucket property as you have done above. Are you able to call the Mod:Fun/1 from |
@martinsumner Thanks for the quick response. Curiously, after doing a clean install it now seems to work. Perhaps a file permission issue, I was messing with compiling and moving the |
This Riak version is 3.2.0, using Post-commit hook . This is my erlang code: post(Object) ->
when I add some data into a bucket, I can only get the key name "babbbvv " , but I can not get the bucket name "some-bucket". |
Can you clarify what you mean by "can not get the bucket name"? Do you mean in the io:format output you get something else (perhaps undefined) where you expected to get BucketName? |
Hi, Ive installed Riak 3.0.9, and am trying to add a postcommit hook:
I have the following in
/etc/riak/advanced.config
, and did ariak chkconfig
andriak restart
after I made this change:When I manually run the Erlang hook I see a response on my API running at port 8000:
post_commit:post("")
.However, when I add some data into a bucket, I don't see anything:
I cannot see any indication in the logs that the postcommit is triggered/executed (or if there is some error), the bucket props show it being there though, and bucket is active:
Am I missing anything?
The text was updated successfully, but these errors were encountered: