OpenSearch: [BUG] Painless - ASM/org.objectweb errors - 2.0.0 JDK17

Describe the bug I’m getting some issues w/ running tests in Index Management for 2.0. At a certain point while running integration tests the entire cluster crashes, so I tried tracking it down to see if it’s a specific test… but it seems to be flaky and sometimes crashes and sometimes doesn’t.

An example of an integ test suite run and failing and running again and passing: https://gist.github.com/dbbaughe/898d02beeb593fcf66ef97b2546a713b

It appears to be related to the org.objectweb.asm/org.ow2.asm dependencies, and I can see we recently committed some dependency upgrades for them that were also backported to the 2.0 branch.

lang-painless dependencies

From googling around… https://github.com/apache/camel-quarkus/issues/1182 https://github.com/quarkusio/quarkus/issues/9832 https://github.com/CodeIntelligenceTesting/jazzer/issues/55 https://youtrack.jetbrains.com/issue/IDEA-245330

I was wondering if perhaps IM was pulling in the asm dependency somewhere too and it was causing issues… or I can see that the current lang-painless module still has an asm dependency of 7.2 for the analysis one and 9.2 for everything else which might of been causing it.

But, I tried bumping that 7.2 to 9.2 and I still see the failures when running the Index Management tests. Also tried downgrading 9.2 to 7.2 and still see the failures when running the Index Management tests. And then I tried just running the lang-painless tests to see and I’m getting failures (so unrelated to Index Management) by using ./gradlew :modules:lang-painless:check https://gist.github.com/dbbaughe/a0eb025c7d9c950ea05161a58394b585

It’s failing for me on JDK 17. Passing for me on JDK 14.

Had a coworker try it out (just testing OpenSearch 2.0 w/ the lang-painless check) and it’s passing for them on JDK 14 and failing on JDK 17 too.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 31 (17 by maintainers)

Most upvoted comments

+1. Same issue when query with any painless script. Env:

  • Amazon AL2 EC2
  • OpenJDK 17
  • OpenSearch 2.0 main localDistro build

Solution sudo touch /etc/log4j-cve-2021-44228-hotpatch.kill