Skip to content

HDDS-10094. OM start failure due to failure to parse OM metrics file.#5971

Closed
sadanand48 wants to merge 1 commit intoapache:masterfrom
sadanand48:HDDS-10094
Closed

HDDS-10094. OM start failure due to failure to parse OM metrics file.#5971
sadanand48 wants to merge 1 commit intoapache:masterfrom
sadanand48:HDDS-10094

Conversation

@sadanand48
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add exception handling around failure to read the omMetrics file .

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10094

How was this patch tested?

Manual fix

metrics.setNumKeys(metricsInfo.getNumKeys());
} else {
metrics.setNumKeys(metadataManager.countEstimatedRowsInTable(
metadataManager.getKeyTable(BucketLayout.LEGACY)));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have getBucketLayout() instead of passing BucketLayout.LEGACY?

@errose28
Copy link
Copy Markdown
Contributor

Thanks for looking at this issue @sadanand48. @dombizita and I were actually discussing this area and I have summarized our thoughts in HDDS-10110. Basically I think we should get rid of the OM metrics file and use the RocksDB key count estimates to maintain estimates of these metrics between restarts.

@errose28
Copy link
Copy Markdown
Contributor

I have a draft PR of the above proposal in #5988

@sadanand48
Copy link
Copy Markdown
Contributor Author

Thanks @errose28 for letting me know, I will close this PR in that case.

@sadanand48 sadanand48 closed this Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants