Skip to content
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

Compatibility/Bug in r2dbc-postgresql v1.0.5 due to performance tuning #663

Closed
markus-arndt-fioneer opened this issue Sep 30, 2024 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@markus-arndt-fioneer
Copy link

Versions

  • Driver: Postgresql 42.6.2
  • Database: PostgreSQL 11.22 (fully managed on Azure)
  • Java: 17
  • OS: Arch Linux

Current Behavior

After we have upgraded from Spring Boot 3.2.4 to Spring Boot 3.2.10 / from r2dbc-postgres 1.0.4 to r2dbc-postgres 1.0.5 we are seeing Exceptions from PostgresqlRowMetadata.java::getColumn which was performance tuned in that release.

The exceptions we see are:

PostgresqlConnectionFactory.java (caused by Exception below)

Caused by: io.r2dbc.postgresql.PostgresqlConnectionFactory$PostgresConnectionException: Cannot connect to 4.180.61.180/<unresolved>:5432
at io.r2dbc.postgresql.PostgresqlConnectionFactory.cannotConnect(PostgresqlConnectionFactory.java:188)
at io.r2dbc.postgresql.PostgresqlConnectionFactory.lambda$doCreateConnection$7(PostgresqlConnectionFactory.java:153)

PostgresqlRow.java (this was performance tuned)

Caused by: java.util.NoSuchElementException: Column name 'oid' does not exist in column names [typname, typnamespace, typowner, typlen, typbyval, typtype, typcategory, typispreferred, typisdefined, typdelim, typrelid, typelem, typarray, typinput, typoutput, typreceive, typsend, typmodin, typmodout, typanalyze, typalign, typstorage, typnotnull, typbasetype, typtypmod, typndims, typcollation, typdefaultbin, typdefault, typacl]
at io.r2dbc.postgresql.PostgresqlRow.getColumn(PostgresqlRow.java:193)
at io.r2dbc.postgresql.PostgresqlRow.get(PostgresqlRow.java:96)
at io.r2dbc.postgresql.codec.BuiltinDynamicCodecs.lambda$null$0(BuiltinDynamicCodecs.java:107)
at io.r2dbc.postgresql.PostgresqlResult.lambda$map$2(PostgresqlResult.java:129)
at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:179)
... 60 common frames omitted\n
@markus-arndt-fioneer markus-arndt-fioneer added the status: waiting-for-triage An issue we've not yet triaged label Sep 30, 2024
@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 2, 2024
@mp911de
Copy link
Collaborator

mp911de commented Oct 2, 2024

This is a duplicate of #657

@mp911de mp911de closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants