HScarb commented on issue #573:
URL: https://github.com/apache/rocketmq/issues/573#issuecomment-948303407


   > you just do that:
   > 
   > 1. mqbroker.cmd -c  broker.conf ,  borker.conf in ROCKETMQ_HOME/conf
   > 2. in broker.conf, you can set diskMaxUsedSpaceRatio = 99,  the default 
value is 75.
   > 
   > and i have a question, in class MessageStoreConfig, the property 
diskMaxUsedSpaceRatio is not decorated by @ImportantField. what's means 
@ImportantField? i just find some code:
   > 
   > ```
   >         if (onlyImportantField) {
   >                         Annotation annotation = 
field.getAnnotation(ImportantField.class);
   >                         if (null == annotation) {
   >                             continue;
   >                         }
   >                     }
   > 
   >                     if (logger != null) {
   >                         logger.info(name + "=" + value);
   >                     } else {
   >                     }
   >                 }
   >             }
   > ```
   > 
   > just for log? i dont' know.
   
   I guess the `@ImportantField` is for logging important fields.
   
   when calling `MaxAll.printObjectProperties(final InternalLogger logger, 
final Object object, final boolean onlyImportantField)`, if you set 
`onlyImportantField` as `true`, it will only log the `@ImportantField` 
annotated fields of the `object`


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