xintongsong commented on a change in pull request #13004:
URL: https://github.com/apache/flink/pull/13004#discussion_r468456955



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/util/config/memory/CommonProcessMemorySpec.java
##########
@@ -94,4 +96,16 @@ public MemorySize getTotalFlinkMemorySize() {
        public MemorySize getTotalProcessMemorySize() {
                return 
flinkMemory.getTotalFlinkMemorySize().add(getJvmMetaspaceSize()).add(getJvmOverheadSize());
        }
+
+       @Override
+       public boolean equals(Object obj) {

Review comment:
       Yes, I added `equals` to the memory spec classes because I need them in 
`ActiveResourceManagerTest`.
   
   > this class is a value class with a well-defined equality relation
   Agree, that's way I'm in favor of adding `equals` rather than custom 
Hamcrest machers.
   
   I'll add the `hashCode` for these classes.




----------------------------------------------------------------
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.

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


Reply via email to