I checked the trunk branch, the x86 generated pb source code does not match the 
shipped version under arm-java.

On M1 macOS, you can run `CPU_ARCH=x86_64 ./start-build-env.sh` to leverage 
Rosetta2 to emulate x86 platform with 50% performance.

Then compile the project(at least the hadoop-common module) and use `diff` 
command to compare those two files
```
$ ./mvnw clean install -DskipTests -pl hadoop-common-project/hadoop-common -am
$ diff 
hadoop-common-project/hadoop-common/src/main/arm-java/org/apache/hadoop/ipc/protobuf/ProtobufRpcEngineProtos.java
  
hadoop-common-project/hadoop-common/target/generated-sources/java/org/apache/hadoop/ipc/protobuf/ProtobufRpcEngineProtos.java
```

Here is my generated ProtobufRpcEngineProtos.java

https://gist.github.com/pan3793/0ffd495736c9373a9d3c24a354eb6997


From the JIRA, seems this only affected Ozone, and is likely already fixed by 
Ozone. So, safe to remove?

Thanks,
Cheng Pan


Reply via email to