Commit Graph

3368 Commits

Author SHA1 Message Date
Juan Batiz-Benet
132add2ffd core/mount: make non-darwin archs see fuseversion
See the note:

// this file is only here to prevent go src tools (like godep) from
// thinking fuseversion is not a required package by non-darwin archs.
2015-01-18 12:38:18 -08:00
Juan Batiz-Benet
2963f48f62 Merge pull request #554 from jbenet/feat/reprovide
basic reprovider implementation
2015-01-17 03:03:01 -08:00
Juan Batiz-Benet
00b099c71f core/cmds: fix go-fuse-version path 2015-01-17 02:45:17 -08:00
Jeromy
acfc35212e add backoff retry to reprovider 2015-01-17 04:31:50 +00:00
Juan Batiz-Benet
647da1bd51 Merge pull request #582 from jbenet/addr-explosion
addr-explosion mitigated adding
2015-01-16 14:42:18 -08:00
Juan Batiz-Benet
c057cea649 addr-explosion mitigated adding
mitigated adding our own addresses where received
from peers

see #573
2015-01-16 11:38:46 -08:00
Juan Batiz-Benet
f78d4141a1 Merge pull request #581 from jbenet/net-diag-d3
moved our d3view to own repo
2015-01-16 11:38:24 -08:00
Juan Batiz-Benet
b896eef3bb Moved out d3view
d3view is now in its own repo:
https://github.com/jbenet/ipfs-diag-net-d3-vis

This is so we can iterate on it quickly without having to
needlessly waste CI resources.

The repo also installs it for you:

```sh
git clone github.com/jbenet/ipfs-diag-net-d3-vis d3view
cd d3view
sudo make install
```
2015-01-16 11:30:10 -08:00
Juan Batiz-Benet
cff596d42a diag/net: more powerfil d3 vis 2015-01-16 02:12:24 -08:00
Juan Batiz-Benet
5f81d9638d diag/net: graphme restyling 2015-01-16 02:11:36 -08:00
Jeromy
a6ec12a17d selected changes from CR 2015-01-16 06:17:18 +00:00
Brian Tiger Chow
4a176d14af Merge pull request #570 from jbenet/feat/eventbegin
Feat/eventbegin
2015-01-15 14:28:26 -08:00
Jeromy
6bfb9d838c remove low signal log messages 2015-01-15 22:01:33 +00:00
Jeromy
7c9431ba23 add events for handlers 2015-01-15 17:47:36 +00:00
Jeromy
3c55902811 rewrite as single line defer logs 2015-01-15 04:45:34 +00:00
Jeromy
bae8b9f4c0 starting to move important events over to EventBegin/Done 2015-01-15 04:17:17 +00:00
Juan Batiz-Benet
ac26b70544 Merge pull request #547 from jbenet/fix/mux-privatize
fix: privatize Mux fields
2015-01-14 18:35:03 -08:00
Brian Tiger Chow
abe6cad3a3 Merge pull request #563 from jbenet/hotfix/fsrepo-leveldb-multi-open
hotfix(FSRepo) allow multiple goroutines to call
2015-01-14 18:26:56 -08:00
Brian Tiger Chow
bc76d2e526 fix(fsrepo/datastore) allow goroutines to share the datastore.
doh! I forgot to make sure leveldb is only opened once. thanks for catching this @mappum

* You may be wondering why we don't just share pointers to FSRepos. We
  want to manage the lifecycle of the FSRepo by tracking its `state`.
  Thus each FSRepo/goroutine requires private instance variables. For
  this reason, each `fsrepo.At(p)` caller must get its own goroutine.

* There's a test in `fsrepo` because callers desire the ability to Open
  from multiple goroutines. There's a test in `component` because this
  is where the actual work needs to go in order to provide the desired
  contract. If the `component` package moves, the assurances need to
  move along with it.

cc @whyrusleeping @jbenet

