Skip to content

Instantly share code, notes, and snippets.

Steves-MBP:bleve steveyen$ go vet ./...
search/highlight/term_locations_test.go:343: search.Locations composite literal uses unkeyed fields
search/highlight/term_locations_test.go:365: search.Locations composite literal uses unkeyed fields
search/highlight/term_locations_test.go:388: search.Locations composite literal uses unkeyed fields
search/highlight/term_locations_test.go:414: search.Locations composite literal uses unkeyed fields
search/highlight/term_locations_test.go:440: search.Locations composite literal uses unkeyed fields
search/highlight/term_locations_test.go:466: search.Locations composite literal uses unkeyed fields
exit status 1
search/highlight/fragment_formatters/html/fragment_formatter_html_test.go:32: search.Locations composite literal uses unkeyed fields
search/highlight/fragment_formatters/html/fragment_formatter_html_test.go:67: search.Locations composite literal uses unkeyed fields
@steveyen
steveyen / gist:3f63ed1fe79b78876ff0
Created February 17, 2016 18:30
errcheck speedbumps
Steves-MacBook-Pro:bleve steveyen$ which -a errcheck
/Users/steveyen/go/bin/errcheck
Steves-MacBook-Pro:bleve steveyen$ ls -al ~/go/bin/errcheck
-rwxr-xr-x 1 steveyen staff 6141328 Feb 16 22:22 /Users/steveyen/go/bin/errcheck
Steves-MacBook-Pro:bleve steveyen$
Steves-MacBook-Pro:bleve steveyen$ pwd
/Users/steveyen/go/src/github.com/blevesearch/bleve
Steves-MacBook-Pro:bleve steveyen$
Steves-MacBook-Pro:bleve steveyen$ errcheck
error: failed to check packages: could not parse arguments: import ".": import relative to unknown directory
@steveyen
steveyen / gist:2ea1738dcc93e5c761b4
Created February 17, 2016 18:41
go vet on bleve on steve macbook
Steves-MacBook-Pro:bleve steveyen$ git log
commit 54774a9e5f1b2941e567d90d67b601d1e457c644
Author: Steve Yen <[email protected]>
Date: Tue Feb 16 22:20:44 2016 -0800
use logf to pass go vet
commit 57cd5e0ced92114744a45f5e011730bddddcfc4f
Author: Steve Yen <[email protected]>
Date: Tue Feb 9 17:29:58 2016 -0800
Steves-MacBook-Pro:cbft steveyen$ make LICENSE-thirdparty.txt
./dist/go-manifest | ./dist/gen-license-thirdparty > LICENSE-thirdparty.txt
Steves-MacBook-Pro:cbft steveyen$ cat LICENSE-thirdparty.txt
# third party components / licenses
javascript/css components:
- angular
- angular-bootstrap
- angular-route
- angular-ui-tree
Steves-MacBook-Pro:ns_server steveyen$ tail -f logs/n_1/fts.log
2016-03-16T10:21:39.875-07:00 [INFO] ctl/manager, PrepareTopologyChange, change: {9c5e270a38aa542205f25a9a3504bd85 [] topology-change-rebalance [{{8aea445c995d1da87695aced652cd56b 0 <nil>} recovery-full}] []}
2016-03-16T10:21:39.875-07:00 [INFO] ctl/manager, PrepareTopologyChange, done
2016-03-16T10:21:39.875-07:00 [INFO] ctl/manager, GetTaskList, haveTasksRev: 0, changed, rv: &service.TaskList{Rev:service.Revision{0x32}, Tasks:[]service.Task{service.Task{Rev:service.Revision{0x31}, ID:"prepare:9c5e270a38aa542205f25a9a3504bd85", Type:"task-prepared", Status:"task-running", IsCancelable:true, Progress:100, DetailedProgress:map[service.NodeID]float64(nil), Description:"prepare topology change", ErrorMessage:"", Extra:map[string]interface {}{"topologyChange":service.TopologyChange{ID:"9c5e270a38aa542205f25a9a3504bd85", CurrentTopologyRev:service.Revision(nil), Type:"topology-change-rebalance", KeepNodes:[]struct { NodeInfo service.NodeInfo "json:\"
Steves-MacBook-Pro:MB-19207 steveyen$ ~/dev/couchbase-server.watson/goproj/src/github.com/couchbase/cbft/cmd/cbft_cbcollect_info_analyze extract /api/diag cbcollect_info_n_1\@10.72.57.110_20160414-154850/ | jq '.["/debug/pprof/goroutine?debug=2"] | split("\n")'
[
"goroutine 3350 [running]:",
"runtime/pprof.writeGoroutineStacks(0x7164460, 0xc823083730, 0x0, 0x0)",
"\t/Users/steveyen/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/pprof/pprof.go:516 +0x84",
"runtime/pprof.writeGoroutine(0x7164460, 0xc823083730, 0x2, 0x0, 0x0)",
"\t/Users/steveyen/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/pprof/pprof.go:505 +0x46",
"runtime/pprof.(*Profile).WriteTo(0x5342e00, 0x7164460, 0xc823083730, 0x2, 0x0, 0x0)",
"\t/Users/steveyen/.cbdepscache/exploded/x86_64/go-1.6/go/src/runtime/pprof/pprof.go:236 +0xd4",
"github.com/couchbase/cbgt/rest.DiagGetPProf(0x5f83360, 0xc8231f8280, 0x4ceb060, 0x9, 0x2)",
2016-04-28T14:51:52-367 [email protected]_20160428-215006/ns_server.fts.log:21205304:13090 NAME [managerStats "pindexes" "default_index_1_5e171830606cf32f_0a44bddb" "bleveIndexStats" "index" "kv" "kv" "moss"] CurDirtyBytes = INT 299178
2016-04-28T14:51:52-367 [email protected]_20160428-215006/ns_server.fts.log:21205304:13090 NAME [managerStats "pindexes" "default_index_1_5e171830606cf32f_0ffd4517" "bleveIndexStats" "index" "kv" "kv" "moss"] CurDirtyBytes = INT 0
2016-04-28T14:51:52-367 [email protected]_20160428-215006/ns_server.fts.log:21205304:13090 NAME [managerStats "pindexes" "default_index_1_5e171830606cf32f_24e7ea2d" "bleveIndexStats" "index" "kv" "kv" "moss"] CurDirtyBytes = INT 443915
2016-04-28T14:51:52-367 [email protected]_20160428-215006/ns_server.fts.log:21205304:13090 NAME [managerStats "pindexes" "default_index_1_5e171830606cf32f_27184a97" "bleveIndexStats" "index" "kv" "kv" "moss"] CurDirtyBytes = INT 0
2016-04-28T1
unexpected mismatch for term 'strand', dictionary 18, search hits 19
unexpected mismatch for term 'Rowling's', dictionary 4, search hits 5
unexpected mismatch for term 'honoring', dictionary 12, search hits 13
unexpected mismatch for term 'interchangeably', dictionary 13, search hits 14
unexpected mismatch for term 'es:El', dictionary 1, search hits 2
unexpected mismatch for term 'barely', dictionary 29, search hits 30
unexpected mismatch for term 'axons', dictionary 3, search hits 5
unexpected mismatch for term 'gather', dictionary 35, search hits 36
unexpected mismatch for term 'Postel', dictionary 4, search hits 5
unexpected mismatch for term 'Texans', dictionary 7, search hits 9
{
"index_type": "upside_down",
"kvstore": "moss",
"kvconfig": {
"mossDebug": 1,
"mossLowerLevelStoreName": "mossStore"
}
}
{
"type": "fulltext-index",
"name": "custom_index",
"uuid": "2f597b2acd3cb07b",
"sourceType": "couchbase",
"sourceName": "default",
"sourceUUID": "",
"planParams": {
"maxPartitionsPerPIndex": 32,
"numReplicas": 0,