inthefabric / Fabric

The collective mind awaits your input.
www.inthefabric.com
Other
5 stars 0 forks source link

Incorrect handling of an AddClasses operation failure #3

Closed zachkinstner closed 11 years ago

zachkinstner commented 11 years ago

During the most recent WordNet export attempt (batch upload of 260,000+ FabClass objects):

Five total (of over a thousand) batch requests failed. Four were due to database errors, and their errors were handled/reported correctly. The other failure lead to data not added to the database, but still added the Class data to the local cache anyway. This leads to a scenario where the API always requests retries for this data (since it is present in the cache), but that data isn't actually present in the database.

Relevant API logs:

- Error | 20ce544b-6fca-45ed-bb1e-b44d74edb1cd | Unhandled raw:  | {"request":"20ce544b-6fca-45ed-bb1e-b44d74edb1cd","success":false,"queryTime":15492,"exception":'An error occurred while processing the script for language [groovy]. All transactions across all graphs in the session have been concluded with failure: javax.script.ScriptException: com.thinkaurelius.titan.core.TitanException: Could not read from storage'}

- Error | 20ce544b-6fca-45ed-bb1e-b44d74edb1cd | DBv1    | 15527.781 | 0 | 635020069453809230 | 1 | 8527
System.Exception: Result.Success is false.
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0 
- Error | 20ce544b-6fca-45ed-bb1e-b44d74edb1cd | FRv1    | ModifyController | 68.61.88.232 | 1 | 73 | 15735 | 0 | 0 | 0 | False | 42927616976486400 | 42927604513112064 | 635020069296464160 | 500 | InternalError | POST | /Mod/Classes/Batch
System.AggregateException: One or more errors occured ---> System.Exception: ApiDataAccess exception:
Query = _V0=g.v(_TP0);_V1=g.addVertex([Cl_Id:_TP1,Cl_Na:_TP2,Cl_Di:_TP3,Cl_No:_TP4,A_AId:_TP5,A_Cr:_TP6,N_FT:_TP7.toInteger()]);g.addEdge(_V0,_V1,_TP8);_V2=g.addVertex([Cl_Id:_TP9,Cl_Na:_TP10,Cl_Di:_TP11,Cl_No:_TP12,A_AId:_TP13,A_Cr:_TP14,N_FT:_TP15.toInteger()]);g.addEdge(_V0,_V2,_TP16);_V3=g.addVertex([Cl_Id:_TP17,Cl_Na:_TP18,Cl_Di:_TP19,Cl_No:_TP20,A_AId:_TP21,A_Cr:_TP22,N_FT:_TP23.toInteger()]);g.addEdge(_V0,_V3,_TP24);_V4=g.addVertex([Cl_Id:_TP25,Cl_Na:_TP26,Cl_Di:_TP27,Cl_No:_TP28,A_AId:_TP29,A_Cr:_TP30,N_FT:_TP31.toInteger()]);g.addEdge(_V0,_V4,_TP32);_V5=g.addVertex([Cl_Id:_TP33,Cl_Na:_TP34,Cl_Di:_TP35,Cl_No:_TP36,A_AId:_TP37,A_Cr:_TP38,N_FT:_TP39.toInteger()]);g.addEdge(_V0,_V5,_TP40);_V6=g.addVertex([Cl_Id:_TP41,Cl_Na:_TP42,Cl_Di:_TP43,Cl_No:_TP44,A_AId:_TP45,A_Cr:_TP46,N_FT:_TP47.toInteger()]);g.addEdge(_V0,_V6,_TP48);_V7=g.addVertex([Cl_Id:_TP49,Cl_Na:_TP50,Cl_Di:_TP51,Cl_No:_TP52,A_AId:_TP53,A_Cr:_TP54,N_FT:_TP55.toInteger()]);g.addEdge(_V0,_V7,_TP56);_V8=g.addVertex([Cl_Id:_TP57,Cl_Na:_TP58,Cl_Di:_TP59,Cl_No:_TP60,A_AId:_TP61,A_Cr:_TP62,N_FT:_TP63.toInteger()]);g.addEdge(_V0,_V8,_TP64);_V9=g.addVertex([Cl_Id:_TP65,Cl_Na:_TP66,Cl_Di:_TP67,Cl_No:_TP68,A_AId:_TP69,A_Cr:_TP70,N_FT:_TP71.toInteger()]);g.addEdge(_V0,_V9,_TP72);_V10=g.addVertex([Cl_Id:_TP73,Cl_Na:_TP74,Cl_Di:_TP75,Cl_No:_TP76,A_AId:_TP77,A_Cr:_TP78,N_FT:_TP79.toInteger()]);g.addEdge(_V0,_V10,_TP80);_V11=g.addVertex([Cl_Id:_TP81,Cl_Na:_TP82,Cl_Di:_TP83,Cl_No:_TP84,A_AId:_TP85,A_Cr:_TP86,N_FT:_TP87.toInteger()]);g.addEdge(_V0,_V11,_TP88);_V12=g.addVertex([Cl_Id:_TP89,Cl_Na:_TP90,Cl_Di:_TP91,Cl_No:_TP92,A_AId:_TP93,A_Cr:_TP94,N_FT:_TP95.toInteger()]);g.addEdge(_V0,_V12,_TP96);_V13=g.addVertex([Cl_Id:_TP97,Cl_Na:_TP98,Cl_Di:_TP99,Cl_No:_TP100,A_AId:_TP101,A_Cr:_TP102,N_FT:_TP103.toInteger()]);g.addEdge(_V0,_V13,_TP104);_V14=g.addVertex([Cl_Id:_TP105,Cl_Na:_TP106,Cl_Di:_TP107,Cl_No:_TP108,A_AId:_TP109,A_Cr:_TP110,N_FT:_TP111.toInteger()]);g.addEdge(_V0,_V14,_TP112);_V15=g.addVertex([Cl_Id:_TP113,Cl_Na:_TP114,Cl_Di:_TP115,Cl_No:_TP116,A_AId:_TP117,A_Cr:_TP118,N_FT:_TP119.toInteger()]);g.addEdge(_V0,_V15,_TP120);_V16=g.addVertex([Cl_Id:_TP121,Cl_Na:_TP122,Cl_Di:_TP123,Cl_No:_TP124,A_AId:_TP125,A_Cr:_TP126,N_FT:_TP127.toInteger()]);g.addEdge(_V0,_V16,_TP128);_V17=g.addVertex([Cl_Id:_TP129,Cl_Na:_TP130,Cl_Di:_TP131,Cl_No:_TP132,A_AId:_TP133,A_Cr:_TP134,N_FT:_TP135.toInteger()]);g.addEdge(_V0,_V17,_TP136);_V18=g.addVertex([Cl_Id:_TP137,Cl_Na:_TP138,Cl_Di:_TP139,Cl_No:_TP140,A_AId:_TP141,A_Cr:_TP142,N_FT:_TP143.toInteger()]);g.addEdge(_V0,_V18,_TP144);_V19=g.addVertex([Cl_Id:_TP145,Cl_Na:_TP146,Cl_Di:_TP147,Cl_No:_TP148,A_AId:_TP149,A_Cr:_TP150,N_FT:_TP151.toInteger()]);g.addEdge(_V0,_V19,_TP152);_V20=g.addVertex([Cl_Id:_TP153,Cl_Na:_TP154,Cl_Di:_TP155,Cl_No:_TP156,A_AId:_TP157,A_Cr:_TP158,N_FT:_TP159.toInteger()]);g.addEdge(_V0,_V20,_TP160);[_V1.id,_V2.id,_V3.id,_V4.id,_V5.id,_V6.id,_V7.id,_V8.id,_V9.id,_V10.id,_V11.id,_V12.id,_V13.id,_V14.id,_V15.id,_V16.id,_V17.id,_V18.id,_V19.id,_V20.id];#{"_TP0":"40040","_TP1":42936806725910528,"_TP2":"clastic","_TP3":"detachable [Adjective]","_TP4":"Adjective: capable of being taken apart; \"the professor had a clastic model of the human brain\"","_TP5":42936806725910528,"_TP6":635020069298033570,"_TP7":1001,"_TP8":"M-C-A","_TP9":42936806725910529,"_TP10":"clastic","_TP11":"geology / disintegrative / clastic rock [Adjective]","_TP12":"Adjective: of or belonging to or being a rock composed of fragments of older rocks (e.g., conglomerates or sandstone)","_TP13":42936806725910529,"_TP14":635020069298037970,"_TP15":1001,"_TP16":"M-C-A","_TP17":42936806726959104,"_TP18":"clathrate","_TP19":"chemical science / chemistry / enclosed [Adjective]","_TP20":"Adjective: designating or relating to a compound in which one component is physically enclosed within the crystal structure of another","_TP21":42936806726959104,"_TP22":635020069298040890,"_TP23":1001,"_TP24":"M-C-A","_TP25":42936806726959105,"_TP26":"clattery","_TP27":"noisy [Adjective]","_TP28":"Adjective: a rattling sound as of hard things striking together; \"a clattery typewriter\"; \"the clattery sound of dishes\"","_TP29":42936806726959105,"_TP30":635020069298044990,"_TP31":1001,"_TP32":"M-C-A","_TP33":42936806726959106,"_TP34":"clausal","_TP35":"clause [Adjective]","_TP36":"Adjective: of or relating to or functioning as a clause; \"clausal structure\"","_TP37":42936806726959106,"_TP38":635020069298048690,"_TP39":1001,"_TP40":"M-C-A","_TP41":42936806728007680,"_TP42":"claustrophobic","_TP43":"afraid [Adjective]","_TP44":"Adjective: suffering from claustrophobia; abnormally afraid of closed-in places","_TP45":42936806728007680,"_TP46":635020069298052470,"_TP47":1001,"_TP48":"M-C-A","_TP49":42936806728007681,"_TP50":"claustrophobic","_TP51":"confined [Adjective]","_TP52":"Adjective: uncomfortably closed or hemmed in; \"a claustrophobic little room\"","_TP53":42936806728007681,"_TP54":635020069298055400,"_TP55":1001,"_TP56":"M-C-A","_TP57":42936806728007682,"_TP58":"clawed / taloned","_TP59":"armed [Adjective]","_TP60":"Adjective: (of predatory animals) armed with claws or talons","_TP61":42936806728007682,"_TP62":635020069298058880,"_TP63":1001,"_TP64":"M-C-A","_TP65":42936806729056256,"_TP66":"clawed","_TP67":"taloned / armed [Adjective]","_TP68":"Adjective: (of predatory animals) armed with claws or talons","_TP69":42936806729056256,"_TP70":635020069298061710,"_TP71":1001,"_TP72":"M-C-A","_TP73":42936806729056257,"_TP74":"taloned","_TP75":"clawed / armed [Adjective]","_TP76":"Adjective: (of predatory animals) armed with claws or talons","_TP77":42936806729056257,"_TP78":635020069298067940,"_TP79":1001,"_TP80":"M-C-A","_TP81":42936806730104832,"_TP82":"clawed","_TP83":"unguiculate / unguiculated [Adjective]","_TP84":"Adjective: having or resembling a claw or claws; often used as a combining form; \"sharp-clawed\"","_TP85":42936806730104832,"_TP86":635020069298070940,"_TP87":1001,"_TP88":"M-C-A","_TP89":42936806730104833,"_TP90":"clawlike","_TP91":"unguiculate / unguiculated [Adjective]","_TP92":"Adjective: resembling a claw","_TP93":42936806730104833,"_TP94":635020069298074450,"_TP95":1001,"_TP96":"M-C-A","_TP97":42936806730104834,"_TP98":"claw-shaped","_TP99":"formed [Adjective]","_TP100":"Adjective: shaped like a claw","_TP101":42936806730104834,"_TP102":635020069298078090,"_TP103":1001,"_TP104":"M-C-A","_TP105":42936806731153408,"_TP106":"clayey / cloggy / heavy","_TP107":"compact [Adjective]","_TP108":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP109":42936806731153408,"_TP110":635020069298081770,"_TP111":1001,"_TP112":"M-C-A","_TP113":42936806731153409,"_TP114":"clayey","_TP115":"cloggy / heavy / compact [Adjective]","_TP116":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP117":42936806731153409,"_TP118":635020069298085710,"_TP119":1001,"_TP120":"M-C-A","_TP121":42936806732201984,"_TP122":"cloggy","_TP123":"clayey / heavy / compact [Adjective]","_TP124":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP125":42936806732201984,"_TP126":635020069298091590,"_TP127":1001,"_TP128":"M-C-A","_TP129":42936806732201985,"_TP130":"heavy","_TP131":"clayey / cloggy / compact [Adjective]","_TP132":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP133":42936806732201985,"_TP134":635020069298097900,"_TP135":1001,"_TP136":"M-C-A","_TP137":42936806733250560,"_TP138":"clean","_TP139":"unaddicted [Adjective]","_TP140":"Adjective: free of drugs; \"after a long dependency on heroin she has been clean for 4 years\"","_TP141":42936806733250560,"_TP142":635020069298100770,"_TP143":1001,"_TP144":"M-C-A","_TP145":42936806733250561,"_TP146":"clean / neat","_TP147":"adroit [Adjective]","_TP148":"Adjective: free from clumsiness; precisely or deftly executed; \"he landed a clean left on his opponent's cheek\"; \"a clean throw\"; \"the neat exactness of the surgeon's knife\"","_TP149":42936806733250561,"_TP150":635020069298103480,"_TP151":1001,"_TP152":"M-C-A","_TP153":42936806733250562,"_TP154":"clean","_TP155":"neat / adroit [Adjective]","_TP156":"Adjective: free from clumsiness; precisely or deftly executed; \"he landed a clean left on his opponent's cheek\"; \"a clean throw\"; \"the neat exactness of the surgeon's knife\"","_TP157":42936806733250562,"_TP158":635020069298106430,"_TP159":1001,"_TP160":"M-C-A"}
ResultString = {"request":"20ce544b-6fca-45ed-bb1e-b44d74edb1cd","success":false,"queryTime":15492,"exception":'An error occurred while processing the script for language [groovy]. All transactions across all graphs in the session have been concluded with failure: javax.script.ScriptException: com.thinkaurelius.titan.core.TitanException: Could not read from storage'}

