adoroszlai opened a new pull request #502: HDDS-2955. Unnecessary log messages 
in DBStoreBuilder
URL: https://github.com/apache/hadoop-ozone/pull/502
 
 
   ## What changes were proposed in this pull request?
   
   1. Reduce log level of "using default/custom profile ..." messages to 
`debug`.
   2. Avoid logging both "default" and "custom" for the same table by 
refactoring the code.
   3. Add constant for `String` version of `DEFAULT_COLUMN_FAMILY`.
   
   https://issues.apache.org/jira/browse/HDDS-2955
   
   ## How was this patch tested?
   
   Verified log in compose cluster.
   
   with default info level:
   
   ```
   recon_1     | 2020-01-29 17:14:39,085 [pool-8-thread-1] INFO 
impl.OzoneManagerServiceProviderImpl: Got new checkpoint from OM : 
/data/metadata/recon/om.snapshot.db_1580318078998
   recon_1     | 2020-01-29 17:14:39,085 [pool-8-thread-1] INFO 
recovery.ReconOmMetadataManagerImpl: Cleaning up old OM snapshot db at 
/data/metadata/recon/om.snapshot.db_1580317479076.
   recon_1     | 2020-01-29 17:14:39,231 [pool-8-thread-1] INFO 
recovery.ReconOmMetadataManagerImpl: Created OM DB handle from snapshot at 
/data/metadata/recon/om.snapshot.db_1580318078998.
   ```
   
   and with debug level:
   
   ```
   recon_1     | 2020-01-29 17:00:12,434 [pool-8-thread-1] INFO 
impl.OzoneManagerServiceProviderImpl: Got new checkpoint from OM : 
/data/metadata/recon/om.snapshot.db_1580317212331
   recon_1     | 2020-01-29 17:00:12,434 [pool-8-thread-1] INFO 
recovery.ReconOmMetadataManagerImpl: Cleaning up old OM snapshot db at 
/data/metadata/recon/om.snapshot.db_1580316612245.
   recon_1     | 2020-01-29 17:00:12,438 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: default profile:DBProfile.DISK
   recon_1     | 2020-01-29 17:00:12,438 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:userTable
   recon_1     | 2020-01-29 17:00:12,442 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:volumeTable
   recon_1     | 2020-01-29 17:00:12,442 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:bucketTable
   recon_1     | 2020-01-29 17:00:12,443 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:keyTable
   recon_1     | 2020-01-29 17:00:12,443 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:deletedTable
   recon_1     | 2020-01-29 17:00:12,443 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:openKeyTable
   recon_1     | 2020-01-29 17:00:12,444 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:s3Table
   recon_1     | 2020-01-29 17:00:12,444 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:multipartInfoTable
   recon_1     | 2020-01-29 17:00:12,444 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:dTokenTable
   recon_1     | 2020-01-29 17:00:12,445 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:s3SecretTable
   recon_1     | 2020-01-29 17:00:12,445 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:prefixTable
   recon_1     | 2020-01-29 17:00:12,447 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: using default profile for table:default
   recon_1     | 2020-01-29 17:00:12,451 [pool-8-thread-1] DEBUG 
db.DBStoreBuilder: Using default options: DBProfile.DISK
   recon_1     | 2020-01-29 17:00:12,561 [pool-8-thread-1] INFO 
recovery.ReconOmMetadataManagerImpl: Created OM DB handle from snapshot at 
/data/metadata/recon/om.snapshot.db_1580317212331.
   ```
   
   https://github.com/adoroszlai/hadoop-ozone/runs/415576820

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to