Skip to content

HBASE-29958 Improve log messages#7922

Open
sharmaar12 wants to merge 19 commits intoapache:HBASE-29081_rebasedfrom
sharmaar12:log-message_rebase
Open

HBASE-29958 Improve log messages#7922
sharmaar12 wants to merge 19 commits intoapache:HBASE-29081_rebasedfrom
sharmaar12:log-message_rebase

Conversation

@sharmaar12
Copy link

No description provided.

(cherry picked from commit 7ab9d52)
@sharmaar12 sharmaar12 marked this pull request as ready for review March 12, 2026 17:50
Copy link
Contributor

@anmolnar anmolnar left a comment

Choose a reason for hiding this comment

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

lgtm. A quick question.

Comment on lines +88 to +89
} catch (DeserializationException e) {
LOG.error("Failed to deserialize ActiveClusterSuffix from file {}", activeClusterFile, e);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure about catching the exception here. We just log the error and proceed. Isn't that a problem?

Copy link
Author

Choose a reason for hiding this comment

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

@anmolnar I believe we just log the error for any of these exception is because the cluster is read only which means it is expected to delete the file if it exists and cluster is the owner of that file, but if the file does not exists or it is not the owner then we can safely ignore it, because for read-only we are not mutating any data so safe to start the cluster.
Similarly I think if we can't deserialize it then deletion will not happen, but cluster can start in read-only mode. Anyways this case needs manual intervention because of cluster ID file corruption.

@anmolnar anmolnar force-pushed the HBASE-29081_rebased branch from 520b89a to 5d47ec9 Compare March 13, 2026 20:01
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