Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aleksandr Konstantinov
arc
Commits
79874e3d
Commit
79874e3d
authored
Apr 18, 2018
by
Aleksandr Konstantinov
Browse files
Reducing level and number of log messages.
parent
0e14c99b
Pipeline
#1451
passed with stage
in 60 minutes and 1 second
Changes
5
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/hed/mcc/tls/MCCTLS.cpp
View file @
79874e3d
...
...
@@ -229,7 +229,7 @@ TLSSecAttr::TLSSecAttr(PayloadTLSStream& payload, ConfigTLSMCC& config, Logger&
processing_failed_
=
true
;
logger
.
msg
(
ERROR
,
"VOMS attribute validation failed"
);
};
logger
.
msg
(
ERROR
,
"VOMS attribute is ignored due to processing/validation error"
);
logger
.
msg
(
WARNING
,
"VOMS attribute is ignored due to processing/validation error"
);
v
=
voms_attributes_
.
erase
(
v
);
}
else
{
++
v
;
...
...
src/services/a-rex/get_activity_statuses.cpp
View file @
79874e3d
...
...
@@ -591,7 +591,6 @@ Arc::MCC_Status ARexService::ESNotifyService(ARexGMConfig& config,Arc::XMLNode i
// TODO: Destroy job (at least try to)
}
else
{
ritem
.
NewChild
(
"esmanag:Acknowledgement"
);
logger
.
msg
(
Arc
::
ERROR
,
"GetActivityStatuses: request attention %s"
,
job
.
ID
());
gm_
->
RequestJobAttention
(
job
.
ID
());
// Tell GM to resume this job
};
}
else
{
...
...
src/services/a-rex/grid-manager/GridManager.cpp
View file @
79874e3d
...
...
@@ -179,7 +179,7 @@ void WakeupInterface::thread() {
// Event arrived
if
(
!
event
.
empty
())
{
// job id provided
logger
.
msg
(
Arc
::
WARNING
,
"====
External request for attention %s"
,
event
);
logger
.
msg
(
Arc
::
DEBUG
,
"
External request for attention %s"
,
event
);
jobs_
.
RequestAttention
(
event
);
}
else
{
// generic kick
...
...
src/services/a-rex/grid-manager/files/ControlFileHandling.cpp
View file @
79874e3d
...
...
@@ -132,7 +132,6 @@ bool check_file_owner(const std::string &fname,uid_t &uid,gid_t &gid,time_t &t)
bool
job_lrms_mark_check
(
const
JobId
&
id
,
const
GMConfig
&
config
)
{
std
::
string
fname
=
config
.
ControlDir
()
+
"/job."
+
id
+
".lrms_done"
;
logger
.
msg
(
Arc
::
ERROR
,
"Checking lrms mark at %s"
,
fname
);
return
job_mark_check
(
fname
);
}
...
...
src/services/a-rex/job.cpp
View file @
79874e3d
...
...
@@ -708,7 +708,6 @@ void ARexJob::make_new_job(std::string const& job_desc_str,const std::string& de
deleg_ids
.
unique
();
deleg
.
LockCred
(
id_
,
deleg_ids
,
config_
.
GridName
());
logger_
.
msg
(
Arc
::
WARNING
,
"=== New job request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
;
}
...
...
@@ -727,7 +726,6 @@ bool ARexJob::Cancel(void) {
if
(
id_
.
empty
())
return
false
;
GMJob
job
(
id_
,
Arc
::
User
(
config_
.
User
().
get_uid
()));
if
(
!
job_cancel_mark_put
(
job
,
config_
.
GmConfig
()))
return
false
;
logger_
.
msg
(
Arc
::
WARNING
,
"=== Cancel job request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
true
;
}
...
...
@@ -736,7 +734,6 @@ bool ARexJob::Clean(void) {
if
(
id_
.
empty
())
return
false
;
GMJob
job
(
id_
,
Arc
::
User
(
config_
.
User
().
get_uid
()));
if
(
!
job_clean_mark_put
(
job
,
config_
.
GmConfig
()))
return
false
;
logger_
.
msg
(
Arc
::
WARNING
,
"=== Clean job request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
true
;
}
...
...
@@ -755,7 +752,6 @@ bool ARexJob::Resume(void) {
// Failed to report restart request.
return
false
;
};
logger_
.
msg
(
Arc
::
WARNING
,
"=== Resume job request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
true
;
}
...
...
@@ -1075,7 +1071,6 @@ bool ARexJob::ReportFileComplete(const std::string& filename) {
std
::
string
fname
=
filename
;
if
(
!
normalize_filename
(
fname
))
return
false
;
if
(
!
job_input_status_add_file
(
GMJob
(
id_
,
Arc
::
User
(
config_
.
User
().
get_uid
())),
config_
.
GmConfig
(),
"/"
+
fname
))
return
false
;
logger_
.
msg
(
Arc
::
WARNING
,
"=== New file request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
true
;
}
...
...
@@ -1083,7 +1078,6 @@ logger_.msg(Arc::WARNING, "=== New file request for attention: %s", id_);
bool
ARexJob
::
ReportFilesComplete
(
void
)
{
if
(
id_
.
empty
())
return
false
;
if
(
!
job_input_status_add_file
(
GMJob
(
id_
,
Arc
::
User
(
config_
.
User
().
get_uid
())),
config_
.
GmConfig
(),
"/"
))
return
false
;
logger_
.
msg
(
Arc
::
WARNING
,
"=== New files request for attention: %s"
,
id_
);
CommFIFO
::
Signal
(
config_
.
GmConfig
().
ControlDir
(),
id_
);
return
true
;
}
...
...
Aleksandr Konstantinov
@aleksandr.konstantinov
mentioned in commit
nordugrid/arc@0ec62126
·
Jun 21, 2018
mentioned in commit
nordugrid/arc@0ec62126
mentioned in commit nordugrid/arc@0ec6212663416fe375916bea9de9bedd4852c70d
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment