snuyanzin commented on code in PR #28248:
URL: https://github.com/apache/flink/pull/28248#discussion_r3301375154


##########
flink-architecture-tests/flink-architecture-tests-production/archunit-violations/f7a4e6fa-e7de-48c9-a61e-c13e83f0c72e:
##########
@@ -636,6 +634,7 @@ Method 
<org.apache.flink.connector.file.table.stream.compact.CompactCoordinator.
 Method 
<org.apache.flink.connector.file.table.stream.compact.CompactCoordinator.coordinate(long,
 java.util.Map)> calls constructor 
<org.apache.flink.streaming.runtime.streamrecord.StreamRecord.<init>(java.lang.Object)>
 in (CompactCoordinator.java:200)
 Method 
<org.apache.flink.connector.file.table.stream.compact.CompactCoordinator.initializeState(org.apache.flink.runtime.state.StateInitializationContext)>
 calls constructor 
<org.apache.flink.api.common.typeutils.base.ListSerializer.<init>(org.apache.flink.api.common.typeutils.TypeSerializer)>
 in (CompactCoordinator.java:118)
 Method 
<org.apache.flink.connector.file.table.stream.compact.CompactCoordinator.initializeState(org.apache.flink.runtime.state.StateInitializationContext)>
 calls constructor 
<org.apache.flink.api.common.typeutils.base.MapSerializer.<init>(org.apache.flink.api.common.typeutils.TypeSerializer,
 org.apache.flink.api.common.typeutils.TypeSerializer)> in 
(CompactCoordinator.java:118)
+Method 
<org.apache.flink.connector.file.table.stream.compact.CompactCoordinator.initializeState(org.apache.flink.runtime.state.StateInitializationContext)>
 calls constructor 
<org.apache.flink.api.common.typeutils.base.MapSerializer.<init>(org.apache.flink.api.common.typeutils.TypeSerializer,
 org.apache.flink.api.common.typeutils.TypeSerializer)> in 
(CompactCoordinator.java:118)

Review Comment:
   1. it is generated code (by ArchUnit)
   2. if you look at source it is referencing 
https://github.com/apache/flink/blob/17216cee20f731a258d96fcee3719b7f737b0d4f/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/stream/compact/CompactCoordinator.java#L107-L118
   
   `MapSerializer` is invoked 2 times and here it is just mentioning all the 
findings. Since `MapSerializer` is 2 times there it is put 2 times



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to