Processing Pattern task runs multiple times

I am trying out the processing pattern with some long running tasks.
The tasks are submitted by the first node in the cluster to start up. I seem to see multiple copies of my task running as I start up other nodes in the cluster. It would appear that as the new nodes join the cluster Coherence migrates the submission entry to another node and this causes the task to start again on that node. This is OK, but it does not stop the task that was already running on the original node.
Am I doing something wrong or is the because my tasks are long running (actually they never end).
JK

Jonathan,
With the current implementation you do get a rescheduling of the Task, but if it is already owned by another node it should not actually start executing (checked by the TaskRunner). This behavior doesn't really work reliably in both the failover and repartioning cases why we are revamping this in the next release. The JIRA for the revamping of this behavior is INC-262.
Thanks,
Christer

Similar Messages

  • JOB in Sql Server Agent should run multiple times.

    Hi Guys,
    I have a ETL SSIS job in Sql Server Agent, Which should run multiple times.
     1. For Example : I scheduled a job at 10:00 PM, If the job fails at 10:00 PM it should run automatically again at 10:10 PM, if the job fails again at 10:10 PM then the job should run at 10:40 PM.
    If the job gets success at first attempt i.e 10:00 PM, then it should not run at 10:10 PM.
    Note : The time difference between jobs is 10 minutes and 30 minutes. And i know that we can run the job at regular intervals.
    Thanks in advance

    Just add retry attempts to whatever number you want (2 as per your original explanation) in Job step properties as below
    Have a logic to include a delay of 10 mins . You can make use of WAITFOR function for that
    see
    http://www.mssqltips.com/sqlservertip/1423/create-delays-in-sql-server-processes-to-mimic-user-input/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Upload client data to task server multiple times in same day

    I am just getting started setting up the task server piece of ARD. My task server is an Xserve(PowerPC 10.4) and my client computers are mostly eMacs running 10.4. My client computers are all running Deep Freeze by Faronics which causes the hard drive to be restored to it's original state after a restart.
    My question is - where does the report information about the client computer get stored before it is uploaded to the task server. Is it cached on the local client machine? My concern is that if the client computers don't upload their data until the end of the day and a student restarts a computer during the day we won't have a whole day of data recorded for that machine.
    If this is the case, is there any way to upload the data to the task server multiple times in the same day?
    Thanks!

    I am collecting User History and Application Usage. Where is the cache stored - on the local client machine or on the task server? If it's stored on the local machine and one of the students restarts the computer the data will be gone because of the Deep Freeze program. That's why I'm trying to figure out a way to upload the data multiple times throughout the day.
    I'm hoping that the data is cached on the task server so that I don't have to try to upload multiple times.

  • Lightroom 4.2 Win 7 64-bit  -have to kill process in Task Manager every time or can't launch

    Lightroom 4.2 Win 7 64-bit  -have to kill process in Task Manager every time or can't launch Lightroom.   This seems like a bug?  Any suggestions?

    Does sound like a bug. Consider reporting to Adobe:
    http://feedback.photoshop.com/photoshop_family/topics/new
    In the mean time, I only have workarounds like start using a batch file.
    Something is hanging it up upon exit, but I dont know what. Maybe a device or process/service? - did you try removing non-essentials? Check windows logs?
    Rob

  • Process request method executing multiple times issue

    Hi ALL,
    In my controller code , process request method is executing multiple times and inserting multiple data into the table, can any body help me how to resolve this issue.
    I have the below code in my process request:
    OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
         am.invokeMethod("InsertRecord",null);
         OAMessageLovInputBean oalovinputbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("ccustatus") ;
         oalovinputbean.setValue(pageContext,"INPROGRESS");
         String userName = pageContext.getUserName();
          System.out.println("User NAme is :" + userName);
          OAMessageTextInputBean pUserId = (OAMessageTextInputBean)webBean.findChildRecursive("item32");
          pUserId.setValue(pageContext,userName);
          OAMessageTextInputBean pchangedby =  (OAMessageTextInputBean)webBean.findChildRecursive("item34");
          pchangedby.setValue(pageContext,userName);
          if((("on").equals(pageContext.getParameter("rrchkbox"))))
                  String whereclause1=(String)pageContext.getTransactionValue("whereclause");
                  String workordnum=(String)pageContext.getTransactionValue("workordnum");
                  String rrnum =(String)pageContext.getTransactionValue("rrnum");
                  String ponum =(String)pageContext.getTransactionValue("ponum");
                  System.out.println("whereclause test1"+whereclause1);
                  String status=pageContext.getParameter("ccustatus");
                  System.out.println("DEBENDRA LINE STATUS:" + status);
                  Serializable param[] = {whereclause1,workordnum,rrnum,ponum};        
                           // am.invokeMethod("getSearchData1",param);
                           // am.invokeMethod("checkSelectedrow",param);       
                 Serializable vcnt =  am.invokeMethod("processPOData",param);  
    Below code written in AM:
    public void InsertRecord()
            XXDPECONTAINERVOImpl vo = getXXDPECONTAINERVO1();
            vo.setMaxFetchSize(0);
            XXDPECONTAINERVORowImpl row = (XXDPECONTAINERVORowImpl)vo.createRow();
            oracle.jbo.domain.Number empNum = (oracle.jbo.domain.Number)getOADBTransaction().getSequenceValue("XXDPE_CONTAIN_SEQ");
            row.setContainerizationId(empNum);
            vo.insertRow(row);
            row.setNewRowState(row.STATUS_INITIALIZED);
    Please help me out.

    hi,
    PR() will be called whenever your page will load, so the number of times you will load your page all the time your PR will be called and it will call the AM method.
    otherwise put some condition and call the insert method from your PR.
    Regards
    Mahesh

  • Stored proceadure is running  multiple times from crystal..Urgent...

    Hi friends,
    I am running the stored proceadure from crystal report. And it is executing two or three times. I can come to know through debug points which i placed in sotered proc.
    It is very urgent...any help is appreciated.
    Thanks,
    Vijay

    I am having the same issue.  I have a very simple XI crystal report that calls a stored procedure. I have checked the report option you mentioned - it is not checked and i have removed all subreports to take away any question about them.  It is still calling the procedure multiple times.
    My oracle stored procedure is getting executed THREE times in one run of my crystal report!
    I have created a crystal report based on a Oracle stored procedure and ODBC driver.  This report is published on a Business Objects Server XI Release 2. 
    In trying to figure out why the report was having efficiency issues, I have modified the procedure to write to another table so I can see what is happening in the report.  After executing the crystal report, I found that the procedure is called THREE times.  Here is the output from the table that I write to after the Crystal Report is executed from Enterprise:
               0 DEBUG - 28-JUL-2008:09:43:50: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:52: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:52: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:52: Right before opening Cursor
               0 DEBUG - 28-JUL-2008:09:43:53: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:55: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:55: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:55: Right before opening Cursor
               0 DEBUG - 28-JUL-2008:09:43:56: Starting STPR
             100 DEBUG - 28-JUL-2008:09:43:58: Done with 1
             240 DEBUG - 28-JUL-2008:09:43:58: End Program - Right after opening Cursor
             240 DEBUG - 28-JUL-2008:09:43:58: Right before opening Cursor
    When calling the report directly in Crystal, I get mixed results, sometimes it is the same, sometimes the procedure is called once but I see debug lines for the first two of the four rows in the second call and sometimes it is only called once. 
    Is there something that can make sure the procedure is called once and only once.  We are running into database efficiencies.
    Thanks!

  • Object serialized many times - code in finalizer runs multiple times

              Using on Solaris:
              Weblogic Version 5.1 sp 8
              JDK version: java full version "1.3.0-RC"
              Clustering with:
              weblogic.httpd.session.persistentStoreType=replicated
              I have an object that stores information in a linkedList member.
              The first time a user passes through a servlet, one of these
              objects is created for them. It is stored in session.
              The object implements serializeable. Upon finalization, this
              object is supposed to flush its data once and only once to a log file.
              The object's constructor runs once. It is set and retrieved once from HttpSession.
              As WebLogic shuts down, the object is then serialized and deserialized many times.
              The finalizer of this object then runs many times as weblogic shuts down (17 or
              so times), duplicating the logging of the information
              each time. Each time, doing a this.toString() in the finalizer prints out a different
              object reference.
              I tried setting and incrementing both a static and
              instance level variable and printing them out during finalization. The static
              class variable gets incremented as you would expect, the non-static instance variable
              is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              between the instances at the non-static level.
              We are using clustering (though only one app server was running during the test),
              JSPs, servlets, etc.
              We need to have the finalizer for each original instance of the object execute
              its logging functionality once and only once regardless of serialization/deserialization.
              Any ideas as to how this can be done or another place to put the logging code
              so it will be executed after a user session ends?
              Thanks!
              Peter
              

    Using finalization is a very bad idea, both from the performance and program
              correctness points of view.
              I think you can look into using javax.servlet.http.SessionBindingListener
              (valueUnbound(event) will be called when object is unbound from the
              HttpSession) instead.
              Peter Gluck <[email protected]> wrote:
              > ---------------------------
              > Using on Solaris:
              > Weblogic Version 5.1 sp 8
              > JDK version: java full version "1.3.0-RC"
              > Clustering with:
              > weblogic.httpd.session.persistentStoreType=replicated
              > -------------------------
              > I have an object that stores information in a linkedList member.
              > The first time a user passes through a servlet, one of these
              > objects is created for them. It is stored in session.
              > The object implements serializeable. Upon finalization, this
              > object is supposed to flush its data once and only once to a log file.
              > The object's constructor runs once. It is set and retrieved once from HttpSession.
              > As WebLogic shuts down, the object is then serialized and deserialized many times.
              > The finalizer of this object then runs many times as weblogic shuts down (17 or
              > so times), duplicating the logging of the information
              > each time. Each time, doing a this.toString() in the finalizer prints out a different
              > object reference.
              > I tried setting and incrementing both a static and
              > instance level variable and printing them out during finalization. The static
              > class variable gets incremented as you would expect, the non-static instance variable
              > is always incremented from 0 to 1 each time a finalizer runs. So there is no linkage
              > between the instances at the non-static level.
              > We are using clustering (though only one app server was running during the test),
              > JSPs, servlets, etc.
              > We need to have the finalizer for each original instance of the object execute
              > its logging functionality once and only once regardless of serialization/deserialization.
              > Any ideas as to how this can be done or another place to put the logging code
              > so it will be executed after a user session ends?
              > Thanks!
              > Peter
              Dimitri
              

  • Command runs multiple times

    I'm using CR 11.  I have a report with one command.  This command provides the data for the report detail, but it is also used as the source for 3 LOVs for filtering.
    The issue I have is this:  The report takes to long to generate.  When I monitored the database activity, it looks like the command runs 4 times for each run of the report.  I would have expected that the command needs to run just once, since it returns the same data each time.
    Is this behavior normal?  If not, is there a workaround?

    As I said, LOV's are subreports and each subreport makes it's own connection. If you have BOE when saving a report with an LOV it saves the LOV as a subreport, you can then run the subreport to prepopulate the List.
    Using a Cascading Parameter will do exactly what you are doing.... First parameter is the Country, which then filters the cities in that Country and then after selecting the City it filters the on the zipcode....
    Actually you would want to add the State/Province in there also....
    There is a sample report on your hard drive called Prompting or get if from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100005852352008E/cr_xi_xtreme_rep_smpl_en.zip
    It shows you how to use Cascading parameters
    Don

  • Cisco Agent Desktop software running multiple times in Task Manager

    Has anyone seen an issue with Cisco Agent Desktop v 6.6(1) where after closing the program completely it stays running in Windows Task Manager. We have the Agent software installed on 8 PCs and only one of them is having this happen to them. One time the PC had 15 instances of Agent.exe running in Task manager. A reboot of the PC corrected the issue, however when the issue does happen her chat box within the Agent software shows as Initializing and the agent's name appears and reappears on the Supervisor Desktop software.
    If anyone needs any other info as to the versions we're using or anything else please let me know. I have searched all over the net for a solution and haven't found anything. My next step is to do a TAC case, but I wanted to post something here to see what responses I got.
    Thanks,
    Nick

    Hi Nick,
    Check this bug:
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtd75811
    Multiple Agent.exe Instances Created Causing CAD Agent to Disappear.
    Regards
    Gurpreet

  • Report runs multiple times (from jsp) - on server

    Hi
    I have rdf reports deployed on the server and when i run them through the jsp, I see that it goes to rwservlet three times. Can anyone put a light into this as to what might be going on?
    Thx!

    what's your url?

  • How to prevent an application for running multiple times

    I have to prevent launching my java application more than once. i.e. if the application is launched and the user tries to launch again, it should simply display an error msg and quit.
    I tried using java.util.Prefs but it does not help the cleanup does not occur in case of an abnormal termination. (The Runtime.addShutdownHook does not help as well). Please help asap.

    Sir,
    Have you tried forum search feature?
    "One Application instance" problem has been asked and answered many many time here - and he is easily solved.
    Simple solution is to use resource which is cleaned up my operating system for you when application terminates.
    This way, resource is released whether application terminates nicely or from nasty crash.
    Mr ServerSocket is someone who could help you out here.
    When application starts, attempt to listen on a ServerSocket on a well-known port (e.g either hard coded in to, or configured for your app).
    Leave ServerSocket listening for duration of application.
    If another application instance tries to start on same box, it will not be able to listen on same ServerSocket port - and you can close the app.
    In general, try searching before posting: Most questions have been answered many times before - and you'll probably get an answer quicker by searching first than by posting straight out.

  • Running Ecatt script multiple times

    I have created a ecatt script for ME21N. I need the script to run multiple times.So,i have used Do Enddo statement and put the number of times to be executed.
    The script is running fine for the first time. then its not running. From the second time,its putting blank values into the fields and not saving the data.
    How can i run the script multiple times.
    Thanks,
    Aparna.

    Hello,
    When you run the script multiple time then you will have to pass different values to the fields so that every time the script is run with new set of values and the data is created.
    So in the script you will have to parameterize the fields and then handle the position of the fields so that when the script is run for the first loop counter the data is maintained in the first line of the transaction(for example) and the increament the counter for the second run so that the control moves to the second line for the second execution similarly for the multiple runs.
    Alternatively parameterize the fields with the table containing so many entries as the number of times you want to run the script and for each execution one set of entry from the table is picked and used in the execution for the next run the second set of values is used and so and so forth.
    Hope it answers your question.
    Thanks and Best regards,
    Ajay

  • For each loop container executing multiple times....

    Hi,
    We are using SQL SERVER version 2005.
    I am having a For each loop container and inside that container there are multiple Sequence containers and inside each sequence containers there are Execute SQL Tasks (which are just stored procedures).
    Now, when i run sequence containers individually they are running perfectly fine.
    But when I run the whole For each loop container, it is just running and running multiple times without ending the process.
    I really couldnt figure out what would be the issue?
    Any ideas????
    Thanks....

    Hi grk666,
    To check whether the values stored in the object type variable are correct, you can disable all the Sequence Containers within the Foreach Loop Container, and add a Script Task with the following code to display the string type variable value (supposing
    you use the string type variable StrVar to store the value retrieved from the object variable):
    MsgBox(Dts.Variables(“StrVar”).Value.ToString())
    It would be helpful if you could post a screenshot to show the package execution at runtime in BIDS.
    Regards,
    Mike Yin
    TechNet Community Support

  • Question on Processing Pattern Sessions - not behaving as expected

    I have implemented some schedulable jobs in my extensible cache configuration that are scheduled at a fixed rate and then use the processing pattern to submit work to the grid.
    However I am seeing some unexpected behaviour which does not seem to make much sense. My jobs are submitted to the grid as follows (some code edited for brevity):-
    @Override
         public void run() {
              ProcessingSession session = null;
              try {
              session = new DefaultProcessingSession(StringBasedIdentifier.newInstance("MySession"));
              SubmissionOutcome outcome = session.submit(this, new DefaultSubmissionConfiguration(),
         new TaskSubmissionCallback(taskName));
              catch (Throwable t) {
                   log.error("Failed to Submit Process Pattern Task [{}] For Session [{}]", taskName, nodeName);
              finally {
                   try {
                        session.shutdown();
                   catch (Throwable t) {
                        log.error("[{}] Failed to Shutdown Processing Pattern Session [{}]", this, nodeName);
    My tasks get scheduled and then submiited and executed in the grid. I am currently only running a single node through eclipse for testing.
    But after the task has excecuted my TaskSubmissionCallback class gets invoked and the onDone() gets called and returns my result:-
    public void onDone(Object oResult)
         log.debug("[{}] Submission done - Result = [{}]", m_sTaskName, oResult);
    So all is working. However a couple of milliseconds later I see the following in the logs:-
    2012-04-03 17:15:50.407/19.274 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache:DistributedServiceForProcessingPatternSubmissionResults:EventDispatcher, member=1): The following exception was caught by the event dispatcher:
    2012-04-03 17:15:50.407/19.274 Oracle Coherence GE 3.6.0.4 <Error> (thread=DistributedCache:DistributedServiceForProcessingPatternSubmissionResults:EventDispatcher, member=1):
    java.util.concurrent.RejectedExecutionException
         at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1760)
         at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767)
         at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:216)
         at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:366)
         at java.util.concurrent.ScheduledThreadPoolExecutor.execute(ScheduledThreadPoolExecutor.java:438)
         at com.oracle.coherence.patterns.processing.internal.DefaultProcessingSession.removeCacheObjectsAsynch(DefaultProcessingSession.java:313)
         at com.oracle.coherence.patterns.processing.internal.DefaultProcessingSession.handleResultChange(DefaultProcessingSession.java:288)
         at com.oracle.coherence.patterns.processing.internal.DefaultProcessingSession$1.onMapEvent(DefaultProcessingSession.java:204)
         at com.tangosol.util.MultiplexingMapListener.entryUpdated(MultiplexingMapListener.java:42)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:270)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:557)
         at com.tangosol.coherence.component.util.SafeNamedCache.translateMapEvent(SafeNamedCache.CDB:7)
         at com.tangosol.coherence.component.util.SafeNamedCache.entryUpdated(SafeNamedCache.CDB:1)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:270)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap$ProxyListener.dispatch(PartitionedCache.CDB:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap$ProxyListener.entryUpdated(PartitionedCache.CDB:1)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:270)
         at com.tangosol.coherence.component.util.CacheEvent.run(CacheEvent.CDB:18)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onNotify(Service.CDB:26)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    I have managed to solve this by removing the session.shutdown() call in the class that submits the job for processing using the Processing Pattern. However this seems odd to me
    as the submitter should not need to hang around until the job completes (as that is surely the point of the Callback handler). I can of course code around this by having a Singleton
    class which keeps the Processing session alive constantly and stores this in the Environment. But the question is why ???
    This is running Coherence 3.6 and coherence-processingpattern-1.3.423238.
    Would be grateful to know if this is a bug or my understanding is somehow confused !
    TIA
    Martin

    I agree, believe me. However, one goes to war with the army one has, not the army one wishes one had, to quote somebody who, um... okay, failed miserably. Hmm...
    It's a flat-rate project, so the troubleshooting isn't costing them any more, and their IT department wags the rest of the company and won't buy stuff. Eventually they'll have CS4 and these problems will go away, but probably not until next year.
    If I were willing to give up the CS4-specific features (which I'm not; maximum efficiency in long documents is the core competency of my business), working in CS3 still wouldn't be an option because I don't own it. I'm also not likely to be able to talk the client into the idea that I'll take care of the last-minute tweaks instead of their having to do it all.
    (Keep in mind, too, that there's more behind the scenes than I'm necessarily sharing in a quick forum post. If I can keep the typesetting from shifting in the .inx for now, I'm good.)
    I filed that bug report--thanks!
    UPDATE: Client says it looks right. Off we go...

  • LogicalDeletePollingStrategy adapter running multiple updates and using CPU

    We have multiple SOA processes that poll tables in a database with a Logical delete polling strategy. After polling the table the db adapter does an update to flag the record as read.
    We have a production database and test database for the source system, and production and test SOA 11.1.1.4 systems. After cloning our production database to our test database, I will see the update statement for the adapter running multiple times in the test database. However, their are no records in the table that meet the criteria for the polling.
    The polling frequency is every 10 minutes, and if the update statement did anything it would take less than 1 second. However I will see 5-10 copies of the update statement running and using resources.
    Has anyone seen a db apapter do this?

    maybe unit of order and unit of work can help you on that, though i haven't any experience on both topics :
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/uow.html
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/uoo.html
    or the mediator supports some sort of sequencer, see : http://www.xenta.nl/blog/2010/05/14/oracle-soa-suite-11g-resequence-messages-in-mediator/

Maybe you are looking for

  • Timeouts and connection problems after 5.1(2) upgrade

    AIM/chat and some other programs are having timeout/connection problems after upgrade to 5.1(2). I am using S241 also. The connection problems stopped when the IPS was set to bypass. Rebuilt IPS and left sigs at default settings and problem is still

  • Flash issue in Safari Browser

    I've created a simulation in Flash 8. The simulation is working fine in IE7 but when I'm launching the sim in Safari browser the sim is not working as it should. I'm getting some issues like: Some SWFs are not getting loaded. Some Functions are not w

  • Illustrator Preview Issues in Creative Cloud

    Some Illustrator files (the one I'm trying to use has multiple gradients) don't create a preview when uploaded to Cloud. Is this a known issue? Also, Cloud doesn't recognize, Illustrator layers as it does with Photoshop and Indesign. Will that featur

  • Photoshop elements 12 will not validate in installation

    Photoshop elements 12 will not validate in installation

  • Debug IP ICMP

    hi , i have found below result when enable bebug ip icmp ..while not traffic in or out..m enable this non-working hour: is it DoS Attack of Normal? *Nov  4 19:37:38.943: ICMP: echo reply sent, src 125.19.X.X, dst 203.178.148.19, topology BASE, dscp 0