HBASE-24163 MOB compactor implementations should use format specifiers when calling String.format (#1479)
Signed-off-by: stack <stack@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Josh Elser <elserj@apache.org>
This commit is contained in:
parent
ac4e94e868
commit
09d20fb4d7
|
@ -435,7 +435,7 @@ public class DefaultMobStoreCompactor extends DefaultCompactor {
|
|||
} else {
|
||||
throw new IOException(String.format("MOB cell did not contain a tablename " +
|
||||
"tag. should not be possible. see ref guide on mob troubleshooting. " +
|
||||
"store={} cell={}", getStoreInfo(), c));
|
||||
"store=%s cell=%s", getStoreInfo(), c));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -491,7 +491,7 @@ public class DefaultMobStoreCompactor extends DefaultCompactor {
|
|||
} else {
|
||||
throw new IOException(String.format("MOB cell did not contain a tablename " +
|
||||
"tag. should not be possible. see ref guide on mob troubleshooting. " +
|
||||
"store={} cell={}", getStoreInfo(), c));
|
||||
"store=%s cell=%s", getStoreInfo(), c));
|
||||
}
|
||||
} else {
|
||||
String errMsg = String.format("Corrupted MOB reference: %s", c.toString());
|
||||
|
|
|
@ -246,7 +246,7 @@ public class FaultyMobStoreCompactor extends DefaultMobStoreCompactor {
|
|||
} else {
|
||||
throw new IOException(String.format("MOB cell did not contain a tablename " +
|
||||
"tag. should not be possible. see ref guide on mob troubleshooting. " +
|
||||
"store={} cell={}", getStoreInfo(), c));
|
||||
"store=%s cell=%s", getStoreInfo(), c));
|
||||
}
|
||||
} else {
|
||||
// If the value is not larger than the threshold, it's not regarded a mob. Retrieve
|
||||
|
@ -270,7 +270,7 @@ public class FaultyMobStoreCompactor extends DefaultMobStoreCompactor {
|
|||
} else {
|
||||
throw new IOException(String.format("MOB cell did not contain a tablename " +
|
||||
"tag. should not be possible. see ref guide on mob troubleshooting. " +
|
||||
"store={} cell={}", getStoreInfo(), c));
|
||||
"store=%s cell=%s", getStoreInfo(), c));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue