-
Notifications
You must be signed in to change notification settings - Fork 428
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
gen_server 'wpool_pool-mongoose_wpool$rdbms$global$default-1' terminated with reason: {{{integer_overflow,int8,957926528636579656073}, #4222
Comments
Interesting, looks like MAM RSM query has troubles to be encoded: Please, write me the pgsql version (exact version, ideally from the docker hub). so, we can run our tests with it. Also, it could be that our code incorrectly detects the type of the Could you also provide an XML stanza you send with this mam select query? because it looks like we do not log the stanza IQ when it causes a MAM backend errror.
|
Also, change your DB password, it is inside the log. Log link is removed from your issue by me, but it is still uploaded to github. |
SQL query, works fine for me:
Now waiting for your PgSQL version. XML IQ: <iq type='set' id='84fda6f59dea6a2d022721dad3e46cf0'>
<query xmlns='urn:xmpp:mam:1'>
<x xmlns='jabber:x:data' type='submit'>
<field var='with'>
<value>kate_querying_for_all_messages_with_jid_after_17@localhost</value>
</field>
</x>
<set>
<max>50</max>
<after>C487F52688G1</after>
</set>
</query>
</iq> Ah, wait:
ok, I see. You trying to provide something too big to be represented as a bigint of size 8 bytes, after decoding from base32. Check your code, you are probably supplying invalid mam ids as an input... We could add the format validation to MongooseIM though here. |
It just returns an empty result set and crashes on the server. Apparently, that PR should've been wider to also cover SQL query failing: https://github.com/esl/MongooseIM/pull/4191/files Two tasks for MIM would be added into a backlog:
Also:
|
MongooseIM version: (put the version)
Installed from: source
Erlang/OTP version: 25.3.2.6
last source commit: 1ada930
Describe the issue.
Hello!
I'm facing issue. I think it could be related to mam.
07:08:41.444 [error] gen_server 'wpool_pool-mongoose_wpool$rdbms$global$default-1' terminated with reason: {{{integer_overflow,int8,957926528636579656073},[{epgsql_codec_integer,overflow,2,[{file,"/tmp/mongooseim/_build/default/lib/epgsql/src/datatypes/epgsql_codec_integer.erl"},{line,44}]},{epgsql_codec_integer,encode,3,[{file,"/tmp/mongooseim/_build/default/lib/epgsql/src/datatypes/epgsql_codec_integer.erl"},{line,58}]},{epgsql_binary,encode_value,2,[{file,"/tmp/mongooseim/_build/default/lib/epgsql/src/epgsql_binary.erl"},{line,271}]},{epgsql_wire,encode_parameter,3,[{file,"/tmp/mongooseim/_b..."},...]},...]},...} in gen_server:call/3 line 385
Log removed by @arcusfelis here
The text was updated successfully, but these errors were encountered: