[ https://issues.apache.org/jira/browse/FLINK-21927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kurt Young closed FLINK-21927. ------------------------------ Resolution: Fixed fixed: 56f275c989933bfdb06c9a85117b14a53464c1f7 > ExpressionReducer compile fail when running long term > ----------------------------------------------------- > > Key: FLINK-21927 > URL: https://issues.apache.org/jira/browse/FLINK-21927 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner > Affects Versions: 1.12.2 > Reporter: runsun > Assignee: MaChengLong > Priority: Major > Labels: pull-request-available > Fix For: 1.13.0 > > > Our online service use flink table api as SQL parse and optimize component. > When service run several months we found a lot of exceptions and most of > SQLs run fail. The exception is below: > org.codehaus.commons.compiler.CompileException: Line 2, Column 39: '{' > expected instead of '-' > ExpressionReducer use function newName() in CodeGenUtils.scala to generate > class name, and use a increasing AtomicInteger variable as class name suffix. > When run several months, the AtomicInteger is overflow, and the generated > class name is invalid like "ExpressionReducer$-2147483648". > If we change the field nameCounter's type to AtomicLong in > CodeGenUtils.scala, I think it would work well. -- This message was sent by Atlassian Jira (v8.3.4#803005)