Skip to content

Commit

Permalink
Changed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgates108 committed Jul 30, 2024
1 parent 30f4dbd commit 904a9e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
22 changes: 10 additions & 12 deletions src/czar/Czar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ void Czar::_monitor() {
/// Check database for changes in worker chunk assignments and aliveness
_czarFamilyMap->read();

// TODO:UJ If there were changes in `_czarFamilyMap`, see if any
// workers went down. If any did, `_unassign` all Jobs in UberJobs
// for the downed workers. The `_unassigned` Jobs should get
// reassigned in the next section `assignJobsToUberJobs`.
// TODO:UJ DM-45470 If there were changes in `_czarFamilyMap`,
// see if any workers went down. If any did, `_unassign` all
// Jobs in UberJobs for the downed workers. The `_unassigned`
// Jobs should get reassigned in the next section `assignJobsToUberJobs`.

/// Create new UberJobs (if possible) for all jobs that are
/// unassigned for any reason.
Expand All @@ -205,7 +205,7 @@ void Czar::_monitor() {
execVal->assignJobsToUberJobs();
}

// TODO:UJ Maybe get missing results from workers.
// TODO:UJ DM-45470 Maybe get missing results from workers.
// This would be files that workers sent messages to the czar to
// collect, but there was a communication problem and the czar didn't get the message
// or didn't collect the file. to retrieve complete files that haven't been
Expand All @@ -215,6 +215,11 @@ void Czar::_monitor() {

// TODO:UJ Maybe send a list of cancelled and completed queries to the workers?
// How long should queryId's remain on this list?
// It's probably better to have the executive for a query to send out
// messages to worker that a user query was cancelled. If a worker sends
// the czar about a cancelled user query, or the executive for that
// query cannot be found, the worker should cancel all Tasks associated
// with that queryId.
}
}

Expand All @@ -241,13 +246,6 @@ Czar::Czar(string const& configFilePath, string const& czarName)
// the name of the Czar gets translated into a numeric identifier.
_czarConfig->setId(_uqFactory->userQuerySharedResources()->qMetaCzarId);

/* &&&
try {
_czarFamilyMap = CzarFamilyMap::create(_uqFactory->userQuerySharedResources()->queryMetadata);
} catch (ChunkMapException const& exc) {
LOGS(_log, LOG_LVL_WARN, string(__func__) + " failed to create CzarChunkMap " + exc.what());
}
*/
// This will block until there is a successful read of the database tables.
_czarFamilyMap = CzarFamilyMap::create(_uqFactory->userQuerySharedResources()->queryMetadata);

Expand Down
4 changes: 2 additions & 2 deletions src/xrdsvc/HttpWorkerCzarModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ json HttpWorkerCzarModule::_handleQueryJob(string const& func) {
for (auto const& tbl : jdChunkScanTables) {
http::RequestBody rbTbl(tbl);
auto const& chunkScanDb = rbTbl.required<string>("db");
auto const& lockInMemory = rbTbl.required<bool>("lockInMemory");
auto lockInMemory = rbTbl.required<bool>("lockInMemory");
auto const& chunkScanTable = rbTbl.required<string>("table");
auto const& tblScanRating = rbTbl.required<int>("tblScanRating");
auto tblScanRating = rbTbl.required<int>("tblScanRating");
LOGS(_log, LOG_LVL_TRACE,
__func__ << " chunkSDb=" << chunkScanDb << " lockinmem=" << lockInMemory
<< " csTble=" << chunkScanTable << " tblScanRating=" << tblScanRating);
Expand Down

0 comments on commit 904a9e1

Please sign in to comment.