Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ public final class OzoneManager extends ServiceRuntimeInfoImpl
AuditLoggerType.OMSYSTEMLOGGER);

private static final String OM_DAEMON = "om";
private static final String NO_LEADER_ERROR_MESSAGE =
"There is no leader among the Ozone Manager servers. If this message " +
"persists, the service may be down. Possible cause: only one OM is up, or " +
"other OMs are unable to respond to Ratis leader vote messages";


// This is set for read requests when OMRequest has S3Authentication set,
// and it is reset when read request is processed.
Expand Down Expand Up @@ -3056,8 +3061,8 @@ public List<List<String>> getRatisRoles() {
String leaderReadiness = omRatisServer.checkLeaderStatus().name();
final RaftPeerId leaderId = omRatisServer.getLeaderId();
if (leaderId == null) {
LOG.error("No leader found");
return getRatisRolesException("No leader found");
LOG.error(NO_LEADER_ERROR_MESSAGE);
return getRatisRolesException(NO_LEADER_ERROR_MESSAGE);
}

final List<ServiceInfo> serviceList;
Expand Down
Loading