in teamcity-symbol-server/src/main/java/jetbrains/buildServer/symbols/DownloadSymbolsController.java [242:255]
public Long getBuildIdByEntryKey(final String key) throws InterruptedException, TimeoutException {
acquireLockIfNeed();
final Iterator<BuildMetadataEntry> entryIterator =
myBuildMetadataStorage.getEntriesByKey(BuildSymbolsIndexProvider.PROVIDER_ID, key);
if (entryIterator.hasNext()) {
final BuildMetadataEntry entry = entryIterator.next();
if (entry != null) {
return entry.getBuildId();
}
}
return null;
}