Strange read after work entry processor operation of

Hello.
We use the listener of combination cache - processor of entry to certain actions when the data comes from coherence. We use Version consistency Oracle 3.5.3/465.

Just after the entry processor has defined the new value for the entry, the new 'get' operation is called for the cache and jdbc hit is for this key.

Here's the entry processor:
public Object process(Entry entry) {        
        if (!entry.isPresent()) {
            // No entities exist for this CoreMatchingString - creating new Matching unit
            MatchingUnit newUnit = new MatchingUnit(newTrade);
            entry.setValue(newUnit, true);
            
            return null;
        }

        ((MatchingUnit)entry.getValue()).processMatching(newTrade);

        return null;
    }
Very interesting, that if I use entry.setValue (value) without second parameter - I get the db hit right on the setValue method. According to the docs, setValue() with a parameter returns the previous value and its logic, that the cache hit (and therefore the PB hit) is right on the tray. But I use the overloaded version Sub setValue (java.lang.Object evaluating, boolean fSynthetic), which is supposed to be light and should not seek a previous version of the object. But this is done in any case! Not on SetValue himself, but just after the process() method called.

It's strange, that consistency is trying to retrieve the previous value in the present case, that there was no! The cache.invoke (matchingStr, CCPEntryProcessor (ccp)) new is called on the record not exist and it is created right on the invocation. Maybe it's the bug or the place for optimization.

Thank you

BITEC wrote:
Thank you, Robert, for this detailed response.

Still not clear to me why the synthetic inserts are questionable. There are many cases, when the client simply updates/inserts recording (using setValue()) and don't don't don't need to receive the previous value. If he needs to, he will launch the method:

Hi Anton,.

It is questionable because the purpose of the indicator fSynthetic is NOT that you can optimize a store operation hidden far. Synthetic event means that it is not a real change in the whole of data triggered by the user, it's something that consistency has made in terms of support / cover for its own reasons and decisions to be able to provide high availability for data, and it only changes of subset of this particular node of data consistency but has no meaning associated with the full data set that actually exists. These reasons are movement partition and expulsion of cache (or possibly other reasons why consistency would like to change the content of the carrier sheet without telling the user that nothing has changed).

If you set the indicator, you attempt a change of data of masquerade as an event whose consistency has decided to trigger. It is questionable. Also, events map synthetic support may not always lead to the expedition to cache events (for partition rebalance they certainly not). This optimization can also be extended to cover synthetic events.

java.lang.Object setValue(java.lang.Object oValue)

and receive the previous value. If it does not, it calls:

void setValue(java.lang.Object oValue, boolean fSynthetic)

and does not receive the previous value as method is marked as void. Thus, he cannot get the previous value in any case using this API, with the exception of the call live db manual.

Yes, because the consistency is not interested in the old value in the case of a synthetic event. Synthesis methods exist so that some entry can be changed to coherence (usually by coherence itself) so that it indicates a synthetic event so that listeners are unaware.

Some valid uses for this type of feature to setValue called by user code could be compaction value set caching and replacing the value that stores the support plan by the representation in compact, which does not mean a change in the sense of the actual cached value, only the changes to the representation. Of course if the setValue method (2) is not actually honoring the synthetic indicator, then such a feature will still commit all costs of a call normal setValue (1).

But the previous value is in any case read by coherence itself, just after process() and the customer anyway is not get it!

But all the headphones on the cache may have because of the cache of the semantic reasons.

In this case, I consider that the bug, the cause of the client, which uses this API does not cache hit to take place (no return value for the setValue() method not overloaded), but it takes and leads to additional problems, as a result of reading through mechanizm.

I'd not considered to be a bug, it's probably the case documenting a possible optimization too early, when it ultimately does not get put in place. I certainly wouldn't try to abuse it to set a value without triggering a db extraction, as again, the intention of the synthetic indicator is related not only to the cache loader functionality, but also to events and marking a change indicates a change of actual data or a data consistency management action.

Now I understand why consistency is unclear, if this is inserted or updated, thanks for details value.

Anton.

* Edition: I thought this problem from the point of the oracle user, but perhaps this additional success is necessary for event producers, who must take the events that contain old/new values. In this case, this seems to be the correct behavior... Seems I need some another workaround to avoid the blow of db. The best solution is the empty load() for dumps...

