Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete ME after writing #5682

Merged
merged 7 commits into from
Oct 7, 2014

Conversation

deguio
Copy link
Contributor

@deguio deguio commented Oct 3, 2014

@Dr15Jones
this should address the comment you made to #5650

comments are welcome.. :)

ciao,
F.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2014

A new Pull Request was created by @deguio for CMSSW_7_1_X.

Delete ME after writing

It involves the following packages:

DQMServices/Components
DQMServices/Core

@nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please review it and eventually sign? Thanks.
@barvic this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

{
data_.erase(i_lumi);
}
++i_lumi;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call to erase invalidated i_lumi so you can't advance it. I think what you need to do is

auto temp = i_lumi++;
if( temp->getFullname() ... ) {
   data_.erase(temp);
}

@deguio
Copy link
Contributor Author

deguio commented Oct 6, 2014

hello @Dr15Jones
thanks for the comments. about the i_lumi iterator you are absolutely right. I have just pushed the change you propose.

For what concerns the markToDelete method, it is triggered only by the DQMFileSaver, which is a global module, at the globalEndLumi on old MEs (belonging lumis older than the current one).
The operation should never happen concurrently. I have discussed this with Marco and, If you agree, we would leave it as it is.
thanks,
F.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 6, 2014

Pull request #5682 was updated. @nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please check and sign again.

@deguio
Copy link
Contributor Author

deguio commented Oct 6, 2014

now the two methods markedToDelete and markToDelete are private in MonitorElement

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 6, 2014

Pull request #5682 was updated. @nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 6, 2014

@deguio
Copy link
Contributor Author

deguio commented Oct 7, 2014

sure, I will add a comment. at the moment this is not the case.
thanks for scrutinising this,
F.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2014

Pull request #5682 was updated. @nclopezo, @danduggan, @rovere, @cmsbuild, @deguio, @ojeda can you please check and sign again.

@deguio
Copy link
Contributor Author

deguio commented Oct 7, 2014

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 7, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs unless changes or unless it breaks tests. @Degano can you please take care of it?

davidlange6 added a commit that referenced this pull request Oct 7, 2014
@davidlange6 davidlange6 merged commit 14de58c into cms-sw:CMSSW_7_1_X Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants