Skip to content

ClassCastException in EsqlFunctionRegistry #123430

Closed
@rjernst

Description

@rjernst

I encountered a ClassCastException within LinkedHashMap used by ESQL.

 Caused by:	
  java.lang.ClassCastException: class java.util.LinkedHashMap$Entry cannot be cast to class java.util.HashMap$TreeNode (java.util.LinkedHashMap$Entry and java.util.HashMap$TreeNode are in module java.base of loader 'bootstrap')	
      at java.base/java.util.HashMap$TreeNode.moveRootToFront(HashMap.java:1995)	
      at java.base/java.util.HashMap$TreeNode.treeify(HashMap.java:2111)	
      at java.base/java.util.HashMap.treeifyBin(HashMap.java:779)	
      at java.base/java.util.HashMap.putVal(HashMap.java:651)	
      at java.base/java.util.HashMap.put(HashMap.java:619)	
      at org.elasticsearch.xpack.esql.expression.function.EsqlFunctionRegistry.buildDataTypesForStringLiteralConversion(EsqlFunctionRegistry.java:718)	
      at org.elasticsearch.xpack.esql.expression.function.EsqlFunctionRegistry.<init>(EsqlFunctionRegistry.java:234)

See https://gradle-enterprise.elastic.co/s/fwqg4ibahnj4s/console-log/task/:x-pack:plugin:esql:internalClusterTest?page=1

I wonder if this is due to concurrent modification?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions