Skip to content

Instantly share code, notes, and snippets.

@tbg
Created June 15, 2016 15:46
Show Gist options
  • Save tbg/22d8ed7738e5fb343fd8fe20faee75ef to your computer and use it in GitHub Desktop.
Save tbg/22d8ed7738e5fb343fd8fe20faee75ef to your computer and use it in GitHub Desktop.
ubuntu@cockroach-gamma-6:/mnt$ sudo ~/cockroach debug raft-log ./data 3667
/Local/RangeID/3667/u/RaftLog/logIndex:3222: Type:EntryNormal Term:369 Index:3222 by {4 4 4}
TruncateLog [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465825635820433919 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT trace:<trace_id:8753607241093669424 span_id:8863914755544671070 > max_scan_results:0 distinct_spans:false > requests:<truncate_log:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > index:3220 range_id:3667 > > > max_lease_index:0
/Local/RangeID/3667/u/RaftLog/logIndex:3223: Type:EntryNormal Term:369 Index:3223 by {4 4 4}
LeaderLease [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465826235768891629 logical:0 > replica:<node_id:0 store_id:0 replica_id:0 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT max_scan_results:0 distinct_spans:false > requests:<leader_lease:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > lease:<start:<wall_time:1465826235768871114 logical:0 > start_stasis:<wall_time:1465826236768871114 logical:0 > expiration:<wall_time:1465826237018871114 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > > > > > max_lease_index:0
/Local/RangeID/3667/u/RaftLog/logIndex:3224: Type:EntryNormal Term:369 Index:3224 by {4 4 4}
TruncateLog [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465826235768849361 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT trace:<trace_id:9176614650267925366 span_id:7543755390230151753 > max_scan_results:0 distinct_spans:false > requests:<truncate_log:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > index:3222 range_id:3667 > > > max_lease_index:0
/Local/RangeID/3667/u/RaftLog/logIndex:3225: Type:EntryNormal Term:399 Index:3225 : EMPTY
/Local/RangeID/3667/u/RaftLog/logIndex:3226: Type:EntryNormal Term:399 Index:3226 by {4 4 4}
LeaderLease [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465826478740117465 logical:0 > replica:<node_id:0 store_id:0 replica_id:0 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT max_scan_results:0 distinct_spans:false > requests:<leader_lease:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > lease:<start:<wall_time:1465826478740070436 logical:0 > start_stasis:<wall_time:1465826483240070436 logical:0 > expiration:<wall_time:1465826483490070436 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > > > > > max_lease_index:0
/Local/RangeID/3667/u/RaftLog/logIndex:3227: Type:EntryNormal Term:399 Index:3227 by {4 4 4}
BeginTransaction [/Table/51/1/148168519367664693/"4eb6b92a-1a76-43ac-9f3f-28870e0a5e80"/2912755/0,/Min), ConditionalPut [/Table/51/1/148168519367664693/"4eb6b92a-1a76-43ac-9f3f-28870e0a5e80"/2912755/0,/Min), ConditionalPut [/Table/51/1/148168519367664693/"4eb6b92a-1a76-43ac-9f3f-28870e0a5e80"/2912755/4/1,/Min), EndTransaction [/Table/51/1/148168519367664693/"4eb6b92a-1a76-43ac-9f3f-28870e0a5e80"/2912755/0,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465826478735753404 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > range_id:3667 user_priority:NORMAL txn:<meta:<id:<6f89472b-72c1-4108-883c-01c623fa5396> isolation:SERIALIZABLE key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\210" epoch:0 timestamp:<wall_time:1465826478735753404 logical:0 > priority:289713 sequence:2 batch_index:0 > name:"sql/executor.go:422 sql txn implicit" status:PENDING orig_timestamp:<wall_time:1465826478735753404 logical:0 > max_timestamp:<wall_time:1465826478739972549 logical:0 > observed_timestamps:<key:6 value:<wall_time:1465826478735753404 logical:0 > > writing:false write_too_old:false retry_on_push:false > read_consistency:CONSISTENT trace:<trace_id:4733510395096836323 span_id:1029391647916831505 > max_scan_results:0 distinct_spans:true > requests:<begin_transaction:<header:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\210" > > > requests:<conditional_put:<header:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\210" > value:<raw_bytes:"\313S\341\034\003" timestamp:<wall_time:0 logical:0 > > blind:false > > requests:<conditional_put:<header:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\214\211" > value:<raw_bytes:"\317i\373E\003\237$9\031\322vb\220_\253\030/\021\r\rw\325qTaCW\206\212\027\317\321h\260\201\311B-\244\331Sv[l]\255K\177\323\227N\210i\330\002\237w\365\255\036#\247,\031\027\320jL\004\021\021\230~2\270\030\327\255\323\367o#T\270\032u\023\211\005&\227\0163\225s>\260F\3327\227\346\\\201R\002\004\323\212g\017iz\326<E7\036\3336IN\261\241\211\331\361\353O*\203\036\030\315k5\274\306B\230\352\370n^GAI|\\Z\025}\037\3405\307\332\213\014\237\204\215m\220\300\321\345\233\031\024\307|\366j\303\336\033e\363\314\211\323\323M\310\331\215;\245\365\316\252I\267\363\265\347\2563\250\255?\256\330\206P\347U\220\344\311- \374#7\355A\207\017@\312\215\367\333\232S\226+EF\342\002=\020r\262/\010\302\265\204\026\223\036:|`\341E\373\340o{_\214\214'a\306'K\312\365\222\225\037DY:\236\333\021\306\252\300\0275\374-\345~\035\344\"K\321\326\234\344\213.\354\013\013\376I\255\320@\357j\024\003\260)\307\255g\326\323\t\017\361sA\221^\263\3365\"\311\322\202\t\324\352{\200\321\262B\262\0336V\017\265\276[\0231>\261\307d\037\300\364D\376\253\367\272\214\n\241\271\332\014\004\313\003\221\365\025n\204k \374\235\262\251\251\313C\350f\317;\000fx\211}\256\004\310\375u\330\272e\313*\216!\001I#\342j\326\005t\031=\2734\031\240j\025\320\304O\332\370\243wI\262\334mV\002\363V\312\"\345\313\302%G>6\324\346\026\317\323\375\336<\220\357a\024\010\363\253\357<}Vu,\000\274T7m#3\235\262\2703\265M\374\320\005\036f\363J\365\210wTM\271\351\302\3402\013\336y\372\240%J#N\225\203\373\336|#\375Z\361\3155\022\206\256\262\023\321\373IE\014f0\331\251#q\267\326\267I\210\243\227\351H5+\3250\2250`\t_\327\001\030;\301\222\2042?\343:\225\327\003\337\002\205\340\277\320~\250F\347\246b\343F\277u[\323\212g1\336b;\230\374\347\361K\216\220\243B%\344\323\321(\353\203\346\300\027\307\241\333\023\205\207\315u\354D\342]\177LJ\020')\364~k\014s\017\270\0041a{\365\032\035c\212U\032`\306}\036\0054b)A\213\374\037&\257E\023\032\272\323\375\306\021\346\206\006gtj\205\330\210rV\2478\321\263o\346{\347\235\362K\365\323\013\306sa\204\363\030\007\364m\266\000N\330s{" timestamp:<wall_time:0 logical:0 > > blind:false > > requests:<end_transaction:<header:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\210" > commit:true intent_spans:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\210" > intent_spans:<key:"\273\211\375\002\016f{\273\316$5\0224eb6b92a-1a76-43ac-9f3f-28870e0a5e80\000\001\370,q\363\214\211" > > > > max_lease_index:1
/Local/RangeID/3667/u/RaftLog/logIndex:3228: Type:EntryNormal Term:3112 Index:3228 : EMPTY
/Local/RangeID/3667/u/RaftLog/logIndex:3229: Type:EntryNormal Term:3112 Index:3229 by {5 5 2}
LeaderLease [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:5 store_id:5 replica_id:2 > cmd:<header:<timestamp:<wall_time:1465832520851968775 logical:0 > replica:<node_id:0 store_id:0 replica_id:0 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT max_scan_results:0 distinct_spans:false > requests:<leader_lease:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > lease:<start:<wall_time:1465832520851924090 logical:0 > start_stasis:<wall_time:1465832525351924090 logical:0 > expiration:<wall_time:1465832525601924090 logical:0 > replica:<node_id:5 store_id:5 replica_id:2 > > > > > max_lease_index:0
/Local/RangeID/3667/u/RaftLog/logIndex:3230: Type:EntryNormal Term:3112 Index:3230 by {5 5 2}
BeginTransaction [/Local/Range/"\xbb\x89\xfd\x02\b\xd8$\xf7F\xc3C\x12ea15ce2b-daec-4e93-b8b1-3e356489504b\x00\x01\xf8#\xb6\xaa"/RangeDescriptor,/Min), ConditionalPut [/Local/Range/"\xbb\x89\xfd\x02\b\xd8$\xf7F\xc3C\x12ea15ce2b-daec-4e93-b8b1-3e356489504b\x00\x01\xf8#\xb6\xaa"/RangeDescriptor,/Min), Noop [/Min,/Min)
range_id:3667 origin_replica:<node_id:5 store_id:5 replica_id:2 > cmd:<header:<timestamp:<wall_time:1465832522814160856 logical:0 > replica:<node_id:5 store_id:5 replica_id:2 > range_id:3667 user_priority:NORMAL txn:<meta:<id:<04457ebd-264b-43da-a399-27eefd08b205> isolation:SERIALIZABLE key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" epoch:0 timestamp:<wall_time:1465832522814160856 logical:0 > priority:839993 sequence:3 batch_index:0 > name:"storage/replica_command.go:2603 (*Replica).ChangeReplicas" status:PENDING orig_timestamp:<wall_time:1465832522814160856 logical:0 > max_timestamp:<wall_time:1465832522814160856 logical:0 > observed_timestamps:<key:5 value:<wall_time:1465832522814160856 logical:0 > > writing:false write_too_old:false retry_on_push:false > read_consistency:CONSISTENT trace:<trace_id:4189452783495454382 span_id:4558209559475408646 > max_scan_results:0 distinct_spans:false > requests:<begin_transaction:<header:<key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" > > > requests:<conditional_put:<header:<key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" > value:<raw_bytes:"\025\231\255f\003\010\323\034\0226\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252\0326\273\211\375\002\020\327r}os5\022a34511ab-48b9-4c14-87cc-f18ec0ae991d\000\001\370\027\315~\"\006\010\004\020\004\030\004\"\006\010\005\020\005\030\002\"\006\010\006\020\006\030\005(\006" timestamp:<wall_time:0 logical:0 > > exp_value:<raw_bytes:"?\026\343\274\003\010\323\034\0226\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252\0326\273\211\375\002\020\327r}os5\022a34511ab-48b9-4c14-87cc-f18ec0ae991d\000\001\370\027\315~\"\006\010\004\020\004\030\004\"\006\010\005\020\005\030\002(\005" timestamp:<wall_time:0 logical:0 > > blind:false > > requests:<noop:<> > > max_lease_index:1
/Local/RangeID/3667/u/RaftLog/logIndex:3231: Type:EntryConfChange Term:3112 Index:3231
range_id:3667 origin_replica:<node_id:5 store_id:5 replica_id:2 > cmd:<header:<timestamp:<wall_time:1465832522814160856 logical:0 > replica:<node_id:5 store_id:5 replica_id:2 > range_id:3667 user_priority:NORMAL txn:<meta:<id:<04457ebd-264b-43da-a399-27eefd08b205> isolation:SERIALIZABLE key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" epoch:0 timestamp:<wall_time:1465832522814160856 logical:0 > priority:839993 sequence:9 batch_index:2 > name:"storage/replica_command.go:2603 (*Replica).ChangeReplicas" status:PENDING orig_timestamp:<wall_time:1465832522814160856 logical:0 > max_timestamp:<wall_time:1465832522814160856 logical:0 > observed_timestamps:<key:1 value:<wall_time:1465832522891030051 logical:0 > > observed_timestamps:<key:2 value:<wall_time:1465832522899692163 logical:0 > > observed_timestamps:<key:5 value:<wall_time:1465832522814160856 logical:0 > > writing:true write_too_old:false retry_on_push:false > read_consistency:CONSISTENT trace:<trace_id:4344960665443202734 span_id:4275438377576161091 > max_scan_results:0 distinct_spans:false > requests:<end_transaction:<header:<key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" > commit:true internal_commit_trigger:<change_replicas_trigger:<change_type:ADD_REPLICA replica:<node_id:6 store_id:6 replica_id:5 > updated_replicas:<node_id:4 store_id:4 replica_id:4 > updated_replicas:<node_id:5 store_id:5 replica_id:2 > updated_replicas:<node_id:6 store_id:6 replica_id:5 > next_replica_id:6 > > intent_spans:<key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001rdsc" > intent_spans:<key:"\003\273\211\375\002\020\327r}os5\022a34511ab-48b9-4c14-87cc-f18ec0ae991d\000\001\370\027\315~" > intent_spans:<key:"\225\211\024\371W^\324J\3710\207\034h\375\002\024\275\301\004\271\200\000\210" > intent_spans:<key:"\225\211\024\371W^\324J\3710\207\034h\375\002\024\275\301\004\271\200\000\212\211" > intent_spans:<key:"\225\211\024\371W^\324J\3710\207\034h\375\002\024\275\301\004\271\200\000\213\211" > intent_spans:<key:"\225\211\024\371W^\324J\3710\207\034h\375\002\024\275\301\004\271\200\000\214\211" > intent_spans:<key:"\225\211\024\371W^\324J\3710\207\034h\375\002\024\275\301\004\271\200\000\216\211" > > > > max_lease_index:2
/Local/RangeID/3667/u/RaftLog/logIndex:3232: Type:EntryNormal Term:3112 Index:3232 by {5 5 2}
GC [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Table/51/1/148855674433925941/"a34511ab-48b9-4c14-87cc-f18ec0ae991d"/1559934)
range_id:3667 origin_replica:<node_id:5 store_id:5 replica_id:2 > cmd:<header:<timestamp:<wall_time:1465832523176730548 logical:0 > replica:<node_id:0 store_id:0 replica_id:0 > range_id:0 user_priority:NORMAL read_consistency:CONSISTENT max_scan_results:0 distinct_spans:false > requests:<gc:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" end_key:"\273\211\375\002\020\327r}os5\022a34511ab-48b9-4c14-87cc-f18ec0ae991d\000\001\370\027\315~" > keys:<key:"\001k\022\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\377\001\370#\266\252\000\001txn-\004E~\275&KC\332\243\231'\356\375\010\262\005" timestamp:<wall_time:0 logical:0 > > threshold:<wall_time:0 logical:0 > > > > max_lease_index:3
/Local/RangeID/3667/u/RaftLog/logIndex:3233: Type:EntryNormal Term:3112 Index:3233 by {4 4 4}
LeaderLease [/Table/51/1/146604641168573251/"ea15ce2b-daec-4e93-b8b1-3e356489504b"/2340522,/Min)
range_id:3667 origin_replica:<node_id:4 store_id:4 replica_id:4 > cmd:<header:<timestamp:<wall_time:1465832529434466570 logical:0 > replica:<node_id:0 store_id:0 replica_id:0 > range_id:3667 user_priority:NORMAL read_consistency:CONSISTENT max_scan_results:0 distinct_spans:false > requests:<leader_lease:<header:<key:"\273\211\375\002\010\330$\367F\303C\022ea15ce2b-daec-4e93-b8b1-3e356489504b\000\001\370#\266\252" > lease:<start:<wall_time:1465832529434434957 logical:0 > start_stasis:<wall_time:1465832533934434957 logical:0 > expiration:<wall_time:1465832534184434957 logical:0 > replica:<node_id:4 store_id:4 replica_id:4 > > > > > max_lease_index:3
/Local/RangeID/3667/u/RaftLog/logIndex:3234: Type:EntryNormal Term:3113 Index:3234 : EMPTY
/Local/RangeID/3667/u/RaftLog/logIndex:3235: Type:EntryNormal Term:3113 Index:3235 by {4 4 4}
BeginTransaction [/Table/51/1/147434826225227013/"a4bac401-5fe9-4be7-95c6-abc7a9926f36"/2667777/0,/Min), ConditionalPut [/Table/51/1/147434826225227013/"a4bac401-5fe9-4be7-95c6-abc7a9926f36"/2667777/0,/Min), ConditionalPut [/Table/51/1/147434826225227013/"a4bac401-5fe9-4be7-95c6-abc7a9926f36"/2667777/4/1,/Min), EndTransaction [/Table/51/1/147434826225227013/"a4bac401-5fe9-4be7-95c6-abc7a9926f36"/2667777/0,/Min)
EntryNormal Term:3114 Index:3236 : EMPTY
EntryNormal Term:3115 Index:3237 : EMPTY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment