bugmonotone - Bugs: bug #31017, automate stdio session does not...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #31017: automate stdio session does not see external db changes

Submitted by:  Stephen Leake <stephen_leake>
Submitted on:  Sat 11 Sep 2010 05:38:48 PM UTC  
 
Category: automation interfaceSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open
mtn version --full: 

0.48

Sun 26 Sep 2010 03:48:14 PM UTC, comment #4:

There is no such thing as locking against deletion on Unix.

How exactly did you get into this situation, Stephen? The lua tests are supposed to only mess with databases that they create.

Zack Weinberg <zackw>
Sun 26 Sep 2010 02:57:36 PM UTC, comment #3:

Further experiments; on Windows MinGW and Cygwin, the automate session does hold the database file locked; an attempt to delete it from another process fails.

On Debian Linux, the file is not locked; deleting it from another process succeeds.

This would seem to be an SQLite issue.

Stephen Leake <stephen_leake>
Project Member
Thu 23 Sep 2010 10:28:51 AM UTC, comment #2:

Can we instruct the operating system to lock the opened database file somehow so it cannot be deleted / unlinked while its open?

Thomas Keller <tommyd>
Project Administrator
Thu 23 Sep 2010 09:01:27 AM UTC, comment #1:

Actually, to trigger the problem, the external process has to delete and recreate the db. For example, by running a lua test. Normal operations on a database are seen by the stdio process.

Stephen Leake <stephen_leake>
Project Member
Sat 11 Sep 2010 05:38:48 PM UTC, original submission:

If an automate stdio session has opened a db, and some external process then changes that db, the stdio session does not see the changes.

automate stdio should check to see if the cache needs to be refreshed.

Stephen Leake <stephen_leake>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by zackw (Posted a comment)
  • -unavailable- added by tommyd (Posted a comment)
  • -unavailable- added by stephen_leake (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup