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
Unexpected number of invoices 0 for payment 9b91d324-7118-4cbd-9ea3-5ddacdab11da #4
Comments
I moved the issue to here: https://groups.google.com/forum/#!topic/killbilling-users/jGKr8Zcgjcw please feel free to close this one |
Thanks for the report. I traced the issue back to a race condition, where the plugin gets notified of the payment, before the invoice payment gets processed. The proper fix is to have the plugin listen to I'll try to come up with a work-around for 0.16.x. |
This is a workaround for #4: when a race condition is detected, have the bus retry the dispatch. Note that this only works when the persistent bus is used, i.e. org.killbill.persistent.bus.external.inMemory=false. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
This fixes #4. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
A work-around has been released with 0.2.1. Note that upgrading to the new version requires a property change for Kill Bill versions 0.16.2 and below (details in #3 (comment)). |
Ok, i've created new file /conf/killbill.properties and add the content (org.killbill.osgi.system.bundle.export.packages.api= .... ) as you you mentioned it in ticket #3
|
The property If you haven't setup Kill Bill with a
Yes, this is expected: the newly introduced exception will make Kill Bill retry sending the email. By the time it is retried, the race condition shouldn't exist anymore. You will see this stacktrace in 0.16.x, which will disappear when 0.17.x is released. Could you confirm the email is eventually sent, despite the stacktrace? |
I installed killbill using KPM, so i've added org.killbill.osgi.system.bundle.export.packages.api=org.killbill.billing.account.api,org.killbill.billing.analytics.api.sanity,...,org.killbill.billing.invoice.api,org.killbill.billing.invoice.api.formatters,...;version=1.2.0 to /conf/catalina.properties then restarted tomcat again, but i'm getting the same problem, the execution can't be pass the condition for all attempts so the email won't be sent!. |
The property change is related to #3. Without it, the plugin may throw As for this issue, the exception |
Hi,
I upgraded killbill from (0.14.0 to 0.16.1) so i upgraded the plugin from 0.1.0 to 0.2.x but i have got this issue, seems the plugins can't read the new record in invoice_payments table although the record there !.
And also i can see there is new record in notification table:
could you please take a look, and let me know if i missed something,
Thanks in advance.
The text was updated successfully, but these errors were encountered: