Skip to content

Commit

Permalink
Made failure to create CzarChunkMaps a non-fatal error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgates108 committed Apr 5, 2024
1 parent f908d6b commit 71acedf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/czar/Czar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ Czar::Czar(string const& configFilePath, string const& czarName)
// the name of the Czar gets translated into a numeric identifier.
_czarConfig->setId(_uqFactory->userQuerySharedResources()->qMetaCzarId);

_czarChunkMap = CzarChunkMap::create(_uqFactory->userQuerySharedResources()->queryMetadata);
try {
_czarChunkMap = CzarChunkMap::create(_uqFactory->userQuerySharedResources()->queryMetadata);
} catch (ChunkMapException const& exc) {
LOGS(_log, LOG_LVL_WARN, string(__func__) + " failed to create CzarChunkMap " + exc.what());
}

// Tell workers to cancel any queries that were submitted before this restart of Czar.
// Figure out which query (if any) was recorded in Czar database before the restart.
Expand Down

0 comments on commit 71acedf

Please sign in to comment.