side note: there are a couple packages in FSRepo that it might be
worthwhile to extract once the dust settles on this feature-set.
2015-01-14 18:23:15 -08:00
Brian Tiger Chow
440de64d97 refactor(fsrepo/test) extract assert
@jbenet will move in upcoming branch/PR
2015-01-14 18:22:25 -08:00
Brian Tiger Chow
2fc97ad896 Merge pull request #564 from jbenet/feat/eventlogBeginDone
feat(eventlog): e := EventBegin; e.Done()
2015-01-14 17:56:50 -08:00
Brian Tiger Chow
b252d0450d feat(eventlog): e := EventBegin; e.Done()
```Go
e := log.EventBegin(ctx, "provide")
e.Done()

e := log.EventBegin(ctx, "provide")
e.Close() // implements io.Closer in case you want to register with some lifecycle management system.
```
2015-01-14 17:55:28 -08:00
Juan Batiz-Benet
f70c57d8d2 Merge pull request #562 from jbenet/net-diag-d3
more d3 niceness.
2015-01-14 16:56:29 -08:00
Matt Bell
01cca5bfe2 diagnostics/d3: Added link highlighting 2015-01-14 16:48:50 -08:00
Brian Tiger Chow
47701aaa2b Merge pull request #566 from jbenet/races
race fixes
2015-01-14 16:35:34 -08:00
Brian Tiger Chow
c341df0a4c fix(mux) expose method to SetDefaultHandler 2015-01-14 16:26:21 -08:00
Brian Tiger Chow
2678795dac fix: privatize Mux fields 2015-01-14 16:18:01 -08:00
Juan Batiz-Benet
a14d77e368 diagnostics/d3: node sizes 2015-01-14 16:16:26 -08:00
Juan Batiz-Benet
16690d4af2 race fix: pinner loads with a threadsafe datastore
All the datastores used by pinners and so on should be mutex
wrapped. One issue with changing all of them from
ds.Datastore -> ds.ThreadSafeDatastore is that we wrap the
incoming ds.ThreadSafeDatastore with other datastores, which
do not implement the interface. Re-wrapping again causes
double locking. (which may be ok..., but...) any ideas?
2015-01-14 16:15:38 -08:00
Juan Batiz-Benet
4af5d85fac Merge pull request #565 from jbenet/ci-pkgs
testutil ci pkgs check env vars
2015-01-14 16:15:15 -08:00
Brian Tiger Chow
50047dcf27 Update jenkins.go 2015-01-14 16:07:26 -08:00
Juan Batiz-Benet
0311c0518d testing/ci: all env var checks now use new pkgs
Good thing, i checked one wrong, too!
2015-01-14 16:01:03 -08:00
Juan Batiz-Benet
73b3c30452 ci-pkgs: added travis and jenkins ci pkgs 2015-01-14 15:37:10 -08:00
Jeromy
a7650b259d add test for reprovider and slight refactor 2015-01-14 22:14:52 +00:00
Juan Batiz-Benet
01283b92f7 Merge pull request #556 from jbenet/net-diag-viewer
diag/net: visualizing in d3 and dot
2015-01-14 10:32:56 -08:00
Juan Batiz-Benet
a2cee3f165 diagnostics/d3: added # of conns 2015-01-14 10:29:55 -08:00
Brian Tiger Chow
2dd8eaae3f Merge pull request #559 from jbenet/feat/repo-fsrepo-filelock
refactor(fsrepo.FSRepo): manage the Datastore and daemon.lock
2015-01-14 10:20:47 -08:00
Brian Tiger Chow
bd1d8767eb doc(fsrepo): explain ConfigAt 2015-01-14 10:06:55 -08:00
Brian Tiger Chow
30a5aa9b04 feat(repo): expose the Datastore() in repo.Repo interface 2015-01-14 09:26:13 -08:00
Juan Batiz-Benet
dd409fb151 diagnostics/d3/view: added chord viewer hash 2015-01-14 09:23:48 -08:00
Brian Tiger Chow
12116dd6e4 style(fsrepo): rename to counter.Openers 2015-01-14 09:18:57 -08:00
Juan Batiz-Benet
b9f828e1e3 diagnostics: added chord viewer 2015-01-14 09:18:21 -08:00
Juan Batiz-Benet
2669479056 diagnostics/d3 viewer.html -> force.html 2015-01-14 09:17:48 -08:00
Brian Tiger Chow
b666163e52 test(fsrepo)PERF allow tests to run in parallel 2015-01-14 09:15:06 -08:00
Brian Tiger Chow
6396123b7f feat(fsrepo): expose Datastore in FSRepo interface (+ test) 2015-01-14 09:14:16 -08:00
Brian Tiger Chow
b685f92c95 test(fsrepo): InitIdempotence, NilRemoval, ReopeningDisallowed 2015-01-14 09:05:43 -08:00
Brian Tiger Chow
ece9ed0933 feat(fsrepo): integrate datastore component into FSRepo
"for each desired change, make the change easy (warning: this may be
hard), then make the easy change" - Kent Beck

https://twitter.com/KentBeck/status/250733358307500032

http://martinfowler.com/articles/preparatory-refactoring-example.html

cc @jbenet @whyrusleeping
2015-01-14 08:41:45 -08:00
Brian Tiger Chow
4ba4ee3a0d feat(fsrepo/component.datastore) basic shell 2015-01-14 08:41:45 -08:00
Brian Tiger Chow
7ad559b8c7 refactor(fsrepo, component): expose SetPath to ensure that components handle paths 2015-01-14 08:41:45 -08:00
Brian Tiger Chow
b660305142 extract initCheckDir to dir.Writable 2015-01-14 08:41:45 -08:00