Why does a feature of CFLOCK seem like a bug?

I searched this forum for discussions about cflock
and read the livedocs at
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=sharedVars_20.html.
This reading is on top of me thinking I already knew
everything about using the cflock tag.
Apparently, I am not understanding a very critical
aspect of the cflock tag when locking the session scope.
My issue is regarding one user, one session, multiple
and concurrent requests arriving at the CF8 server
from the same user session.
Meaning, a web page that uses ajax, frames, pop-ups,
or the user hitting ctrl-n, will generate multiple
requests to the CF8 server using the same session.
Based on my understanding, using type="exclusive" will
effectively single-thread the access to code between
the lock tag. So my question is:
Why doesn't <cflock scope="session" type="exclusive" ...
>
single-thread the access to the code between the cflock
tag?
If you are kind enough to respond, I would really
appreciate an explanation why the current behavior
in CF8 is the more correct behavior. If the scope
is changed from session to application or server, it
will infact single-thread the access/execution.
So why is this not the case when the scope is session?
I arrived at this problem because I was trying
to explain to someone the difference between:
<cflock scope="session" type="exclusive" ... >
and
<cflock scope="session" type="readOnly" ... >
Based on my simple test and what I'm seeing, I discovered
I myself don't know the difference!
I know how to re-write the code to do exactly
what I want to do. I just can't seem to wrap
my head around why the cflock tag is implemented
this way (with respect to session and exclusivity).
However, it is more likely that I have a bug in my
simple test code...?
If you're interested, here's the code I used to
confirm/test my assumption:
Thank you for reading this post to the end!

Please be sure that I am very grateful that you both
are responding to my post. I am having difficulty
articulating exactly the issue since it may be a
feature of the CFLOCK tag and not a bug.
I thank you for being patient.
> You don't actually say what you're seeing to
> suggest that it's not working to spec.
What I'm seeing (with respect to the session scope
and exclusivity) is that the CFLOCK tag is not
behaving as documented in livedocs.
In particular, I'm referring to this statement in
livedocs:
"Exclusive - Allows single-thread access to the CFML
constructs in its body. The tag body can be executed
by one request at a time. No other requests can start
executing code within the tag while a request has an
exclusive lock. ColdFusion issues exclusive locks on
a first-come, first-served basis."
It occurred to me that it would be somewhat trivial
enough to prove this statement as being true. My
attached code was the beginnings of my attempt to
actually see single-threading at work.
However, what I actually observed was that this statement
from livedocs is actually false when using scope="session"
and type="exclusive".
Meaning, it did NOT "single-thread access to the CFML
constructs in its body".
> I don't see anything to suggest what you're seeing.
> ... I don't know what your evidence is to suggest
> anything's wrong
My attached code is the beginnings of an attempt to
gather some evidence. I was attempting to cause the
first request/browser to simulate a process that
takes 30 seconds. While the first request is performing
it's 30 second long process, I caused the second request/
browser to simulate a process that takes zero seconds
to perform.
My expectation was that the second request/browser will
not have an opportunity to begin processing since
the first request is holding an exclusive lock.
What I actually observed was that second request was
able to perform/continue without waiting or being blocked.
However, when I changed the scope from session to
application or server, I finally did observe the second
request waiting/being blocked. If I switch the scope back
to scope="session", the second request continues without
waiting/being blocked.
It is really hard for me to believe that there is a bug
here. I really do think that someone went out of their
way to allow this feature. I just wish I knew the rational
behind allowing this feature (and yet NOT documenting this
abnormal behavior in livedocs).
Thank you again for responding and taking the time to
modify and run my sample code (code must be modified
to experience the abnormal behavior). I did take note
of your mention that you experienced some "interesting"
behavior.

