Queue method does not recycle the extent file

Hi, all,
I use Queue methond in TDS of db-4.7.25, and enqueue with set(DB_APPEND) and inqueue with get(DB_CONSUME).
I configured the queue db with set_q_extentsize.
I found there are still extent files in env dir(see __dbq.test1.20 and __dbq.test1.21), though the queue is empty.
-rw-r----- 1 root root 24K Dec 9 17:22 __db.001
-rw-r----- 1 root root 25M Dec 9 17:22 __db.002
-rw-r----- 1 root root 321M Dec 9 17:22 __db.003
-rw-r----- 1 root root 4.1M Dec 9 17:22 __db.004
-rw-r----- 1 root root 33M Dec 9 17:22 __db.005
-rw-r----- 1 root root 15M Dec 9 17:22 __db.006
-rw-r--r-- 1 root root 64M Dec 9 17:25 __dbq.test1.20
-rw-r--r-- 1 root root 64M Dec 9 17:26 __dbq.test1.21
-rw-r--r-- 1 root root 40M Dec 9 17:32 __dbq.test1.36
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000333
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000334
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000335
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000336
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000337
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000338
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000339
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000340
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000341
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000342
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000343
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000344
-rw-r----- 1 root root 10M Dec 9 17:28 log.0000000345
-rw-r----- 1 root root 10M Dec 9 17:38 log.0000000346
-rw-r--r-- 1 root root 4.0K Dec 9 17:29 test1
# /usr/local/BerkeleyDB.4.7/bin/db_stat -d test1
Wed Dec 9 17:41:47 2009     Local time
42253     Queue magic number
4     Queue version number
1024     Fixed-length record size
0x20     Fixed-length record pad
4096     Underlying database page size
16384     Underlying database extent size
0     Number of records in the database
1     Number of database pages
3072     Number of bytes free in database pages (25% ff)
1800002     First undeleted record
1800002     Next available record number
This issue confuses me, does it have a delay recycling of extent files? But why only 20 and 21? or Is this a bug of 4.7.25 version?
Regards,
Steve