You can try to find a solution, but it's a ugly Pandora's box, because of the scenario when multiple threads try to load the same entry, and some of them try to load it with the reason.

You can try putting a thread local data to indicate that you want really load that special touch. The problem is that depending on the configuration and conditions of race as your cache loader may not be called to clean up local thread as another thread can only be invoked now, and in this case its return value will be returned to all other threads, too, then you can end up with a polluted thread.

Best regards

Robert

Published by: robvarga on October 15, 2010 16:25

Tags: Fusion Middleware

Similar Questions

  • Pavilion dv6: fingerprint reader not working after update to Windows 10

    Hello

    Recently, after the update to Windows 10 fingerprint reader works just on my Pavilion dv6. I tried other methods I found on the forum, and I'm looking for a driver get the fingerprinter reader to work. I tried to download HP SimplePass (which has been removed from my PC by updating the operating system) in the hope he would get my fingerprint reader to work, but no luck.  I also looked in the settings (in Device Manager) for biomeric devices, and I found a driver with an exclamation point, indicating it wouldn't work. So, right now, I need a solution to get my to work on a fingerprint reader.

    Thank you

    Nathalie

    Hello @Nikil1503,

    I don't know that if you follow exactly the documents there will be no problems. It will be a good learning experience!

    After the return to let me and the community to know how it goes.

    You're welcome, have a great day!

  • After an update the operation of my account PRO to Acrobat DC disappeared and it works as if it were a FREE standard version. So I disinstalled it and tried to install it but when I install the Setup program fails. So I'm not able to install it more. What

    After an update the operation of my account PRO to Acrobat DC disappeared and it works as if it were a FREE standard version. So I disinstalled it and tried to install it but when I install the Setup program fails. So I'm not able to install it more. What can I do?

    When I opened my creative cloud I see nothing!

    Please see these troubleshooting FAQ:

    FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

    FAQ: What should I do if I get a blank white screen, spinning wheel, or my CC application does not open?

    FAQ: What should I do if I have trouble to download or install the creative cloud and Creative Cloud Apps?

  • Message "this application will not work in this operating system" at the start.

    Original title: this application will not work in this operating system

    After starting, I get this error message:

    Stop: this application will not work in this operating system

    What application is this? How can I fix? I am running XP SP3

    CZFMDXPK c:\program files\fdd + fever disease combo reader\czfmdxpk.exe a the culpit. The problem is resolved and no Malware found. eventvwr helped me identify other problems, and now I'm curious on how to disable the stubborn programs in msconfig. I'll get.

    You did a great job and thank you very much. Have a beautiful weekend. Rainer

  • My camera Olympus only works with Apple's Quick Time 7. Is it possible to make it work with my operating system from Windows XP?

    My camera Olympus only works with Apple's Quick Time 7.  Is it possible to make it work with my operating system from Windows XP?

    Apple QuickTime 7 works is because. MOV is the Apple
    QuickTime format.

    QuickTime. MOV files can cause problems with Windows Media Player.
    And... If you plan to try editing with Movie Maker... the files should
    be converted to the. WMV format.

    No guarantee, but the following decoder might allow Windows Media
    Reader to read your. MOV files. Only problem is... it is not freeware to retail.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    3ivx MPEG-4 5.0.4 decoder
    http://store.3ivx.com/3ivxStore/product_details.php?ID=11

    Convert the. MOV files to the. WMV format may be worth a try:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck

  • Why the entry processor implements PortableObject

    Hi all:
    I've been reading 'Oracle Coherence 3.5' Aleksandar Seovic and processor of entry of learning. I noticed that, in his example on EntryProcessor, the test class implements POFObject. That bring up a few questions:

    1. Why is must a processor of entry class implement PortableObject?
    2. how to override the readExternal/writeExternal methods methods - given the fact that we need not have instance members in this class?
    3. how to apply the processor to enter test code?

    I did my own experiement:

    -first of all, I've implemented readExternal/writeExternal in this way methods:
         @Override
         public void readExternal(PofReader reader) throws IOException {
              reader.readRemainder();
         }
    
         @Override
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeRemainder(null);
         }
    The test code throws the exception as:
    (Wrapped) java.io.IOException: (Wrapped) user type POF stream terminated
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
    ....
    After I commented on the body of readExternal/writeExternal, no error methods, not more, but this is not the method of 'process' is entered. That's how I used the class:
    EntryProcessor agent = new TestProcessor();
    cache.invokeAll(filter, agent)
    Please advise, thank you!
    John

    1. because entry processor will run on the other node of storage which can and will be on different Java virtual machines.
    2. If you do not need to carry additional information, your methods, writeExternal and readExternal can be just a dummy method, I thought. readReminder/writeReminder bad not that used to the PofSerializer inside PortableObject.

    3. it might be your logical filter end with no entry matching your filter so no entryprocess got inovked at all.

  • Automatically Mark message as read after reading

    Initially by email worked correctly, but somehow I failed and may not know how to reset the e-mail to mark "read" AFTER that I read it.

    Review your settings in OPTIONS - DISPLAY - ADVANCED.

  • Fingerprint reader not working not

    HI, I just recently to upgread my laptop operating system from windows 7 to Windows 8.

    Everything works well except for my fingerprint reader, his work not at all.

    I had downloaded and installed all the drivers from the Web site below, but it still does not.

    Can you help me solve this problem?

    Product name: HP Pavilion dv7 Notebook PC

    Product number: A3V80PA #UUF

    Current OS: Windows 8 Pro 64-bit

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4132 & LC = on & CC = US & DLC = in & sw_lang = & Product = 5207...

    Press the Windows key + X and select Device Manager. Under biometrics, fingerprint reader not appear without one? or one! icon next to him?

    You mentioned that you have installed the driver. Did you also install the program SimplePass found on the link below? I saw a version of Windows 8 for the unit, but the version of Windows 7 can work. If the version of Windows 7 does not work, try right-clicking on the SimplePass program and select troubleshoot compatibility mode to see if it gets it to work.

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-103162-1 & CC = US & DLC = in & LC = on & os = 4063 & Product = 5207968 & sw_lang =

  • Portege R830: don't seem to be able to get the fingerprint reader to work

    HI - need help.

    I have a Toshiba R830 I got "downgrade" to Windows 7 32 bit version pre-installed 64-bit. Long story - but it's the software compatibility.

    Despite the download and the installation of what I think is all the relvant 32 drivers - I don't seem to be able to get the fingerprint reader to work.

    I downloaded and installed the software fp-sw-201103311304 Tosh - chilled out and tried to install it.

    It's actually hard to know if it is installed! I get a window telling me it will extract the file in a directory C:\temp and tells me at the same time that 'tinstallwb.exe' will start once the extraction is complete.

    It seems to extract - but I do not see that the installation is happening.

    Subsequently it is has that nothing listed in the title of the programs - and nothing "launches."

    In Device Manager - I can't see anything that is listed as "fingerprint reader" under security features - the list is TPM 1.2. Not actually sure that is nothing to do with the fingerprint reader - well I've enabled and then disabled via the BIOS.

    Am I missing something?
    Could the reader [which I have not used since the new - even if it's only 8 weeks] have stopped working?

    Would be very grateful for pointers.

    Try to start the installation manually. On the desktop create a folder unpack and after doing the beginning downloaded exe. Extract the files to the folder unpack and disable command run after extraction.

    When files are checked almost open and Toshiba archive extracted file extractor. You will find setup.exe.
    Try please to start it manually.

  • Satellite P200 made strange noises after the closure of music

    I have a Satellite P200 and flash cards do not respond and when I ve played music.
    The computer makes strange noises after the closure of music?

    Help me please!
    friend Wendy

    Hello Wendy

    Please don't get me wrong, but it's not easy to understand the problem that is described in your ad.
    I have the same model of laptop and everything works fine. I listen to music every day on Windows media player (mp3s) or radio listening online using the Winamp player.

    At the same time, I can use flash cards.

    What about strange noises? Who knows what you mean exactly and how us need to understand that?
    If please be so kind and explain exactly what you do and what kind of sounds you can hear.

  • deterministic segfault in DAQmx libs after 49 days of operations with 6110 OR Linux

    I have a program using a 6110 Council OR through 8.04 DAQmx Linux (Suse 11) of 32 bits. After 49 days of operation at 1 MHz (during which the program sometimes stopped and restarted), a segmentation fault occurs inside certain DAQmx libs, as follows:

     kernel: [4286583.578738] nimxs [940]: Segfault at 11 0053af14 sp 017d00a0 error ip 6 to libnidsadd.so [587000 + 37000]

    or

     kernel: [4286589.134512] nimxs [1134]: Segfault at 11 00561f14 sp 015970a 0 error ip 6 to libmxssvr.so [50d000 + 99000]

    It happened 4 times on two different machines, each time with the same availability of machine.

    After the segmentation fault, the cards can no longer be used and are not displayed in nilsdev.

    Is this a known problem of DAQmx on linux and is there a way to recover the other than restart error machine?

    ... and finally:

    before doing what I did in my last post (stopping services and unloading nation, then by restarting the services), restart the nimxs daemon with

    / usr/local/natinst/Max/sbin/nimxs /usr/local/natinst/max/libmxssvr.so

    does everything works again.

    (if the daemon restarts after modules are reloaded, cards OR do not appear with nilsdev but can not be used).

  • Microsoft Works word processor

    I created a document in the Works word processor and then attached to an e-mail message. The problem is I can't open the attachment and I get a message saying: it may not be opened/not recognized etc...

    Is there a way I can copy and paste this document directly on an email?

    You access AOL using a web browser or an email client?  If an e-mail client, which?  How are you trying to send a file?  What happens when you try?  Tell us what "cannot open" means exactly and after the complete and original of the error text that you receive.

    Because you created the document, open it in Works, and then press Ctrl + A to select all the text, press Ctrl + C to copy the selection, and then open an e-mail message, click in the body of the message and press Ctrl + V to paste the selection in the message.

  • Cannot get my usb card reader to work because I plugged my new wireless broadband

    HI MY PLUG-AND-PLAY DIRECTED BY ABC PRODUCTS USB CARD READER WAS WORKING UNTIL WEEK LAST I CHANGED MY CONNECTION TO BROADBAND CABLE TO CONNECT NEW WIRELESS I UNPLUGGED AND REPLUGED INSIDE BUT STILL DOES NOT?

    JOHN SOON

    Hi John,.

    1 Windows operating system you are using?

    2 are you facing issue with other devices usb also?

    You can read the following article and try to run the material Fixit and see if it helps.

    Hardware devices do not work or are not detected in Windows

    Hope this information is useful.

  • strange slowdown after the updates today

    Hello-
    noticed a strange delay after the system starts. The system booted and the office appeared in a timely way (30-40 seconds)
    as he always does.  I uninstalled my antivirus while this problem.  (Avast from Add/Remove programs
    and usefulness clear for good measure).

    Here's what's happening.  AprΦs dΘmarrage, logon and the desktop appears, the warning that no AV is installed
    (from Security Center?) takes a full 90 seconds for it to appear.   In addition, during those 90 seconds, Outlook Express cannot
    to complete it's search for new messages and a manual to open the Security Center fails.

    After 90 seconds, everything started to work... Is something delay?  Certain services having a problem starting?
    Thanks in advance for any help.

    Dave

    EDIT - I investigated further after that I posted above.
    Apparently, this problem is caused by the Microsoft.Net Framework 4.
    Open the CMD prompt, navigate to \WINDOWS\Microsoft.NET\Framework\v4.0.30319
    and by running the command
    NGEN executequeueditems
    the system spends ten minutes compiling some objects.
    Finally, you get a message saying that 'all compilation targets are up-to-date.

    Rebooted the system and startup is back to normal. Access to the network and the opening of
    Delays in Security Center disappeared.

    Hello

    I'm happy to hear that you were able to solve the problem and thanks for letting us share the resolution. Let us know if face you any problems with Windows in the future.

  • Unable to read the work recorded, timeline is black and shortcuts

    Unable to read the work recorded.

    I started doing a few words with a song. It was not full yet so I recorded it. After a while, I returned to continue, but the timeline would not play. The video section containing the words of the timeline was black and shortened. I waited until the next day and it still the same. I tried to re-do and its not black or shortened, but the timeline would not play with or without music. Please I need help with this!

    Hello

    1. what application you're using to play the video?

    2. you receive an error message when you try to play the video?

    You can try to recreate and save the film.

    Reference:

    Demo: Create a slide show with music in Windows Movie Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/demo-create-a-slide-show-with-music-in-Windows-Movie-Maker

    Create movie customized for Windows Movie Maker settings

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-custom-movie-settings-for-Windows-Movie-Maker

    To save a movie in Windows Movie Maker, click the link below.

    Publish a movie in Windows Movie Maker

    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

Maybe you are looking for