-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/stats2 #99
Feature/stats2 #99
Conversation
kuenishi
commented
Jul 22, 2015
- Add Riak access stats, mochiweb stats and system stats
- Some code cleanup
@@ -184,11 +184,17 @@ | |||
|
|||
check_no_multipart_uploads(Bucket, RiakPid) -> | |||
HashBucket = stanchion_utils:to_bucket_name(objects, Bucket), | |||
{ok, Keys} = riakc_pb_socket:list_keys(RiakPid, HashBucket), | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two blank lines.
Will some tests come in the next round? |
Those tests will be in riak_cs repo as integration test. Fair? |
Yup. Just want there be an issue or jira ticket for that (to cover my poor memory). |
@@ -1,346 +0,0 @@ | |||
%% --------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great eliminator 🔥
The module Suggestion:
|
There was one wrong point in the above comment. |
@@ -771,13 +717,18 @@ get_keys_and_values(BucketName) -> | |||
{ok, riakc_obj:riakc_obj()} | {error, notfound}. | |||
get_manifests_raw(RiakcPid, Bucket, Key) -> | |||
ManifestBucket = to_bucket_name(objects, Bucket), | |||
riakc_pb_socket:get(RiakcPid, ManifestBucket, Key). | |||
{Res, TAT} = ?TURNAROUND_TIME(riakc_pb_socket:get(RiakcPid, ManifestBucket, Key)), | |||
stanchion_stats:update([riakc, get_manifests], TAT), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing r_t caches typo 😹
Error log was as follows:
2015-07-23 11:41:42.343 [debug] <0.224.0>@stanchion_wm_bucket:delete_resource:123 Bucket: <<"riak-test-bucket">> Requester: <<"FSUNXVTYOMMTSX3Z_XJX">>
2015-07-23 11:41:42.345 [debug] <0.207.0>@stanchion_stats:update:95 Updating [riakc,get_cs_bucket] (1139)
2015-07-23 11:41:42.349 [debug] <0.207.0>@stanchion_stats:update:95 Updating [riakc,list_all_manifest_keys] (4026)
2015-07-23 11:41:42.350 [debug] <0.207.0>@stanchion_stats:update:95 Updating [riakc,get_manifests] (1005)
2015-07-23 11:41:42.350 [error] <0.207.0>@stanchion_utils:do_bucket_op:558 Error on updating bucket riak-test-bucket: {error,{badmatch,{error,not_found}}}
2015-07-23 11:41:42.350 [debug] <0.224.0>@stanchion_server:delete_bucket:105 [bucket,delete] {error,{error,{badmatch,{error,not_found}}}} 7580
2015-07-23 11:41:42.351 [debug] <0.224.0>@stanchion_stats:update:95 Updating [bucket,delete] (7580)
2015-07-23 11:41:42.358 [error] <0.224.0> Webmachine error at path "/buckets/riak-test-bucket" : {error,function_clause,[{stanchion_response,status_code,[{error,{badmatch,{error,not_found}}}],[{file,"src/stanchion_response.erl"},{line,65}]},{stanchion_response,api_error,3,[{file,"src/stanchion_response.erl"},{line,85}]},{webmachine_resource,resource_call,3,[{file,"src/webmachine_resource.erl"},{line,186}]},{webmachine_resource,do,3,[{file,"src/webmachine_resource.erl"},{line,142}]},{webmachine_decision_core,resource_call,1,[{file,"src/webmachine_decision_core.erl"},{line,48}]},{webmachine_decision_core,...},...]}
Finished first round of review. Overall diff seems nice, bunch of code deletion is great 🏆 |
Updated. Will run r_t with cs#1197, too. |
Woops, updated |
Fmm, many riak_test are failing with 500 ... cannot be merged yet. |
Yay!
|
💪 |