Hi Steve,
Any chance you might have deleted records in the queue database by record number and not only through DB_CONSUME operations? Have you used the DB->del method or just DB->get with the DB_CONSUME flags?
In general, only if the data is deleted using a DB_CONSUME operation can BDB be sure of removing a queue extent file. Otherwise, if BDB detects that a record at the head of the queue has been deleted, then it will check whether the extent file can be deleted. Though, active concurrent updates in the queue might prevent BDB from detecting that.
In BDB 4.8.24 the DB_CONSUME flag is set on all deletes in the queue, hence forcing the check to see if the queue extent can be deleted.
However, this is not done all the time as it affects concurrency.
I believe you're seeing the effects of bug #17004. This is fixed in BDB 4.8.24, and the relevant entry in the change log describing it is:
[http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/changelog_4_8.html]
Fixed a bug that could cause a queue extent to be recreated if an application deleted a record that was already deleted in that extent.  (#17004)
Added the DB_CONSUME flag to DB->del and DBC->del to force adjustment of the head of the queue. (#17004)
Could you test with BDB 4.8.24 and see if you run into the same problem?
Regards,
Andrei

Similar Messages

  • JNI generated header file does not match the class file

    We have had a JNI project for many years and all has been fine. Within our libraries we have several classes that have inner enum classes.
    Recently we have moved to JDK1.7. Up to now when JNI generated the methods where the signature used the inner enum class, and it was an oveloaded method, we would get something like the following as the signature:
    Java_PackageName_ClassName_methodName_OuterClass_00024InnerEnum_2
    And the class file result of the build would look like the following:
    methodName(OuterClass$InnerEnum)
    Since we have moved to JDK 1.7 the header file looks like the following:
    Java_PackageName_ClassName_methodName_OuterClasss_InnerEnum_2
    The class file is still the same, and because of that when we run the program we get an UnsatisfiedLinkError. I understand that this error is because the VM cannot find the implementation. So why JDK 1.7 generates a header file that does not match the class file?
    Thank you in advance.

    I don't have 1.6 to verify but your statements about what is generated for 1.7 for the header appear correct.
    The 000024 represents the '$' and for 1.7 the inner class is still named using '$'. So for example after compiling in 1.7 the inner class file is named the following...
    MyClass$InnerEnum.class
    So a one to one conversion should have kept the 000024 (presuming it does in fact do it that way in 1.6.)
    You might want to look at the release notes for 1.7.
    If you need a solution you could add a post javah step that renames the file.

  • CS5 The selected file cannot be linked because its type (audio) does not match the original file's t

    Greetings,
    I have been working on a very large project using CS5 on my desktop computer. Now I am on the road and bought a laptop so that I can continue to work. I placed all of my assets on a back-up external 2tb drive (which I was able to open without incident on my desktop). I installed CS5 on my new laptop and now when I try to open the project I get the following message "The selected file cannot be linked because its type (audio) does not match the original file's type (audio and video)". This message appears before I indicate the path to any of the assets. Then, when I do indicate the path to each asset, I get the same message for individual files.
    Any advice is appreciated.
    Thanks,
    Jeremy

    I had this problem and have found a solution / workaround:  my issue was when trying to open a cs5 project that had been collected on mac and then transfered to pc, my footage was all png image sequences but this will hopefully work in other situations...
    Open the project and cancel the first dialogue box that pops up where you get the "file cannot be linked" error when trying to reconnect footage.  The project will open and then in the project panel, right click on any footage that needs reconnected and choose "Replace footage..." this will open a dialog that will allow you to select the file that gave you the error in the first place without any issues.  Any sequences with that footage will now work and everything show be all good. 
    You may experience "Offline material is present in this export and will be encoded using the offline media graphic" on first export but apparently you can just ingore that, but i guess it's woth testing a few short sections before commiting to a huge render...
    This workaround isn't perfect as i had about 50 pieces of footage i had to relink via this method one by one but at least it saved redoing the edit which was critical for my project...
    good luck!

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • Adobe Lightroom, Photoshop and Bridge does not recognize the raw files from my Canon Mark III 5D Camera.

    Adobe Lightroom, Photoshop and Bridge does not recognize the raw files from my new Canon Mark III 5D Camera.  How can I get my files open to view and edit?  I am using LR3, Photoshop CS3 and Bridge CS3.  Do I need to upgrade these programs or is there another way to get these programs to recognize my files?
    When I try opening the raw images in Lightroom, the thumbnails say "Preview unavailable for this file"  ... when I click "import" an error message pops up that says "The files are from a camera which is not recognized by the raw format support in Lightroom."
    When I try opening the raw images in Photoshop, an error message pops up saying "could not complete your request because photoshop does not recognize this type of file."
    When I try opening the raw images in Bridge, it just shows an icon with the file name and CR2.
    Please help!!!

    Unless I missed an announcement, today, LR6 isn't available, yet, right?  Only Adobe employees and beta testers would know what LR6 does differently at this point and they're all sworn to secrecy.
    LR5 is available as a standalone version.
    PS-CS6 is available as a serial-number-licensed version.
    PS-CC + LR5 are also available as a Photography Plan subscription for $10/month with a minimum OS versions of OSX 10.7 (and probably 10.8, soon) and Windows 7.
    Bridge is part of PS, not a separate program.
    LR5 standalone and LR+PS-CC plan are both available on this page:  http://www.adobe.com/products/catalog/software.html
    PS-CS6 can be found on this page:  Creative Suite 6 which can be found by searching www.adobe.com for Photoshop CS6 and clicking the Buy link in the on-the-fly search results.
    As with any new Adobe software, it might be wise to run it in trial mode for a few days/weeks to see if it works well with your computer, before purchasing and finding out you might need a new computer, first.

  • Selected file cannot be linked because its type (video) does not match the original file's type

    I've been using Premiere Elements 9 for a couple of years now, and a few months ago I began having problems importing AVI files created from a BlackMagic Intensity Pro capture card.  (These issues were not previously occurring, and since they surfaced, I have exhausted the various settings for the BlackMagic card, used various software such as BlackMagic's own Media Express as well as the freeware VirtualDub, and still have the following problems.)
    In addition, these AVI files play just fine, in their entirety, using Windows Media Player and in Quicktime.
    The problem (or possibly two, but I suspect they could be related) is that most of the AVI files I attempt to import will either (1) import all video and NO audio, or (2) import ONLY a short segment of audio and video, and the length that Elements imports varies.  Usually only in the range of a minute or two.  The rest of the file is not imported at all.
    After much digging in forums, and testing various settings in trying to figure out the issue, I decided to back up all of my files and completely wipe all hard drives and start over with a fresh installation of Windows and Premiere Elements 9.  I haven't installed much else yet, as I wanted to first find out if the reinstallation improved things with Elements.
    For the first project I created in Elements after the reinstallation, Elements successfully imported an entire AVI that was nearly 2 hours long, audio and video.  This was a file that previously would not import properly into Elements.  This suggested that my earlier installation of Elements must have been corrupted somehow.  At this point I was very hopeful that all was well.
    I proceeded to edit the video as I had wanted, saved the project, and exported it to an MPEG format file.  I had originally wanted to export it as an MOV, but I hadn't yet installed Quicktime, so Elements couldn't do that just yet.  The MPEG export was successful and plays fine.
    However, I then installed Quicktime, and once it was finished, I restarted the PC and reloaded the same project.  This time, Elements claimed the media was offline.  I double-clicked on a segment of the video, and directed Elements to the raw file, but then an error message popped up:  "The selected file cannot be linked because its type (video) does not match the original file's type (audio and video)."  This was the same file I had JUST edited and of which I created an MPEG.
    I tried creating a new project and the "Get Media" function to import the AVI again, but this time only the video imported with NO audio.  (This would explain why the error message said what it did, but not why the audio wasn't imported.)
    What in the world is going on with Elements???  I am baffled since the ONLY task I have done on this machine after a complete reinstallation of both Windows and Elements is edit one AVI.  I find it very hard to believe that just installing Quicktime caused this.
    Some info on my system:
    System:  Asus P6T w/ Intel i7 920 and 12 GB memory
    OS: Windows 7 Ultimate
    Video Software:  Premiere Elements 9
    Capture Card:  BlackMagic Intensity Pro (PCI-e)
    Capture Software:  AVIs recorded with either BlackMagic Media Express or VirtualDub (only prior to the reinstallation, as neither of these programs are currently installed)
    I'm getting to the point with Elements that I might need to just abandon it and find something else that is more reliable.  Anybody have suggestions to help with this, so I won't have to migrate?

    mtnsports
    We think that we need to start off with definiting the properties of these .avi files that you are importing into Premiere Elements 9.0/9.0.1 (assumed that you are working for the required 9.0.1 Update).
    You say that the "avi" was created from a "BlackMagic Intensity Pro capture card". What are the properties of this .avi that you imported into Premiere Elements? Not all .avi are created equal. What is the video and audio compression, frame size, frame rate, interlaced or progressive, pixel aspect ratio, typical duration?
    Based on the properties of the video what have you been setting as the project preset?
    Let us start here.
    More later.
    ATR

  • I have a new windows 7 pc and i want to move my iTunes mediathek (Music, movies) to it. by using an external driver (Hd.). But On the new pc iTunes does Not integrales the Media files.

    I have a new windows 7 pc and i want to move my iTunes mediathek (Music, movies) to it. by using an external driver (Hd.). But On the new pc iTunes does Not integrales the Media files.

    Copy the entire /Music/iTunes/ folder from old computer to /Music/ on new computer.
    Launch iTunes.
    That is all you need to do.

  • Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a

    Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there are no updates

    Hi,
    CS6
    Van: R_Kelly [email protected]
    Verzonden: maandag 16 september 2013 18:42
    Aan: Hans van Sloten
    Onderwerp: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
    Re: Adobe Bridge does not accept the NEF files from my new Nikon D800. I use the latest version, there a
    created by R_Kelly <http://forums.adobe.com/people/R_Kelly>  in Photoshop for Beginners - View the full discussion <http://forums.adobe.com/message/5686078#5686078

  • Using Firefox 3.6.20 and Windows XP Home SP3. Firefox sporatically deletes bookmarks from the bookmarks toolbar. Additionally, when I try to import from a saved HTML file, Firefox does not import the complete file. Results are inconsistent.

    Using Firefox 3.6.20 and Windows XP Home SP3. Firefox sporatically deletes bookmarks from the bookmarks toolbar. Additionally, when I try to import from a saved HTML file, Firefox does not import the complete file. Results are inconsistent.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Somehow my calender was erased. How do I restore it? I have time machine. Fortunately it was synched with Outlook, so I still have it there. But Ical does not recognize the Outlook file. Is there a way to restore from Outlook? resi

    Somehow my calendar in iCal was deleted. It was not archived. I have Time Machine. How do I restore? Fortunately it was synched to Outlook, so it is not lost. I would like to out it back in iCal but iCal does not recognize the Outlook file.

    Thank you. It's all back to normal (took around 7 hours on the late 2009 iMac). Time Machine's become better now compared to the last time I used it to migrate everything automatically (Snow Leopard days). With Maverick's Time Machine, it's almost like a cloning (except for the password) tool now. But it's always great to name the account and maybe the hardisk the same names so can just replace a newly installed OS.
    God bless. Thanks again.

  • Publish to DVD says it completes, does not write the ISO file in version 13.

    When I publish to DVD and select ISO it says it completes but it does not write the ISO file in version 13.

    apsteinmetz
    The DVD disc which is labelled 4.7 GB/120 minutes is in reality 4.38 GB. And the DVD disc which is labelled 8.5 GB/240 minutes is in reality 7.95 GB.
    What version of Premiere Elements and on what computer operating system is it running? Can we assume 13/13.1 on Windows 8.1 64 bit?
    What are you doing, a burn to disc DVD-VIDEO standard or widescreen on DVD disc or burn to disc AVCHD on DVD disc?
    When you get to the burn dialog (and you have your disc in the burner tray), what does the Quality area of the burn dialog show for Space Required and Bitrate with and without a check mark next to "Fit Contents to Available Space"?
    Or, can you do burn to Folder (4.7 GB) and/or burn to ISO Image (4.7 GB)? Are your successful burn to .iso files under 1 GB in file size?
    Please quantitate "...shortening the timeline dramatically".
    Thank you. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • Exported my video from Elements 12 but Powerpoint does not recognise the video file. How can we do it?

    Exported my video from Elements 12 - format mp4 but Powerpoint does NOT recognise the video file. Why?

    .wpl appears to be a Windows Media Player playlist. I can find no conversion software for that, and Windows Media Player is not available for Mac anymore.
    If you can persuade him to download iTunes and create the playlist as mp3 in a iTunes playlist, or even just burn the base mp3 files to CD as a data disc, that's about the only solutions I can suggest.

  • Lightroom 5 does not import the GPS-files taken by the Sony A77. When i open the Bridge, there i can see them correctly. Can you help me? Thank´s a lot!

    Lightroom 5 does not import the GPS-files taken by the Sony A77. When i open the Bridge, there i can see them correctly. Can you help me? Thank´s a lot!

    Deleting this discussion as it is a duplicate of Hello: I am using OSX 10.9.3 Lightroom Version 5.4 Camera Sony A77...Problem: importing the foots form chip or from the camera the GPS-position is not shown in lightroom. Using the bridge there they are. What have I do do? Thanks

  • HT201250 what do I do if my passport for mac does not delete the old files when the disc is full

    What do I do  if the time machine does not delete the oldest files on my passport for mac. I get the message backup failed not enough disc space available

    See Pondini's TM FAQs, for starters.

  • I can not download newer themes. It continues to say So and so could not be installed because Firefox does not have the needed files. Also.. For the newer version, where is the tools option?

    I am trying to download a new theme. Lava theme. However, it will not let me download that or any other theme for that matter.
    It continues to say, So and so could not be installed because Firefox does not have the needed files. What does this mean?
    Also, on the newer version.. I can not find the tools option..

    The Firefox versions which come with many Linux distros have the default Mozilla Firefox updater disabled and use the distros built-in updater.
    See this - http://linuxforums.org.uk/netbooks/install-firefox-6-on-an-acer-aspire-one-running-linpus-lite-linux/

Maybe you are looking for

  • No longer able to drag and drop songs into playlists on iPhone?

    How's it going, I had to reset my phone the other day and I was able to add a playlist to the iPhone, but now it wont let me add selected songs to the playlist on my iPhone, only sync it through the playlist on my iTunes. What happened?

  • How do I reorganize the order of songs or tracks within an album?

    How can I permenantly change the order of tracks or songs within an album without creating a playlist for that album?

  • Pages *crashes* whenever I run it

    I just paid for a serial for iWork and now whenever I run it and do anything (including just pasting text into a blank page) tje desktop blinks and applications crash and pages just quits. I used it a few days ago in trial mode (trial expired) and I

  • Unable to Choose Photos to Share with Apple TV

    I am trying to "Choose Photos to Share with Apple TV" within iTunes. However, I get the following error message Photos folder syncing has been disabled for the Apple TV "" because the folder "(Unknown)" cannot be found. Any help would be apprecited.

  • Getting data of two records in one line using SQL

    Hi, We have a COMPANY_RESEARCH table that maps companies to the Research Universes that do research on them. This table has: COMPANY_ID VARCHAR2(100), foreign key to COMPANY table. RESEARCH_UNIT_ID CHAR(1) Valid values for RESEARCH_UNIT_ID are 1(US E