duongkame opened a new pull request, #4734:
URL: https://github.com/apache/ozone/pull/4734
## What changes were proposed in this pull request?
OM snapshot installing fails with:
```
2023-05-18 09:35:39,485 ERROR org.apache.hadoop.ozone.om.OzoneManager:
Terminating with exit status 1: Failed to reload OM state and instantiate
services.
org.apache.hadoop.metrics2.MetricsException: Metrics source
OMPerformanceMetrics already exists!
at
org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.newSourceName(DefaultMetricsSystem.java:152)
at
org.apache.hadoop.metrics2.lib.DefaultMetricsSystem.sourceName(DefaultMetricsSystem.java:125)
at
org.apache.hadoop.metrics2.impl.MetricsSystemImpl.register(MetricsSystemImpl.java:229)
at
org.apache.hadoop.ozone.om.OMPerformanceMetrics.register(OMPerformanceMetrics.java:33)
at
org.apache.hadoop.ozone.om.OzoneManager.instantiateServices(OzoneManager.java:779)
at
org.apache.hadoop.ozone.om.OzoneManager.reloadOMState(OzoneManager.java:3808)
at
org.apache.hadoop.ozone.om.OzoneManager.installCheckpoint(OzoneManager.java:3663)
at
org.apache.hadoop.ozone.om.OzoneManager.installCheckpoint(OzoneManager.java:3570)
at
org.apache.hadoop.ozone.om.OzoneManager.installSnapshotFromLeader(OzoneManager.java:3547)
at
org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$6(OzoneManagerStateMachine.java:478)
at
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8647
## How was this patch tested?
Need to add an integration test for OM snapshot installing.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]