Skip to content

Reviving #6277 that was merged but then reverted - #7448

Merged
bsipocz merged 1 commit into
astropy:masterfrom
pllim:table-inf-weakref
May 24, 2018
Merged

bsipocz merged 1 commit into
astropy:masterfrom
pllim:table-inf-weakref

Conversation

@pllim

@pllim pllim commented May 10, 2018 •

Copy link
Copy Markdown
Member

As requested in #7447 (comment)

Was #6277

@astropy-bot

astropy-bot Bot commented May 10, 2018 •

Copy link
Copy Markdown

Hi there @pllim 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labeled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

I noticed the following issue with this pull request:

  • Changelog entry section (v3.1) inconsistent with milestone (v2.0.7)

Would it be possible to fix this? Thanks!

If there are any issues with this message, please report them here.

@bsipocz

bsipocz commented May 10, 2018

Copy link
Copy Markdown
Member

@pllim @astrofrog - What about backporting here?

@pllim

pllim commented May 10, 2018

Copy link
Copy Markdown
Member Author

Let me know if you want to backport and I'll move the change logs. I am just opening this up so we can push things forward, so I don't have strong opinions either way.

@astrofrog

astrofrog commented May 10, 2018 •

Copy link
Copy Markdown
Member

I would say let's backport but only once this has been merged into master for a while and has shown to be stable.

@pllim - could you preserve the original commits from #6277? Or maybe give a more explicit commit message that actually describes the fix so that it's clear what this does without having to go to GitHub.

@astrofrog

Copy link
Copy Markdown
Member

@cdeil - could you try out this branch to see if the issues you were having with the open files goes away?

@bsipocz bsipocz modified the milestones: v3.1, v2.0.7 May 10, 2018
@bsipocz

bsipocz commented May 10, 2018

Copy link
Copy Markdown
Member

@astrofrog - OK, I keep mind to hold off backport, but still remilestoned otherwise it will slip though.

Add test of lost parent exception.
Reviving astropy#6277 that was merged but then reverted.
@pllim
pllim force-pushed the table-inf-weakref branch from 01e7cc4 to 7f8e444 Compare May 10, 2018 14:41
@pllim

pllim commented May 10, 2018

Copy link
Copy Markdown
Member Author

@bsipocz , do I have to move the change logs?

@astrofrog , I have rewritten the commit message as you requested.

@astrofrog

Copy link
Copy Markdown
Member

I guess the changelog depends on if we will backport

@bsipocz

bsipocz commented May 10, 2018

Copy link
Copy Markdown
Member

@pllim - Don't worry about the changelog, we merge this as is and I'll put it in the right place if/after backported (actually it's even better not to put in 2.0.7 now, so there'll be more red flags raised that will remind me not to backport straight away...).

@pllim

pllim commented May 10, 2018

Copy link
Copy Markdown
Member Author

All the CIs passed. The only "x" is from bot because of the change log. FYI.

@cdeil

cdeil commented May 10, 2018

Copy link
Copy Markdown
Member

@cdeil - could you try out this branch to see if the issues you were having with the open files goes away?

I tried the example from #7440 (comment) here and from what I see this PR does fix #7447, i.e. the table / column is reliably deleted, no more memory leak, and on delete the memmap is closed.

But technically no, this change alone would not resolve our issue in Gammapy with open files, because we actually need to hold on to the data. But I think that memmap question is irrelevant for the discussion / fix here, no?

@astrofrog

Copy link
Copy Markdown
Member

@cdeil - thanks for confirming!

@taldcroft

Copy link
Copy Markdown
Member

This is on my radar but I was away on vacation last week. I need to refresh on the whole long discussion.

One question, probably for @astrofrog - do you believe that #6277 was exonerated as the source of the "Heisenbug"?

@saimn

saimn commented May 23, 2018

Copy link
Copy Markdown
Contributor

Maybe #6703 / #6714 was related to this bug ?
If everything works here we can probably merge and see if the bug appear again.

@astrofrog

Copy link
Copy Markdown
Member

@taldcroft - well I can't guarantee it, but my past self apparently uncovered that the heisenbug appeared shortly before #6277 was merged, so I think so. To some extent there's only one way to find out 😬

@astrofrog astrofrog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I say we give it a try

@taldcroft

Copy link
Copy Markdown
Member

Fine by me to merge.

@astrofrog

Copy link
Copy Markdown
Member

@pllim - can you move the changelog entry prior to merging? (you can use [ci skip])

@bsipocz

bsipocz commented May 24, 2018

Copy link
Copy Markdown
Member

@astrofrog - Let's keep the changelog for now to make sure this PR generates an anomaly for the backports (#7448 (comment))

@bsipocz
bsipocz merged commit a8adbf8 into astropy:master May 24, 2018
@bsipocz

bsipocz commented May 24, 2018

Copy link
Copy Markdown
Member

2 approvals above, so merging this now. Thanks @pllim for the resurrection of the fix.

@pllim
pllim deleted the table-inf-weakref branch May 24, 2018 14:32
@bsipocz bsipocz modified the milestones: v2.0.7, v2.0.8 Jun 4, 2018
@bsipocz

bsipocz commented Jul 11, 2018

Copy link
Copy Markdown
Member

I feel we have enough testing for this in master, so as this indeed seems to be working I'm going to backport it to the bugfix branches.

bsipocz added a commit that referenced this pull request Jul 11, 2018
Reviving #6277 that was merged but then reverted
bsipocz added a commit that referenced this pull request Jul 11, 2018
Reviving #6277 that was merged but then reverted
@bsipocz

bsipocz commented Aug 1, 2018

Copy link
Copy Markdown
Member

@taldcroft @pllim @astrofrog - Is it OK for this API change to get backported? If yes, 3.0.x only or LTS, too?

@taldcroft

Copy link
Copy Markdown
Member

I'm not adamant, but I would say that 3.0.x is OK but not LTS. Somehow I feel like LTS is more sacred when it comes to any API change, even it truly obscure.

@bsipocz bsipocz modified the milestones: v2.0.8, v3.0.4 Aug 2, 2018
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.

6 participants