A Novel Timestamp Ordering Approach for Co-existing Traditional and Cooperative Transaction

  • 格式:pdf
  • 大小:92.07 KB
  • 文档页数:10

ANovelTimestampOrderingApproachforCo-existingTraditionalandCooperativeTransactionProcessing

YanchunZhangYahikoKambayashiYunYangChengzhengSunDeptofMath&Comp.DeptofInformationSci.SchoolofComp.&MathSchoolofComp.&ITUniversityofSouthernQldKyotoUniversityDeakinUniversityGriffithUniversityTWB,Q4350,AustraliaKyoto606-01,JapanGeelong,3217,AustraliaBrisbane,4111,Australiayan@usq.edu.auyahiko@kuis.kyoto-u.ac.jpyun@deakin.edu.auscz@cit.gu.edu.au

AbstractInordertosupportbothtraditionalshorttransactionandlongcooperativetransactions,weproposeanoveltimes-tamporderingapproach.Withthistimestamporderingmethod,shorttransactionscanbeprocessedinthetra-ditionalway,asiftherearenocooperativetransactions,thereforenotbeblockedbylongtransactions;cooperativetransactionswillnotbeabortedwhenthereisaconflictwithshorttransactions,rather,itwillincorporatethere-centupdatesintoitsownprocessing;andtheserialisabili-ties,amongshorttransactions,andbetweenacooperativetransaction(group)andothershorttransactions,areallpreserved.

1.IntroductionIntraditionaldatabasesystems,userapplicationpro-gramsarepackagedastransactionsandtheconcurrentdataaccessissynchronisedusingconcurrencycontrolal-gorithmssuchasoptimisticconcurrencycontrol(OCC),two-phaselocking(2PL),andtimestampordering(TO)[2,3,15].Thetraditionaldatabasetransactionmodelissuit-ableforconventionaldatabaseapplications,suchasbank-ingandairlinesreservationsystems.Transactionsfortheseapplicationsaregenerallysimple,andarecharacterisedasshortdurationthattheywillbefinishedwithinminutesormuchshorter.Thetraditionaltransactionconcepthaslimitedapplica-bilityinmanyofadvancedapplicationssuchascooperativework.Inthoseenvironments,transactionstendtobeverylong,andneedtocooperatewitheachother.Forexample,incooperativeenvironments,severaldesignersmightworkonthesameproject.Eachdesignermaystartupacoopera-tivetransaction.Thosecooperativetransactionsjoinlyformatransactiongroup.Cooperativetransactionsinthesame

transactiongroupmayreadorupdateeachothersuncom-mittedobjectversions.Therefore,cooperativetransactionsmaybeinterdependent.Thelongtransactionsintraditionaldatabasesystemsmaybeabortedduetoconflictoperationsordeadlocks.Abortinglongtransactionmeanstheincreasedprocessingcost[25].Cooperativetransactionshavebeenrecentlyaddressedinseveralresearchareassuchasadvanceddatabasesys-tems,groupwareandCSCW,andworkflow.[7]offersacomprehensivereviewandacollectionofworksonad-vancedtransactionmodelsfromthedatabasepointofview.Saga[11],CooperativeTransactionHierarchy[17],Coop-erativeSEETransaction[13],DOMTransactions[4],Mul-tilevelTransactions[14]andothertransactionmodels[7]havebeendiscussed,whereallofthemneedsomedegreesoftransactioncooperationanddifferentcorrectnesscriteriafromserialisabilityexceptSplitTransactionmodel[19](asSplitTransactionmodeltriestoreorganisealongtransac-tionintoindependentandserialisabletransactions).Othercooperativeworkshavebeenconductedintheareassuchasgroupwareandworkflowsystems,wherethetransactionco-operationismoreevident[1,8,20,21].Themajorachieve-mentsintheseareasarethemodelsandsometechniquestosynchroniseorcoordinatethecooperativeoperationsandtoresolvetheconflictsbetweencooperativetransactions.Sofar,itseemsthereisnoworkaddressingtheco-existenceofbothtraditionaltransactionsandcooperativetransactions.Inanenvrironmentwithbothtraditionaltrans-actionsandcooperativetransactions,cooperativetransac-tionsshouldnotbeabortedduetoconflictoperationswithshorttransactions.Ontheotherhand,asthequickresponseisoftenrequiredorpreferredforshorttransactions,cooper-ativetransactionsshouldnotblocktheshorttransactions.Inthispaper,wewillfocusonthesynchronisationandconcurrencycontrolbetweentraditionaltransactionsandcooperativetransactions.Asalongandcooperativetrans-action,itmaytakedaysevenmonthstofinish.Itisrea-sonableforthislongtransactiontoseetheresultsofothershorttransactions,nomatterwhetherthoseshorttransac-tionsstartearlierornot.Therefore,weaimatdevelopinganewtimestampapproachtosupportbothtraditionaltransac-tionsandcooperativetransactions.Figure1showsaclient-serversystemstructurewithbothlongandshorttransac-tions.Wedividetransactionsintoshorttransactions()andcooperative(orlong)transactions,wherelongtransac-tionsaregroupedtoacooperativegroup.

DBServerTsTlTl

Clients....

group

...

local space

Ts

Ts

Figure1.Asystemstructurewithbothshorttransactionsandcooperativetransactions

Theproposedmethodhasthefollowingfeatures:(1)itallowsbothshort(traditional)andcooperativetransactionsco-exist;(2)shorttransactionscanbeprocessedinthetra-ditionalway,asiftherewerenocooperativetransactions,thereforenotbeblockedbylongtransactions;(3)cooper-ativetransactionswillnotbeabortedwhenthereisacon-flictwithshorttransactions,ratheritwillincorporatethere-centupdatesintoitsownprocessing;and(4)thef-conflictserialisability,ageneralcorrectnesscriteronforadvancedtransactionprocessingbetweenacooperativetransaction(group)andothershorttransactionsispreserved.Basedonthesefeatureswebelievethismethodisverysuitableforadvanceddatabaseapplicationstosupportbothshorttrans-actionandcooperativework.Thepaperisorganisedasfollows.Insection2,were-viewsomeconceptsandtechniquesontraditionaltransac-tionprocessing,includingtransactions,conflictserialisabil-ityandconcurrencycontrols,especiallythetimestampor-deringapproach.Section3developsacooperativetransac-tionmodelandageneralcorrectnesstheoryforcooperativetransactionprocessing.Section4proposesanoveltimes-tamporderingmethodtodealwiththeinteractionbetweentraditionaltransactionsandcooperativetransactions.Insec-