-
Notifications
You must be signed in to change notification settings - Fork 376
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
Netbox connection state is error
instead of closed
, if on_disconnect
trigger throws exception
#9677
Comments
CuriousGeorgiy
changed the title
Netbox connection state not updated when calling on_{dis}connect trigger
Netbox connection state not updated when calling an on_{dis}connect trigger that throws exceptions
Feb 12, 2024
CuriousGeorgiy
changed the title
Netbox connection state not updated when calling an on_{dis}connect trigger that throws exceptions
Netbox connection state not updated when calling an Feb 12, 2024
on_{dis}connect
trigger that throws exceptions
CuriousGeorgiy
changed the title
Netbox connection state not updated when calling an
Netbox connection state not updated if Feb 12, 2024
on_{dis}connect
trigger that throws exceptionson_{dis}connect
trigger throws exceptions
CuriousGeorgiy
changed the title
Netbox connection state not updated if
Netbox connection state is Mar 18, 2024
on_{dis}connect
trigger throws exceptionserror
instead of closed
, if on_disconnect
trigger throws exception
CuriousGeorgiy
added a commit
to CuriousGeorgiy/tarantool
that referenced
this issue
Mar 20, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect
CuriousGeorgiy
added a commit
to CuriousGeorgiy/tarantool
that referenced
this issue
Mar 20, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect
CuriousGeorgiy
added a commit
to CuriousGeorgiy/tarantool
that referenced
this issue
Mar 23, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect
CuriousGeorgiy
added a commit
to CuriousGeorgiy/tarantool
that referenced
this issue
Mar 30, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect
sergepetrenko
pushed a commit
that referenced
this issue
Apr 2, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes #9677 Closes #9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect
sergepetrenko
pushed a commit
to sergepetrenko/tarantool
that referenced
this issue
Apr 2, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect (cherry picked from commit 1d6d6a3)
sergepetrenko
pushed a commit
to sergepetrenko/tarantool
that referenced
this issue
Apr 2, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes tarantool#9677 Closes tarantool#9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect (cherry picked from commit 1d6d6a3)
sergepetrenko
pushed a commit
that referenced
this issue
Apr 3, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes #9677 Closes #9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect (cherry picked from commit 1d6d6a3)
sergepetrenko
pushed a commit
that referenced
this issue
Apr 3, 2024
According to the documentation [1]: > If the trigger function causes an error, the error is logged but otherwise is ignored. However, currently, the `on_disconnect` trigger behaves the same way as the `on_connect` trigger, i.e., the connection is terminated and its state changes to 'error'. Let's fix this inconsistency and log errors from the `on_disconnect` trigger, but otherwise ignore them. Closes #9677 Closes #9797 NO_DOC=<bugfix> 1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect (cherry picked from commit 1d6d6a3)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the documentation 1:
Steps to reproduce
Actual behavior
Assertion failed.
Expected behavior
The script successfully exits.
Footnotes
https://www.tarantool.io/en/doc/latest/reference/reference_lua/net_box/#lua-function.conn.on_disconnect ↩
The text was updated successfully, but these errors were encountered: