Skip to content

Commit

Permalink
Update the stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitzchak Yitzchaki committed Jun 10, 2012
1 parent 5e1961c commit 21a8c77
Showing 1 changed file with 26 additions and 23 deletions.
Expand Up @@ -46,29 +46,32 @@ RavenDB surfaces index execution errors in two places, the first is the database
The following is the output of the '/stats' endpoint: The following is the output of the '/stats' endpoint:


{CODE-START:json /} {CODE-START:json /}
{ {
"CountOfIndexes":1, "LastDocEtag": "00000000-0000-0b00-0000-000000000001",
"CountOfDocuments":1, "LastAttachmentEtag": "00000000-0000-0000-0000-000000000000",
"StaleIndexes":[ "CountOfIndexes": 1,

"ApproximateTaskCount": 0,
], "CountOfDocuments": 1,
"Indexes":[ "StaleIndexes": [],
{ "CurrentNumberOfItemsToIndexInSingleBatch": 512,
"Name":"PostsByTitle", "CurrentNumberOfItemsToReduceInSingleBatch": 256,
"IndexingAttempts":1, "Indexes":[
"IndexingSuccesses":0, {
"IndexingErrors":1 "Name": "PostsByTitle",
} "IndexingAttempts": 1,
], "IndexingSuccesses": 0,
"Errors":[ "IndexingErrors": 1
{ }
"Index":"PostsByTitle", ],
"Error":"Cannot perform runtime binding on a null reference", "Errors":[
"Timestamp":"\/Date(1271778107096+0300)\/", {
"Document":"bob" "Index": "PostsByTitle",
} "Error": "Cannot perform runtime binding on a null reference",
] "Timestamp": "\/Date(1271778107096+0300)\/",
} "Document": "bob"
}
]
}
{CODE-END /} {CODE-END /}


As you can see, RavenDB surfaces both the fact that the index has encountered, what was the document it errored on, and what that error was. The errors collection contains the last 50 errors that happened on the server. As you can see, RavenDB surfaces both the fact that the index has encountered, what was the document it errored on, and what that error was. The errors collection contains the last 50 errors that happened on the server.
Expand Down

0 comments on commit 21a8c77

Please sign in to comment.