Merge pull request #11299 from lafirest/hs
fix(hstream): handle the `unavailable` error code
This commit is contained in:
commit
d4550f911c
|
@ -309,6 +309,13 @@ do_append_records(false, Producer, Record) ->
|
||||||
msg => "HStreamDB producer sync append success",
|
msg => "HStreamDB producer sync append success",
|
||||||
record => Record
|
record => Record
|
||||||
});
|
});
|
||||||
|
%% the HStream is warming up or buzy, something are not ready yet, retry after a while
|
||||||
|
{error, {unavailable, _} = Reason} ->
|
||||||
|
{error,
|
||||||
|
{recoverable_error, #{
|
||||||
|
msg => "HStreamDB is warming up or buzy, will retry after a moment",
|
||||||
|
reason => Reason
|
||||||
|
}}};
|
||||||
{error, Reason} = Err ->
|
{error, Reason} = Err ->
|
||||||
?tp(
|
?tp(
|
||||||
hstreamdb_connector_query_return,
|
hstreamdb_connector_query_return,
|
||||||
|
|
Loading…
Reference in New Issue