We've been experiencing the same problem as described in topic Indexing performance degrading over time.
Our setup is elasticsearch 7.1.1 + java 11.0.3.
Is the solution, using CMS GC to collect weak references (used by org.apache.lucene.uti.CloseableThreadLocal) timely, still recommended for newer java versions? Perhaps there are other solutions compatible with G1GC?