Commit Graph

5803 Commits

Author SHA1 Message Date
Mathieu Lonjaret d20ad1570e Merge "server/synchandler: add exported constructor and IdleWait method" 2016-01-28 00:57:56 +00:00
mpl 1773eb0859 server/synchandler: add exported constructor and IdleWait method
This change allows (for example) to hook a blobserver and an indexer
together in a way similar as they would be in a default Camlistore setup.
This is particularly useful to setup tests that require a realistic
indexer, without having to create a heavier test with e.g. test.World.

This actual goal of this change is described below. I kept these changes
together because the one described below illustrates the need for the
synchandler changes.

pkg/index/stress/: stress test the indexer with more data

The goal of these benchmkarks is to help us compare the various sorted
implementations, so we can pick the most efficient one as a default.

A second, harder, goal would be to add tests that help us estimate the
reliability of the various kv stores, again so we can rule out the buggy
ones, or help fix them.

Change-Id: I8a1fe50398a4ba09c03786502b68b6c2599e5984
2016-01-28 01:56:00 +01:00
Brad Fitzpatrick e06e20fc14 Merge "index/Corpus: add Attrs cache to PermanodeMeta" 2016-01-27 23:28:42 +00:00
Attila Tajti 44b4e855d2 index/Corpus: add Attrs cache to PermanodeMeta
- add an Attrs map to PermanodeMap that is kept in sync with Claims
- update Attrs map on scanFromStorage and whenever a new blobRef is added
- add fast path to AppendPermanodeAttrValues(Locked),
  PermanodeAttrValueLocked and PermanodeHasAttrValueLocked
- fix bugs in and add tests for PermanodeHasAttrValueLocked and
  PermanodeAttrValueLocked slow path

Change-Id: Ib0dcdcf9355dd5fa8588c872721a029ec114cb6b
2016-01-27 17:09:18 +01:00
Mathieu Lonjaret ef2d940415 Merge "vendor: update go4.org/lock" 2016-01-27 15:07:32 +00:00
mpl c38f2a8ea2 pkg/misc/amazon/s3: fix test for Client
Because omitted in b9aec12f31

Change-Id: I2ca82360b3ff90d65be6f84eabdb785efcee99a9
2016-01-27 15:57:14 +01:00
mpl f4c5839f8c vendor: update go4.org/lock
To rev 9ba773eba85ab9e258ff516630f7f6474bc4535b

Change-Id: I32ac9fdc825e178548aaa5efc7ad219b2ec68465
2016-01-27 15:40:30 +01:00
mpl ba0126e899 blobserver/blobpacked: fix manifest doc example
Change-Id: Ibfd212d714b568565d09470ee1d6edce58731088
2016-01-26 15:25:50 +01:00
mpl b9aec12f31 blobserver/s3: limit concurrent PutObject calls
Fixes issue #675

Since camput does not seem affected by the above issue, and that camput
(pkg/client really) main difference in how it uploads is that it does
gated requests, it seemed to follow that gating the requests might fix
the problem.

With this change, I don't see the problem anymore either in
TestS3WriteFiles or by manually uploading with the web UI.

I suppose this indicates that S3 throttles incoming connections pretty
strictly, but I have no formal evidence of it.

Change-Id: I48f10923a710f4a21e44bc251e648db37ae504ec
2016-01-25 21:39:57 +01:00
mpl 39f50aa70e blobserver/s3: new test for writing files
Initially for debugging issue #675

Change-Id: I7907e7a37b197762befe6a133718ed87fc0b57d2
2016-01-22 17:16:43 +01:00
mpl 74aa3fa163 vendor: go4.org/lock
imported at rev 96a2350179b917865057073eb6dd6e4488913ba2

Change-Id: Icae1af8b0e78779e9b462f71abf779387ab695b9
2016-01-20 17:22:59 +01:00
mpl 58af581a24 dock.go: print binaries tarball path
Fixes issue #664