UnhandedException = System.Exception: Result.Success is false.
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0  ---> System.Exception: Result.Success is false.
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0 
  at Fabric.Infrastructure.Api.ApiContext.DbDataAccess (System.String pQueryName, IApiDataAccess pDbQuery) [0x00000] in <filename unknown>:0 
  at Fabric.Infrastructure.Api.ApiContext.DbData (System.String pQueryName, IWeaverScript pScripted) [0x00000] in <filename unknown>:0 
  at Fabric.Api.Modify.BatchCreateClass.InsertClass (System.Collections.Generic.List`1 pIndexes, System.Threading.Tasks.ParallelLoopState pState, Int64 pThreadId) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey4E`1[System.Collections.Generic.List`1[System.Int32]].<>m__65 (System.Collections.Generic.List`1 e, System.Threading.Tasks.ParallelLoopState s, Int64 i, System.Object l) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:538 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey52`2[System.Collections.Generic.List`1[System.Int32],System.Object].<>m__70 (KeyValuePair`2 e, System.Threading.Tasks.ParallelLoopState s, System.Object l) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:666 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey45`2[System.Collections.Generic.KeyValuePair`2[System.Int64,System.Collections.Generic.List`1[System.Int32]],System.Object].<>m__4B () [0x000db] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:383 
  at System.Threading.Tasks.TaskActionInvoker+ActionInvoke.Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:70 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00028] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Task.cs:519 
  at System.Threading.Tasks.Task.ThreadStart () [0x00097] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Task.cs:418 
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Parallel.HandleExceptions (IEnumerable`1 tasks, System.Threading.Tasks.ExternalInfos infos) [0x0006e] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:79 
  at System.Threading.Tasks.Parallel.ForEach[KeyValuePair`2,Object] (System.Func`2 enumerable, System.Threading.Tasks.ParallelOptions options, System.Func`1 init, System.Func`4 action, System.Action`1 destruct) [0x0012c] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:405 
  at System.Threading.Tasks.Parallel.ForEach[List`1,Object] (System.Collections.Concurrent.OrderablePartitioner`1 source, System.Threading.Tasks.ParallelOptions parallelOptions, System.Func`1 localInit, System.Func`5 body, System.Action`1 localFinally) [0x00034] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:663 
  at System.Threading.Tasks.Parallel.ForEach[List`1] (IEnumerable`1 source, System.Threading.Tasks.ParallelOptions parallelOptions, System.Action`3 body) [0x00034] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:535 
  at Fabric.Api.Modify.BatchCreateClass.Execute () [0x00000] in <filename unknown>:0 
  at Fabric.Infrastructure.Api.ApiFunc`1[Fabric.Api.Dto.Batch.FabBatchResult[]].Go (IApiContext pContext) [0x00000] in <filename unknown>:0 
  at Fabric.Api.Services.ModifyController.ClassesBatch () [0x00000] in <filename unknown>:0 
  at Fabric.Api.Services.ModifyController.GetRouteJson () [0x00000] in <filename unknown>:0 
  at Fabric.Api.Services.ModifyController.BuildFabResponse () [0x00000] in <filename unknown>:0 
  at Fabric.Api.Common.FabResponseController.BuildResponse () [0x00000] in <filename unknown>:0 
  at Fabric.Api.Common.Controller.Execute () [0x00000] in <filename unknown>:0 
 --> (Inner exception 0) System.Exception: ApiDataAccess exception:
Query = _V0=g.v(_TP0);_V1=g.addVertex([Cl_Id:_TP1,Cl_Na:_TP2,Cl_Di:_TP3,Cl_No:_TP4,A_AId:_TP5,A_Cr:_TP6,N_FT:_TP7.toInteger()]);g.addEdge(_V0,_V1,_TP8);_V2=g.addVertex([Cl_Id:_TP9,Cl_Na:_TP10,Cl_Di:_TP11,Cl_No:_TP12,A_AId:_TP13,A_Cr:_TP14,N_FT:_TP15.toInteger()]);g.addEdge(_V0,_V2,_TP16);_V3=g.addVertex([Cl_Id:_TP17,Cl_Na:_TP18,Cl_Di:_TP19,Cl_No:_TP20,A_AId:_TP21,A_Cr:_TP22,N_FT:_TP23.toInteger()]);g.addEdge(_V0,_V3,_TP24);_V4=g.addVertex([Cl_Id:_TP25,Cl_Na:_TP26,Cl_Di:_TP27,Cl_No:_TP28,A_AId:_TP29,A_Cr:_TP30,N_FT:_TP31.toInteger()]);g.addEdge(_V0,_V4,_TP32);_V5=g.addVertex([Cl_Id:_TP33,Cl_Na:_TP34,Cl_Di:_TP35,Cl_No:_TP36,A_AId:_TP37,A_Cr:_TP38,N_FT:_TP39.toInteger()]);g.addEdge(_V0,_V5,_TP40);_V6=g.addVertex([Cl_Id:_TP41,Cl_Na:_TP42,Cl_Di:_TP43,Cl_No:_TP44,A_AId:_TP45,A_Cr:_TP46,N_FT:_TP47.toInteger()]);g.addEdge(_V0,_V6,_TP48);_V7=g.addVertex([Cl_Id:_TP49,Cl_Na:_TP50,Cl_Di:_TP51,Cl_No:_TP52,A_AId:_TP53,A_Cr:_TP54,N_FT:_TP55.toInteger()]);g.addEdge(_V0,_V7,_TP56);_V8=g.addVertex([Cl_Id:_TP57,Cl_Na:_TP58,Cl_Di:_TP59,Cl_No:_TP60,A_AId:_TP61,A_Cr:_TP62,N_FT:_TP63.toInteger()]);g.addEdge(_V0,_V8,_TP64);_V9=g.addVertex([Cl_Id:_TP65,Cl_Na:_TP66,Cl_Di:_TP67,Cl_No:_TP68,A_AId:_TP69,A_Cr:_TP70,N_FT:_TP71.toInteger()]);g.addEdge(_V0,_V9,_TP72);_V10=g.addVertex([Cl_Id:_TP73,Cl_Na:_TP74,Cl_Di:_TP75,Cl_No:_TP76,A_AId:_TP77,A_Cr:_TP78,N_FT:_TP79.toInteger()]);g.addEdge(_V0,_V10,_TP80);_V11=g.addVertex([Cl_Id:_TP81,Cl_Na:_TP82,Cl_Di:_TP83,Cl_No:_TP84,A_AId:_TP85,A_Cr:_TP86,N_FT:_TP87.toInteger()]);g.addEdge(_V0,_V11,_TP88);_V12=g.addVertex([Cl_Id:_TP89,Cl_Na:_TP90,Cl_Di:_TP91,Cl_No:_TP92,A_AId:_TP93,A_Cr:_TP94,N_FT:_TP95.toInteger()]);g.addEdge(_V0,_V12,_TP96);_V13=g.addVertex([Cl_Id:_TP97,Cl_Na:_TP98,Cl_Di:_TP99,Cl_No:_TP100,A_AId:_TP101,A_Cr:_TP102,N_FT:_TP103.toInteger()]);g.addEdge(_V0,_V13,_TP104);_V14=g.addVertex([Cl_Id:_TP105,Cl_Na:_TP106,Cl_Di:_TP107,Cl_No:_TP108,A_AId:_TP109,A_Cr:_TP110,N_FT:_TP111.toInteger()]);g.addEdge(_V0,_V14,_TP112);_V15=g.addVertex([Cl_Id:_TP113,Cl_Na:_TP114,Cl_Di:_TP115,Cl_No:_TP116,A_AId:_TP117,A_Cr:_TP118,N_FT:_TP119.toInteger()]);g.addEdge(_V0,_V15,_TP120);_V16=g.addVertex([Cl_Id:_TP121,Cl_Na:_TP122,Cl_Di:_TP123,Cl_No:_TP124,A_AId:_TP125,A_Cr:_TP126,N_FT:_TP127.toInteger()]);g.addEdge(_V0,_V16,_TP128);_V17=g.addVertex([Cl_Id:_TP129,Cl_Na:_TP130,Cl_Di:_TP131,Cl_No:_TP132,A_AId:_TP133,A_Cr:_TP134,N_FT:_TP135.toInteger()]);g.addEdge(_V0,_V17,_TP136);_V18=g.addVertex([Cl_Id:_TP137,Cl_Na:_TP138,Cl_Di:_TP139,Cl_No:_TP140,A_AId:_TP141,A_Cr:_TP142,N_FT:_TP143.toInteger()]);g.addEdge(_V0,_V18,_TP144);_V19=g.addVertex([Cl_Id:_TP145,Cl_Na:_TP146,Cl_Di:_TP147,Cl_No:_TP148,A_AId:_TP149,A_Cr:_TP150,N_FT:_TP151.toInteger()]);g.addEdge(_V0,_V19,_TP152);_V20=g.addVertex([Cl_Id:_TP153,Cl_Na:_TP154,Cl_Di:_TP155,Cl_No:_TP156,A_AId:_TP157,A_Cr:_TP158,N_FT:_TP159.toInteger()]);g.addEdge(_V0,_V20,_TP160);[_V1.id,_V2.id,_V3.id,_V4.id,_V5.id,_V6.id,_V7.id,_V8.id,_V9.id,_V10.id,_V11.id,_V12.id,_V13.id,_V14.id,_V15.id,_V16.id,_V17.id,_V18.id,_V19.id,_V20.id];#{"_TP0":"40040","_TP1":42936806725910528,"_TP2":"clastic","_TP3":"detachable [Adjective]","_TP4":"Adjective: capable of being taken apart; \"the professor had a clastic model of the human brain\"","_TP5":42936806725910528,"_TP6":635020069298033570,"_TP7":1001,"_TP8":"M-C-A","_TP9":42936806725910529,"_TP10":"clastic","_TP11":"geology / disintegrative / clastic rock [Adjective]","_TP12":"Adjective: of or belonging to or being a rock composed of fragments of older rocks (e.g., conglomerates or sandstone)","_TP13":42936806725910529,"_TP14":635020069298037970,"_TP15":1001,"_TP16":"M-C-A","_TP17":42936806726959104,"_TP18":"clathrate","_TP19":"chemical science / chemistry / enclosed [Adjective]","_TP20":"Adjective: designating or relating to a compound in which one component is physically enclosed within the crystal structure of another","_TP21":42936806726959104,"_TP22":635020069298040890,"_TP23":1001,"_TP24":"M-C-A","_TP25":42936806726959105,"_TP26":"clattery","_TP27":"noisy [Adjective]","_TP28":"Adjective: a rattling sound as of hard things striking together; \"a clattery typewriter\"; \"the clattery sound of dishes\"","_TP29":42936806726959105,"_TP30":635020069298044990,"_TP31":1001,"_TP32":"M-C-A","_TP33":42936806726959106,"_TP34":"clausal","_TP35":"clause [Adjective]","_TP36":"Adjective: of or relating to or functioning as a clause; \"clausal structure\"","_TP37":42936806726959106,"_TP38":635020069298048690,"_TP39":1001,"_TP40":"M-C-A","_TP41":42936806728007680,"_TP42":"claustrophobic","_TP43":"afraid [Adjective]","_TP44":"Adjective: suffering from claustrophobia; abnormally afraid of closed-in places","_TP45":42936806728007680,"_TP46":635020069298052470,"_TP47":1001,"_TP48":"M-C-A","_TP49":42936806728007681,"_TP50":"claustrophobic","_TP51":"confined [Adjective]","_TP52":"Adjective: uncomfortably closed or hemmed in; \"a claustrophobic little room\"","_TP53":42936806728007681,"_TP54":635020069298055400,"_TP55":1001,"_TP56":"M-C-A","_TP57":42936806728007682,"_TP58":"clawed / taloned","_TP59":"armed [Adjective]","_TP60":"Adjective: (of predatory animals) armed with claws or talons","_TP61":42936806728007682,"_TP62":635020069298058880,"_TP63":1001,"_TP64":"M-C-A","_TP65":42936806729056256,"_TP66":"clawed","_TP67":"taloned / armed [Adjective]","_TP68":"Adjective: (of predatory animals) armed with claws or talons","_TP69":42936806729056256,"_TP70":635020069298061710,"_TP71":1001,"_TP72":"M-C-A","_TP73":42936806729056257,"_TP74":"taloned","_TP75":"clawed / armed [Adjective]","_TP76":"Adjective: (of predatory animals) armed with claws or talons","_TP77":42936806729056257,"_TP78":635020069298067940,"_TP79":1001,"_TP80":"M-C-A","_TP81":42936806730104832,"_TP82":"clawed","_TP83":"unguiculate / unguiculated [Adjective]","_TP84":"Adjective: having or resembling a claw or claws; often used as a combining form; \"sharp-clawed\"","_TP85":42936806730104832,"_TP86":635020069298070940,"_TP87":1001,"_TP88":"M-C-A","_TP89":42936806730104833,"_TP90":"clawlike","_TP91":"unguiculate / unguiculated [Adjective]","_TP92":"Adjective: resembling a claw","_TP93":42936806730104833,"_TP94":635020069298074450,"_TP95":1001,"_TP96":"M-C-A","_TP97":42936806730104834,"_TP98":"claw-shaped","_TP99":"formed [Adjective]","_TP100":"Adjective: shaped like a claw","_TP101":42936806730104834,"_TP102":635020069298078090,"_TP103":1001,"_TP104":"M-C-A","_TP105":42936806731153408,"_TP106":"clayey / cloggy / heavy","_TP107":"compact [Adjective]","_TP108":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP109":42936806731153408,"_TP110":635020069298081770,"_TP111":1001,"_TP112":"M-C-A","_TP113":42936806731153409,"_TP114":"clayey","_TP115":"cloggy / heavy / compact [Adjective]","_TP116":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP117":42936806731153409,"_TP118":635020069298085710,"_TP119":1001,"_TP120":"M-C-A","_TP121":42936806732201984,"_TP122":"cloggy","_TP123":"clayey / heavy / compact [Adjective]","_TP124":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP125":42936806732201984,"_TP126":635020069298091590,"_TP127":1001,"_TP128":"M-C-A","_TP129":42936806732201985,"_TP130":"heavy","_TP131":"clayey / cloggy / compact [Adjective]","_TP132":"Adjective: (used of soil) compact and fine-grained; \"the clayey soil was heavy and easily saturated\"","_TP133":42936806732201985,"_TP134":635020069298097900,"_TP135":1001,"_TP136":"M-C-A","_TP137":42936806733250560,"_TP138":"clean","_TP139":"unaddicted [Adjective]","_TP140":"Adjective: free of drugs; \"after a long dependency on heroin she has been clean for 4 years\"","_TP141":42936806733250560,"_TP142":635020069298100770,"_TP143":1001,"_TP144":"M-C-A","_TP145":42936806733250561,"_TP146":"clean / neat","_TP147":"adroit [Adjective]","_TP148":"Adjective: free from clumsiness; precisely or deftly executed; \"he landed a clean left on his opponent's cheek\"; \"a clean throw\"; \"the neat exactness of the surgeon's knife\"","_TP149":42936806733250561,"_TP150":635020069298103480,"_TP151":1001,"_TP152":"M-C-A","_TP153":42936806733250562,"_TP154":"clean","_TP155":"neat / adroit [Adjective]","_TP156":"Adjective: free from clumsiness; precisely or deftly executed; \"he landed a clean left on his opponent's cheek\"; \"a clean throw\"; \"the neat exactness of the surgeon's knife\"","_TP157":42936806733250562,"_TP158":635020069298106430,"_TP159":1001,"_TP160":"M-C-A"}
ResultString = {"request":"20ce544b-6fca-45ed-bb1e-b44d74edb1cd","success":false,"queryTime":15492,"exception":'An error occurred while processing the script for language [groovy]. All transactions across all graphs in the session have been concluded with failure: javax.script.ScriptException: com.thinkaurelius.titan.core.TitanException: Could not read from storage'}

UnhandedException = System.Exception: Result.Success is false.
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0  ---> System.Exception: Result.Success is false.
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Fabric.Infrastructure.Api.ApiDataAccess.Execute () [0x00000] in <filename unknown>:0 
  at Fabric.Infrastructure.Api.ApiContext.DbDataAccess (System.String pQueryName, IApiDataAccess pDbQuery) [0x00000] in <filename unknown>:0 
  at Fabric.Infrastructure.Api.ApiContext.DbData (System.String pQueryName, IWeaverScript pScripted) [0x00000] in <filename unknown>:0 
  at Fabric.Api.Modify.BatchCreateClass.InsertClass (System.Collections.Generic.List`1 pIndexes, System.Threading.Tasks.ParallelLoopState pState, Int64 pThreadId) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey4E`1[System.Collections.Generic.List`1[System.Int32]].<>m__65 (System.Collections.Generic.List`1 e, System.Threading.Tasks.ParallelLoopState s, Int64 i, System.Object l) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:538 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey52`2[System.Collections.Generic.List`1[System.Int32],System.Object].<>m__70 (KeyValuePair`2 e, System.Threading.Tasks.ParallelLoopState s, System.Object l) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:666 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey45`2[System.Collections.Generic.KeyValuePair`2[System.Int64,System.Collections.Generic.List`1[System.Int32]],System.Object].<>m__4B () [0x000db] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Parallel.cs:383 
  at System.Threading.Tasks.TaskActionInvoker+ActionInvoke.Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:70 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00028] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Task.cs:519 
  at System.Threading.Tasks.Task.ThreadStart () [0x00097] in /usr/src/packages/BUILD/mono-3.0.4/mcs/class/corlib/System.Threading.Tasks/Task.cs:418 
zachkinstner commented 11 years ago

The same exception is reported twice -- so that could be improved, too.

The relevant failure response from Rexster/Titan is shown below. The request seems to be a typical batch Class request for adding 50 new classes.

{
  "request":"20ce544b-6fca-45ed-bb1e-b44d74edb1cd",
  "success":false,
  "queryTime":15492,
  "exception":'An error occurred while processing the script for language [groovy]. All transactions across all graphs in the session have been concluded with failure: javax.script.ScriptException: com.thinkaurelius.titan.core.TitanException: Could not read from storage'
}
zachkinstner commented 11 years ago

The RexConnect request paradigm and Factor batch functionality has changed considerably. This shouldn't be an issue anymore -- closing for now.