YARN-10001. Add explanation of unimplemented methods in InMemoryConfigurationStore. Contributed by Siddharth Ahuja

(cherry picked from commit 45362a9f4c)
This commit is contained in:
Szilard Nemeth 2020-04-07 15:51:55 +02:00
parent cb806221e9
commit 7abc6221a3
1 changed files with 36 additions and 0 deletions

View File

@ -81,35 +81,71 @@ public class InMemoryConfigurationStore extends YarnConfigurationStore {
return configVersion; return configVersion;
} }
/**
* Configuration mutations not logged (i.e. not persisted) but directly
* confirmed. As such, a list of persisted configuration mutations does not
* exist.
* @return null Configuration mutation list not applicable for this store.
*/
@Override @Override
public List<LogMutation> getConfirmedConfHistory(long fromId) { public List<LogMutation> getConfirmedConfHistory(long fromId) {
// Unimplemented. // Unimplemented.
return null; return null;
} }
/**
* Configuration mutations not logged (i.e. not persisted) but directly
* confirmed. As such, a list of persisted configuration mutations does not
* exist.
* @return null Configuration mutation list not applicable for this store.
*/
@Override @Override
protected LinkedList<LogMutation> getLogs() { protected LinkedList<LogMutation> getLogs() {
// Unimplemented. // Unimplemented.
return null; return null;
} }
/**
* Configuration mutations applied directly in-memory. As such, there is no
* persistent configuration store.
* As there is no configuration store for versioning purposes,
* a conf store version is not applicable.
* @return null Conf store version not applicable for this store.
* @throws Exception
*/
@Override @Override
public Version getConfStoreVersion() throws Exception { public Version getConfStoreVersion() throws Exception {
// Does nothing. // Does nothing.
return null; return null;
} }
/**
* Configuration mutations not logged (i.e. not persisted). As such, they are
* not persisted and not versioned. Hence, no version information to store.
* @throws Exception
*/
@Override @Override
public void storeVersion() throws Exception { public void storeVersion() throws Exception {
// Does nothing. // Does nothing.
} }
/**
* Configuration mutations not logged (i.e. not persisted). As such, they are
* not persisted and not versioned. Hence, a current version is not
* applicable.
* @return null A current version not applicable for this store.
*/
@Override @Override
public Version getCurrentVersion() { public Version getCurrentVersion() {
// Does nothing. // Does nothing.
return null; return null;
} }
/**
* Configuration mutations not logged (i.e. not persisted). As such, they are
* not persisted and not versioned. Hence, version is always compatible,
* since it is in-memory.
*/
@Override @Override
public void checkVersion() { public void checkVersion() {
// Does nothing. (Version is always compatible since it's in memory) // Does nothing. (Version is always compatible since it's in memory)