On Correctness of Non-serializable Executions Work

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

OnCorrectnessofNon-serializableExecutionsRajeevRastogi1SharadMehrotra2YuriBreitbart1HenryF.Korth1AviSilberschatz11AT&TBelllaboratories.600MountainAvenue,MurrayHill,NJ07974-0636.2DepartmentofComputerScienceUniversityofIllinoisatUrbanaChampaign1304W.SpringeldAve.Urbana,IL61801WorksupportedinpartbyNSFgrantIRI-8904932.1AbstractInanumberofapplicationenvironments(e.g.,computeraideddesign),serializability,thetra-ditionallyacceptednotionofcorrectnesshasbeenfoundtobetoorestrictive,andanumberofalternatecriteriahavebeenproposedintheliterature.Onesuchcriterionispredicate-wiseserial-izability(PWSR),whichrequiresonlyrestrictionsofschedulesthataccesssubsetsofthedatabaseoverwhichintegrityconstraintsaredened,tobeserializable.Inthispaper,weidentifyrestrictionsonthestructureoftransactionprograms,theirconcurrentexecutionandtheiraccesscharacteristicsunderwhichPWSRschedulespreservedatabaseconsistency.Keywords:Transactions,Schedules,ConcurrencyControl,IntegrityConstraints,DatabaseStates.Note:PreprintoftheversionthatappearsinJournalofComputerSystemsandSoftware(JCSS)21IntroductionInthestandardtransactionmodel[3],adatabasestateissaidtobeconsistentifalldatabaseintegrityconstraintsaresatised.Eachtransaction,whenexecutedinisolation,mapsaconsistentdatabasestatetoanotherconsistentdatabasestate.Inthecaseofconcurrenttransactionexecutions,databaseconsistencyisensuredbyrequiringthattheresultingexecutionbeserializable;thatis,equivalenttosomeserialexecutionofthetransactions.Sinceeachtransaction,whenexecutedalone,preservesdatabaseconsistency,aserializableexecutionpreservesdatabaseconsistency.Whilethistheoryisattractivefromthepointofviewofsimplicity,inrecentyears,severalpapershaveshownthatemployingthestandardtransactionmodelforcertain\newdatabaseapplicationsorinadistributeddatabaseenvironmenthasunacceptablepracticalconsequences.Forexample,inapplicationssuchascomputer-aideddesign,wheretransactionsareofalongduration,thestandardtransactionmodelmayresultinlong-durationwaitsimposedbythelockingprotocols.Indistributeddatabaseapplications,apotentiallossofthelocalautonomyoftheparticipatingdatabasesmayresult.Theseproblemsarenotonlyissuesconcerningperformancebutalsoissuesconcerningusability,sincemanyofthe\newapplicationsareinteractiveand/ordistributed.Theapproachestakentoalleviatetheabovementionedproblemscanbebroadlyclassiedintothefollowingthreecategories:Therstapproachistoexploitthesemanticsofthedatabaseoperations,whilestillensur-ingserializabilityofexecutions.Atransactioncanbeconsideredasasequenceofhigh-leveloperations(e.g.,increment.)Commutativityamongoperations,andnotthesetofreadandwritesresultingfromtheirexecution,isusedtodetermineconictsbetweentransactions,thusenhancingconcurrency.Earlyworkinthisareaincludes[10].Morerecentworkincludes[14,9,2,5].Thesecondapproachistoexploitthesemanticsoftransactions[6,7,8].Inthisapproach,atransactionisbrokenintoasetofsubtransactions,witheachofwhichatypeisassociated.Theapplicationadministrator,thendeterminesthesetofinterleavingsofthesubtransactionsthatareacceptableandthatwouldnotresultintheviolationofdatabaseconsistency.Asanexample,considerthesagatransactionmodelinwhichatransactionTisbrokenintoasequenceofsubtransactionsT1;T2;:::;Tn.EachTiisanindependentactivitybyitself.AftertheterminationofTithelocksondataitemsheldbyTicanbereleasedandtheeectsofTiex-3ternalized.Thus,inthesagatransactionmodelallpossibleinterleavingsofthesubtransactionsarepermitted.Thethirdapproachistoexploittheknowledgeoftheintegrityconstraintsofthesystem.Afundamentaltechniqueusedinseveralapplicationdomainsistopartitionthedatabaseintosubdatabases,eachwithitsownconsistencyconstraints.Basedontheapplicationdomain,assumptionscanbemaderegardingthedegreetowhichthesesubdatabasesareindependent(asintheconceptofglobalandlocaldatausedinsomeworkinmultidatabasesystems[12])orregardingthenatureoftransactionsexecutingagainstthesesubdatabases(suchasanas-sumptionofpreservationofsubdatabaseconsistency).Onesuchapplicationdomainisthecomputer-aideddesignandmanufacturingenvironmentforwhichpredicate-wiseserializability(PWSR)wasintroducedasacorrectnesscriterionin[11].Inanutshell,thePWSRcorrect-nesscriterionstatesthatifthedatabaseconsistencyconstraintisexpressedasaconjunctionofpredicates,thenforeachpossiblescheduleS,therestrictionofStooperationsthataccessdataitemsineveryconjunctisserializable.Whilesubstantialresearchhasbeendonetowardsdevelopingapproachestorelaxtheserializabilityrequirement,verylittleworkhasbeendoneonidentifyingwhatconsistencyguaranteesresultfromtheaboveapproachestoextendingthestandardtransactionmodel.Forexample,littleworkexistsoncharacterizingtheapplicationdomainsinwhichtheusageofthesagatransactionmodelensuresdatabaseconsistency.Inthispaper,westudytheformalimplicationsofchoosingPWSRasthecorrectnesscriterion.TheimportanceofthePWSRcorrectnesscriterionhasbeendemonstratedin[11,4].In[11],itwasshownthatthePWSRcorrectnesscriterioncanbeusedtoalleviatethelong-durationwaitsassociatedwithlong-durationtransactionsincomputer-aideddesignandmanufacturingenviron-ment

1 / 27
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功