home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!mccall!ipmdf-newsgate!list
- Newsgroups: vmsnet.mail.pmdf
- Subject: Bug in os_wake_deliver
- Message-ID: <01GT7F9TSVA89YF19O@zodiac.rutgers.edu>
- From: Tony Mione <mione%zodiac.bitnet@ymir.claremont.edu>
- Date: 06 Jan 1993 17:04 -0500 (EST)
- Organization: The Internet
- Return-Path: <epmdf@YMIR.CLAREMONT.EDU>
- Resent-Date: 06 Jan 1993 17:04 -0500 (EST)
- Resent-From: epmdf@YMIR.CLAREMONT.EDU
- Errors-To: epmdf@YMIR.CLAREMONT.EDU
- Resent-Message-ID: <01GT791BE2B690OT3R@YMIR.CLAREMONT.EDU>
- X-Vms-To: IN%"IPMDF@YMIR.BITNET"
- X-Vms-Cc: SYSTEM
- Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
- Content-Transfer-Encoding: 7BIT
- Lines: 53
-
-
- On occasion, we have noticed a problem with message files
- which are abandoned by all of the channel master batch jobs. These
- message files are being left in PMDF queue directories without any
- delivery attempts being made (i.e. the filenames start with 'ZZ') and
- after all of the currently running batch jobs have completed.
-
- After looking at routines from the MM.PAS, OS.PAS and SUBMIT_MASTER.PAS
- source files, it seems like there is a potential race condition which
- allows 'windows' to exist where message files will not be delivered
- until POST.COM is run.
-
- The scenario is as follows:
-
- Three (or more) messages are being written to a channel queue directory
- at about the same time (the time recorded by os_init_deliver differs
- by, let's say, several hundreths of a second in each case).
- Message 1 completes writing a message file and submits a master channel job.
- The master job submitted by message 1 starts and takes its directory listing.
- Message 2 is long and has gobs of addresses to process. Message 3 completes
- and submits a master channel job which goes into a PENDING state. Message
- 2 completes processing and notices that a batch job exists for the channel
- so it does not submit another.
-
- The results:
-
- Message files written with time stamps between message 1's
- 'os_init_deliver' time and the time that master job completes its
- directory command will get delivered. Message files at or after
- message 3's 'os_init_deliver' time will get delivered. Messages written
- by message 2 which are stamped before message 3's 'os_init_deliver' time
- will be delayed until POST.COM runs.
-
- The fix should be straight forward. There is code in the
- middle of os_wake_deliver which checks for the existance of the
- master batch job on a particular channel. The check should include verifying
- that Parameter 3 of a PENDING channel master batch job is also earlier
- than the current message's 'os_deliver_start_time'. If it is not, then
- one additional channel master batch job should be submitted.
-
-
-
- Tony:: (VMS Systems, Operations & Technical Support, RUCS)
- Hill Center 046 - (908)-932-4785
- ---------------------------------------------------------------------
- Bitnet: MIONE@ZODIAC.BITNET
- Arpa: MIONE@ZODIAC.RUTGERS.EDU
- _____________________________________________________________________
-
- Basic rule when in flight:
- Maintain thy airspeed, lest the earth arise
- and smite thee.
-
-