Change-Id: I8af4882be32c9452726a40f468b408367705a04c
2016-01-20 00:13:19 +01:00
Mathieu Lonjaret c6fa8ab12d Merge "website: fix missing return from prev commit" 2016-01-18 23:48:21 +00:00
mpl 60a2885a20 website: fix missing return from prev commit
Change-Id: Ia74013db252601a9dbd7eb7911e1dc892e1c56b4
2016-01-19 00:46:46 +01:00
Mathieu Lonjaret 35b201a71e Merge "website: make /apiget in demo authenticated too" 2016-01-18 23:41:30 +00:00
mpl 528a201827 website: make /apiget in demo authenticated too
Change-Id: Ief662a69774fcc919c4e3618df91886cb1f05b84
2016-01-19 00:39:13 +01:00
Mathieu Lonjaret 3beeb86104 Merge "website: chrome bug repro demo" 2016-01-18 23:05:01 +00:00
mpl f478c6cc67 website: chrome bug repro demo
For issue #660

Change-Id: I7b53da99b4ba50a6ec5818d291083aab72f994ab
2016-01-19 00:03:36 +01:00
Mathieu Lonjaret 2b78dca037 Merge "camtool sync: local path support on Windows" 2016-01-18 17:49:34 +00:00
Mathieu Lonjaret b77942f71a Merge "Change the diskpacked reindex test data, fix hash" 2016-01-16 14:15:36 +00:00
Brad Fitzpatrick 8e62e24ac0 Merge "adding keys to fields to make go vet happy" 2016-01-16 03:27:42 +00:00
mpl 606cfcb635 vendor: update cloud/storage
To 392f2aeac3d98ee75147c8cd8f92e4f65104b0bb

Mainly so we can use the new Reader.

Change-Id: I61d88ba2bae4e8732d3426b5ae66b7ff2d89e89b
2016-01-15 00:03:27 +01:00
Attila Tajti f0343c0fae camtool sync: local path support on Windows
Change-Id: I2d3e0c0bbd3f3ae50165d366e6a1093fceb36e5c
2016-01-11 12:00:37 +01:00
Stephen Searles 23457fb56a adding keys to fields to make go vet happy
Change-Id: I28e38da6f5499c3284e647b1c123bcfc882120f7
2016-01-09 00:34:55 -08:00
Mathieu Lonjaret ea4b5e477a Merge "vendor: update http2" 2016-01-08 15:03:24 +00:00
mpl 3b91e403e4 vendor: update http2
From golang.org/x/net/http2 at 415f1917e1dbc946ec834288a8a1e5ff6eee2900

Change-Id: If03d7d2eb3080628fc04110f927d8c7b80612508
2016-01-08 15:45:30 +01:00
Tamás Gulácsi 14d074d3d2 Change the diskpacked reindex test data, fix hash
And try to underscore that the last byte is an LF, which must be kept
and accounted for.

Andy Song raised my attention to this ambiguity.

Change-Id: Ia352980350e44b57f47394841f643a737b91dda7
2016-01-08 15:00:01 +01:00
mpl 630ed571ee pkg/client: fix transport tests for fba8b457de
Fixes issue #672

Change-Id: I36ff0bc588986582968ea478def9d67276cbea77
2016-01-07 15:50:47 +01:00
mpl 0b1fbe5b5e dock.go: fix flag doc typo for version
Change-Id: Ic390de75f579892855688a832008678c607084b7
2016-01-07 00:15:47 +01:00
mpl c88d81a2fd sorted/mysql: remove DB from pool when closing
Otherwise when openOrCachedDB is called for the second time,
it would return an actually closed DB.

Change-Id: I820834e508fed1a34ab7bd19a8a91e398badff9c
2016-01-06 20:42:52 +01:00
Mathieu Lonjaret 77dcc0559d Merge "dockertest: use official mysql image" 2016-01-06 18:39:32 +00:00
mpl 4662076934 dockertest: use official mysql image
Because orchardup/mysql is deprecated.

I had to increase the timeout, because this image takes at least twice
as long to start compared with the orchardup one. (tests went from ~5s to
~11s here).

