question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type cache pollution: type io.vertx.pgclient.impl.codec.PgCodec

See original GitHub issue

In the same scenarios tested as for #1251 , we have this other entry in the type pollution report:

5:	io.vertx.pgclient.impl.codec.PgCodec
Count:	4995275
Types:
	io.netty.channel.ChannelOutboundHandler
	io.netty.channel.ChannelInboundHandler
Traces:
	io.netty.channel.AbstractChannelHandlerContext.invokeRead(AbstractChannelHandlerContext.java:686)
		class: io.netty.channel.ChannelOutboundHandler
		count: 1489684
	io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
		class: io.netty.channel.ChannelInboundHandler
		count: 1300795
	io.netty.channel.AbstractChannelHandlerContext.invokeChannelReadComplete(AbstractChannelHandlerContext.java:410)
		class: io.netty.channel.ChannelInboundHandler
		count: 1147801
	io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
		class: io.netty.channel.ChannelOutboundHandler
		count: 599837
	io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:750)
		class: io.netty.channel.ChannelOutboundHandler
		count: 456909
	io.netty.channel.AbstractChannelHandlerContext.invokeChannelActive(AbstractChannelHandlerContext.java:230)
		class: io.netty.channel.ChannelInboundHandler
		count: 199
	io.netty.channel.ChannelHandlerMask.mask0(ChannelHandlerMask.java:94)
		class: io.netty.channel.ChannelInboundHandler
		count: 31
	io.netty.channel.ChannelHandlerMask.mask0(ChannelHandlerMask.java:123)
		class: io.netty.channel.ChannelOutboundHandler
		count: 19

I’ve heard @vietj and @franz1981 have been looking at a similar one in other vert.x projects, so I’ll defer this one to someone more knowledgeable.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tsegismontcommented, Nov 14, 2022

Thank you @Sanne for these reports btw

0reactions
tsegismontcommented, Nov 14, 2022

A few weeks ago, I ran @franz1981 's tool on our projects and found that TupleInternal was the only improvement we could make (PgCodec is a CombinedChannelDuplexHandler so, as he said and you found, the situation will be improved by the Netty upgrade).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type pollution agent report · Issue #1251 - GitHub
Context. I've been running the Techempower benchmark with Quarkus + Hibernate Reactive + Vert.x vertx-pg-client and attaching the agent ...
Read more >
Reactive PostgreSQL Client - Eclipse Vert.x
The client is reactive and non blocking, allowing to handle many database connections with a single thread. Event driven. Lightweight. Built-in connection ...
Read more >
Uses of Class io.vertx.pgclient.impl.codec.DataType
Returns an array containing the constants of this enum type, in the order they are declared. Methods in io.vertx.pgclient.impl.codec with parameters of type...
Read more >
db connection pool hits npe and gets stuck - Google Groups
randomly the pool hits the npe and gets permanently stuck. [io.vertx.core.impl.ContextImpl|vert.x-eventloop-thread-1] Unhandled exception.
Read more >
Eclipse-Vertx Vertx-Sql-Client Statistics & Issues - Codesti
Issue Title State Comments Created Date Upd... Issues with ssl connection open 1 2022‑12‑06 2022... Vert.x MySQL client prepared statement cache issue closed 1 2022‑11‑10...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found