Similar Messages

  • Why does useful features are limited to few adapters?

    Why does useful features are limited to few adapters?
    For eg : File receiver CC has a option to stop Empty messages from being processed.
    This is not available in SOAP receiver.
    Is it possible to have a standard adapter module in SOAP receiver CC that will achieve this?
    Regards,
    Venkat.

    >
    Venkat A wrote:
    > Why does useful features are limited to few adapters?
    > For eg : File receiver CC has a option to stop Empty messages from being processed.
    > This is not available in SOAP receiver.
    Thats for SAP to answer i guess
    Well initially there was no option in the File adapter to handle empty messages but as requirement grew and more and more customers/consultants were in need to handle such a functionality, SAP brought it in through a SP release
    Maybe if this particular requirement of your finds popularity, then SAP might come up with a inbuilt solution
    >
    > Is it possible to have a standard adapter module in SOAP receiver CC that will achieve this?
    >
    > Regards,
    > Venkat.
    in you case why do you need to send the SOAP receiver a empty message??
    If you need to handle it then the best is to do some workaround in the mapping and have a field in your target structure indicate that it is a empty message (something like a flag) and then do the routing logic based on this flag.

  • Why does my exported PDF not look like the original?

    When I export a PDF to excel, the excel document doesn't look like the original. Any idea why or how to make it an exact duplicate?

    No discussion mi adob france
    Acrobat Pro, PDF Pack, Export PDF & More | A...
    Acrobat
    Adobe Document Solutions make it simple to help you get more done every day, and lets you easily create, edit, send, an...
    Envoyé depuis Molto pour iPad
    Message transféré:
    De: Allamelle
    Envoyé: jeudi, février 12, 2015 10:53 AM
    À: [email protected]
    Objet: Re:  Why does my exported PDF not look like the original?
    Stop Mdr
    Envoyé depuis Molto pour iPad
    De: Test Screen Name
    Envoyé: jeudi, février 12, 2015 10:31 AM
    À: René Allamelle
    Objet:  Why does my exported PDF not look like the original?
    Why does my exported PDF not look like the original?
    created by Test Screen Name in Adobe Acrobat.com Services - View the full discussion
    "Vaguely like" is the best we can hope for and a minor miracle in itself. PDF was never meant to be converted.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7187391#7187391 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7187391#7187391
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Why does ipad has the same ios like the Iphone4s ,it should be different than iphonewhy does ipad has the same ios like the Iphone4s ,it should be different than iphone

    why does ipad has the same ios like the Iphone4s ,it should be different than iphone

    Having one iOS that works across several platforms is one of the advantages of the iOS system. This allows developers to produce one software product instead of several and reduces development time and costs. This is a fundamental difference between iOS and Android operating systems where operating system varieties impede development.

  • Flags and colors not taking (seems like a bug to me)

    I'm seeing a bit of an issue I am not sure I understand.
    I have a folder called
    "creative" with four albums in it:
    1
    2
    3
    4
    If I select all the images in the folder and TAG them and add a ORANGE COLOR these tags and colors show up on all the images in the Folder.
    However, /some/ of the images in some of the folders have images that are showing up without the Orange Color and in some case there are images without the Flag or the Orange Color.
    This is so confusing it seems like a bug to me.
    What am I missing?

    Hi. The first image is where I selected all the images and FLAGGED AND COLORED THEM.
    The next two images show SUB-Albums in this folder where there are images that are either not flagged or not colored...
    http://dl.dropbox.com/u/15285654/all%20colored%20and%20flagged_FOLDER.png
    http://dl.dropbox.com/u/15285654/not%20flagged_ALBUM.png
    http://dl.dropbox.com/u/15285654/not%20colored_ALBUM.png
    Is this something I am not understanding or not doing correctly?
    Thank you!

  • Ipad calander - seems like a bug

    it seems like a bug: a whole day event in ipad calander appears 1 day earlier than the event day.
    Whether the event was generated on MS Outlook and was synchronized to the ipad, and wheater the event was generated on the ipad while not connected to the computer.
    New event which is not a whole day event appears correctly (whether the event was generated on ipad or synchronized).The problem occurs only with a whole day event.

    I've just tried to replicate this on my iPad and it works correctly rather than as you indicate. I believe that if you use mobileme and the birthdays calendar then from memory it either used to or still does add the birthdays a day before the actual date.

  • Why does my mac mini always seem to be running?

    Always seems like the hard drive is running even when I'm not doing anything for a 5-10 minutes? Also the disk that pops up on the screen when it's working seems to be staying on longer and longer. Seem to be having issues about the last 6 mths.... Most the time when I put it to sleep my mini will restart on it's own also? It's about 5 yrs old now and updates automatically. I also have a back up hard drive. Any ideas?
             Tim

    Okay, then maybe try resetting the SMC, here is the link: http://support.apple.com/kb/ht3964
    Find the section that applies to your Mac Mini...Maybe this will help

  • Why does my Creative Cloud stuff look like this? Is that even a language?

    Also, how do I get help at Adobe? They sure make it hard to ask. The forum seems like it just passes the buck to other customers rather than helping themselves.

    The issues are multiple from order payment undergoing to technical error, please contact support for this.
    https://helpx.adobe.com/contact.html
    Regards
    Rajshree

  • Why does my xfce4-panel taskbar look like this?

    Why does one task take up the whole bar? It's so ugly!!

    Ah, so this brings up another aesthetically displeasing trait: Now my panel changes size depending on how many tasks are in my taskbar because I have it set to normal width, rather than full width. Is there any way to force the whole panel to stay at one length?

  • Why does every version of Firefox seem less stable of the version before?

    Firefox used to be the best and most stable browser around, but the last few years I've been noticing major memory leaks that get worse with every update. Simply submitting a crash report from one browser won't make any difference here because I'm not just talking about one computer. An old version of Firefox on my Windows XP desktop is completely stable, but on my windows 7 laptop Firefox will crash 3 or 4 times a day. On my samsung s4 phone and on my Xperia z2 tablet I have the same problem, only it's worse because on those devices is kept up-to-date. At my college they have Firefox installed on instanced sessions of Windows. Basically, the campus sets up the machine once and create an instance of it on all of the computers on campus. Firefox is up to date or just one version behind on any given day and it also crashes constantly.
    There is no particular reason for it either. I could be completely idle and doing nothing and it will crash. Or I can open a new tab and it will crash. Or I could be doing absolutely nothing but reading without touching anything and I will see the screen blink black and then it will crash.
    Whatever you guys did, Internet Explorer is now more stable than Firefox. Oh, that's slow, but at least it won't crash on me several times a day.
    To that typically use multiple devices I am experiencing in excess of 10 crashes of Firefox a loan in any given day and nothing else crashes on any system. I definitely won't be updating Firefox on my desktop, nor on my laptop because at least it doesn't crash as much as on the updated devices, but I like Firefox to be stable again or to know about a stable fork that I can use on my updated devices.

    Hi Elliander, when Firefox crashes, it usually records information about what was happening at that moment. You often will see the Mozilla Crash Reporter dialog come up. You can submit that data to Mozilla and share it with forum volunteers to see whether it points to the solution. Please check the last section of the support article "[[Firefox Crashes]]" for steps to get those crash IDs, and then post some of the recent ones here.
    If you only get the Windows 7 crash dialog, then unfortunately that information might not be available.
    In that case, have you tried Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    ''If Firefox is not running:'' Hold down the Shift key when starting Firefox.
    ''If Firefox is running:'' You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    and OK the restart.
    ''Both scenarios:'' A small dialog should appear. Click "Start in Safe Mode" (''not'' Refresh).
    Any less crashy?
    Also, this is strange:
    Application Name: firefox.exe
    Application Version: 20.0.1.4847
    What version do you actually have?

  • When I open a saved document in pages, then close it right away without making any changes, why does it ask if I would like to save the page or all new info will be lost?

    I have a few saved documents and when I open them to view them quick, sometimes when I close it, I will get asked if I would like to save the document or all my new info will be lost. I didnt change anything so Im not sure why it asks me that. When I open the document again, all the info is there and nothing is different. Thanks

    Unless they were Word documents, Pages has done nothing really, but it is updating date information in the file.
    It is annoying but just ignore it and don't save.
    Peter

  • Why does my 10GB iSCSI setup seem see such high latency and how can I fix it?

    I have a iscsi server setup with the following configuration
    Dell R510
    Perc H700 Raid controller
    Windows Server 2012 R2
    Intel Ethernet X520 10Gb
    12 near line SAS drives
    I have tried both Starwind and the built in Server 2012 iscsi software but see similar results.  I am currently running the latest version of starwinds free
    iscsi server.
    I have connected it to a HP 8212 10Gb port which is also connected via 10Gb to our vmware servers.  I have a dedicated vlan just for iscsi and have enabled
    jumbo frames on the vlan.
    I frequently see very high latency on my iscsi storage.  So much so that it can timeout or hang vmware.  I am not sure why.  I can run IOmeter and
    get some pretty decent results.
    I am trying to determine why I see such high latency 100'ms.  It doesn't seem to always happen, but several times throughout the day, vmware is complaining
    about the latency of the datastore.  I have a 10Gb iscsi connection between the servers.  I wouldn't expect the disks to be able to max that out.  The highest I could see when running IO meter was around 5Gb.  I also don't see much load
    at all on the iscsi server when I see the high latency.  It seems network related, but I am not sure what settings I could check.  The 10Gb connect should be plenty as I said and it is no where near maxing that out.
    Any thoughts about any configuration changes I could make to my vmware enviroment, network card settings or any ideas on where I can troubleshoot this.  I
    am not able to find what is causing it.  I reference this document and for changes to my iscsi settings 
    http://en.community.dell.com/techcenter/extras/m/white_papers/20403565.aspx
    Thank you for your time.

    I have a iscsi server setup with the following configuration
    Dell R510
    Perc H700 Raid controller
    Windows Server 2012 R2
    Intel Ethernet X520 10Gb
    12 near line SAS drives
    I have tried both Starwind and the built in Server 2012 iscsi software but see similar results.  I am currently running the latest version of starwinds free
    iscsi server.
    I have connected it to a HP 8212 10Gb port which is also connected via 10Gb to our vmware servers.  I have a dedicated vlan just for iscsi and have enabled
    jumbo frames on the vlan.
    I frequently see very high latency on my iscsi storage.  So much so that it can timeout or hang vmware.  I am not sure why.  I can run IOmeter and
    get some pretty decent results.
    I am trying to determine why I see such high latency 100'ms.  It doesn't seem to always happen, but several times throughout the day, vmware is complaining
    about the latency of the datastore.  I have a 10Gb iscsi connection between the servers.  I wouldn't expect the disks to be able to max that out.  The highest I could see when running IO meter was around 5Gb.  I also don't see much load
    at all on the iscsi server when I see the high latency.  It seems network related, but I am not sure what settings I could check.  The 10Gb connect should be plenty as I said and it is no where near maxing that out.
    Any thoughts about any configuration changes I could make to my vmware enviroment, network card settings or any ideas on where I can troubleshoot this.  I
    am not able to find what is causing it.  I reference this document and for changes to my iscsi settings 
    http://en.community.dell.com/techcenter/extras/m/white_papers/20403565.aspx
    Thank you for your time.
    If both StarWind and MSFT target show the same numbers I can guess it's network configuration issue. Anything higher then 30 ms is a nightmare :( Did you properly tune your network stacks? What numbers (x-put and latency) you get for raw TCP numbers (NTtcp
    and Iperf are handy to show)?
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Why does the PhotoSmart C8180 light up like a Christmas tree with flashing lights? HP - need help!

    Why - HP we need an answer.

    Hi Flyers1974,
    Are you getting an error message or code on the printer ?
    What operating system are you using ?
    Does it always do this or just a certain times ?
    You may first want to try and reset the printer if you haven't already.
    Here is the link to do a reset.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Why does my Macbook Pro heat up like an iron while 'sleeping'?

    I've seen this question asked repeatedly. It seems that others are pretty upset too about paying for the best laptop on the market, and being let down by more than one such issue. I have also seen the replies here suggesting that the problem lies with their CPU being overworked by processor intensive programs.
    Really? That's a satisfactory answer, that Apple is proud to provide? Apple's finest machine to date can't multitask anymore?
    This does not address the issue. First, the machine is 'sleeping' - not processing. Second, I am a designer, musician and programmer - spending eight hours a day for twenty five years on Apple devices. Not a single machine ever reached heat levels that I could literally iron my sheets with. Especially not after being closed and left to 'sleep'.
    The volume of people that are reporting this issue (while being told that their CPU is over worked...) means it's a real one, and real answers ought to be provided.

    I contacted Apple Support on this and they have raised a case to monitor my problem, whilst also offering the following plausible explanation and suggested solution to try in the meantime:
    The suggestion is that if the machine is left out on the desk for a period (i.e. not insulated and horizontal) after use, then it should not get hot.
    Unlike my old white Macbook, the aluminium body is the heatsink. If I use it for a period and then, as I have done, simply close it and put it in an insulated bag, in a vertical position, then the latent heat will build up in the heatsink / body of the machine.
    Will give it a try.
    Steve

  • Why does my firefox intermittently (and seemingly randomly) behave as though my control key is stuck on, even though my keyboard behaves normally in every other program? AND it will also randomly change my keyboard mapping to an international one.

    I will be using firefox, and for some reason, it behaves as though control key is being held down. If i use the mouse wheel, the page zooms. If I press the letter 'o', the "Open file..." dialog opens. But I'm not holding control. If, while this is happening, I switch to another application like Notepad, it behaves normally. But then I'll go back to firefox and the problem is still there. It seems to randomly start and stop.
    Also, in a possibly related problem, my keyboard mapping will change from my default US to some other foreign mapping where shift-6 incorrectly outputs '?' instead of '^', for example.

    I will be using firefox, and for some reason, it behaves as though control key is being held down. If i use the mouse wheel, the page zooms. If I press the letter 'o', the "Open file..." dialog opens. But I'm not holding control. If, while this is happening, I switch to another application like Notepad, it behaves normally. But then I'll go back to firefox and the problem is still there. It seems to randomly start and stop.
    Also, in a possibly related problem, my keyboard mapping will change from my default US to some other foreign mapping where shift-6 incorrectly outputs '?' instead of '^', for example.

Maybe you are looking for

  • Decimal Separator in SELECT Clause

    Hi I have the following decimal format parameters: SQL> select value 2 from v$nls_parameters 3 where parameter = 'NLS_NUMERIC_CHARACTERS'; VALUE If I show a number with decimal I get a comma as the decimal separator SQL> select 10/100 from dual; 10/1

  • Issues with POWL action buttons and row selection after Support Packs

    We recently applied ECC 603 Support Stack 16 to our environment and are having problems with some SAP standard POWL lists (example is KYKOP-OPS-MM-PO-W: Purchase Orders for Goods Receipt).  In fact all of the POWL lists that we are using are behaving

  • Out of memory error in Netscape 4.72

    Hi, Netscape 4.72 throws OutofMemoryError, where as IE5 works fine for the same applet. Is there any way to increase the Heap size in Netscape Communi. 4.72. Thanks in advance, Mahesh

  • Up graded to windows 7 need my apps in new itunes

    I installed windows 7 on my computer is there anyway to get all the stuff i had in my old itunes to transfer to my new itunes. i backed up everything on old hard drive. i want all my apps that were on the old itunes on my new one.

  • One inspection lot

    Hi Guru, How to create one inspection lot for one production order. regards, Rakesh Patel