Change-Id: I42c485d736c65ce9d93aabf02b1de73e6ac799ff
2016-01-06 19:38:13 +01:00
Mathieu Lonjaret 92568bd8b6 Merge "pkg/client: set camliType, use correct blobref" 2016-01-06 17:24:03 +00:00
mpl 00f370f38c pkg/serverinit: fix test after 7b78c50007
Change-Id: I36800bcf5f1a2e8f19890c97372297f9281999ba
2016-01-06 18:11:52 +01:00
Attila Tajti 0d49cffb44 pkg/client: set camliType, use correct blobref
- make sure camliType is set to "file" in UploadFile
- fileMapFromDuplicate uses the blob ref calculated from the
  file schema blob in the call to ReceiveBlob
- add test for above changes
- TestTransportSetup updated after field name change
- hasComponent fixed for case fullpath[:len(component)] == component
- hasComponent returns true if the first match is missing either separator,
  but there is another match down the path
- add special handling for Windows in hasCompontent and TestIgnoreFns

Change-Id: I96325b060e9421709bd9f684bcc9eceed7135f7b
2016-01-06 17:44:08 +01:00
mpl 8e2867a3e1 fastjpeg: remove work-around for os/exec bug
Because that was a hack for isssue #550 , which has been properly fixed
in Go 1.5

Issue #621

Change-Id: I5def4b0ea2f4887a052985997249d9e71a0b93c9
2016-01-04 22:10:34 +01:00
Brad Fitzpatrick 8e862472a4 website: update homepage's latest release
Change-Id: Ib972aa046b64cc3aab9d9f864db5a2d3de600499
2015-12-30 11:14:21 -08:00
Brad Fitzpatrick cf0c847fbf website: the 0.9 release is now named Astrakhan, and out.
And fix some text and redirects.

Change-Id: I8cf26a028fe79b6daa8817caff85279e314d12c6
2015-12-30 11:10:51 -08:00
Brad Fitzpatrick 33ce243eb9 website: redirect bare /dl to /download
Change-Id: Ie5f249d478fcb589824c056bf61c7af7c54155ab
2015-12-30 10:50:54 -08:00
Brad Fitzpatrick 01eb400955 misc/docker/dock.go: make final download tarballs public
Change-Id: I842b76ce68fe99530bd0a85f0dbdcdd6925e1b5a
2015-12-30 10:50:42 -08:00
Brad Fitzpatrick 7b78c50007 Update help handler's text, especially for GCE users.
Fixes camlistore/camlistore#666

Change-Id: Ifb2868a16d3adc425e42cf1d6d3184f31114fa19
2015-12-30 10:33:25 -08:00
Brad Fitzpatrick 9d6fba7ea3 misc/docker/dock.go: make the copied Docker image also public
Change-Id: I8c292605b17efe5e285ea399cd32ba053d9728ad
2015-12-30 09:24:34 -08:00
Brad Fitzpatrick fbbbc8a81f Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2015-12-30 09:07:10 -08:00
Brad Fitzpatrick 8888d4256f misc/docker/dock.go: fail if tarball_version and build_image both set
Change-Id: I985cba6a8de0eb9f5e5e008ea0153d4a417991da
2015-12-30 09:07:07 -08:00
Mathieu Lonjaret fc69651aad Merge "misc/docker: TODOs for public link and version stamping" 2015-12-30 10:59:42 +00:00
mpl 3a902458ef misc/docker: TODOs for public link and version stamping
Change-Id: Ic1573ffa85e10e8f330676bfd7a19369763e4a4d
2015-12-30 11:58:01 +01:00
Mathieu Lonjaret 4b76b169bf Merge "website: 0.9 notes: images resizing" 2015-12-30 10:56:59 +00:00
Mathieu Lonjaret f1b523d068 Merge "website: 0.9 notes: devcam hook" 2015-12-30 10:52:52 +00:00
Brad Fitzpatrick 66f0ddac0e pkg/client: fix directory upload deadlock, clean up HTTP handling
Unexports pkg/client.Client.TransportForConfig in the process.

Fixes camlistore/camlistore#662

Change-Id: Ifc2d6b0fee70d5db86654897d2d377b343b6d38b
2015-12-29 23:39:29 -08:00
mpl ddd27e90ae website: 0.9 notes: images resizing
Change-Id: I7284aacc3c54aad9c84c1291f20fc343c712ebb5
2015-12-30 00:30:49 +01:00