Skip to content
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

Release/2.8.2 #2

Open
wants to merge 571 commits into
base: mz2/multicookie
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
571 commits
Select commit Hold shift + click to select a range
cec9aca
CBG-716: Fail on unknown fields on config PUT (#4536)
JRascagneres Mar 19, 2020
962ff96
: Reliably flush to console on Fatalf (#4537)
JRascagneres Mar 19, 2020
8ed74f7
CBG-738: Support use of cacert without certpath/keypath for DCP boots…
sarathkumarsivan Mar 20, 2020
136e54a
CBG-724: Deletions of empty documents are not imported (#4531)
sarathkumarsivan Mar 20, 2020
1bb9da2
Fix for unresolved reference to err variable introduced as part of co…
sarathkumarsivan Mar 20, 2020
f1a2584
CBG-762: hasActiveSubChanges race fix (#4540)
JRascagneres Mar 25, 2020
8084478
CBG-752: SGCollect avoid unnecessary unzip (#4541)
JRascagneres Mar 27, 2020
759cf17
CBG-812 - Fixes infinite loop caused by stale view query when running…
bbrks Apr 1, 2020
86c4c4c
Make mockClaims expire far into the future (#4547)
bbrks Apr 7, 2020
b530db3
CBG-625 - Integration Test Bucket Pooling (#4493)
bbrks Apr 8, 2020
2b5c83f
CBG-763 Avoid race in cache compaction start (#4548)
adamcfraser Apr 8, 2020
1a92d84
Bump go-fleecedelta revision for null delta fix (#4550)
bbrks Apr 8, 2020
f61cd2c
CBG-808: Add LiteCore tests (#4546)
JRascagneres Apr 14, 2020
d95a0d3
CBG-814 Do not prepend filtered query results to channel cache (#4554)
adamcfraser Apr 20, 2020
6b97c31
CBG-825: Allow session create with invalid session (#4555)
JRascagneres Apr 20, 2020
39bc492
CBG-823: JSON error improvements (#4556)
JRascagneres Apr 27, 2020
6862817
CBG-801: Auto-generated OIDC callback URL should include provider whe…
sarathkumarsivan Apr 27, 2020
c2fbffd
CBG-821 Query limit for channel queries (#4557)
adamcfraser Apr 28, 2020
6b08317
CBG-754: Disable builds of old releases (#4560)
JRascagneres Apr 28, 2020
f6b5966
CBG-771 Refactor CfgSG for reuse by sg-replicate (#4562)
adamcfraser May 1, 2020
0a64ba8
CBG-815: Avoid mutating sgIndexes in tests (#4561)
JRascagneres May 5, 2020
a4880c8
CBG-840 Setup for 2.7.3 builds (#4564)
adamcfraser May 6, 2020
8071457
CBG-816 Update gocbconnstr to v1.0.5 for SRV support (#4565)
adamcfraser May 6, 2020
ac2ee20
CBG-845 Backport gocbconnstr update for SRV support to 2.7.3 (#4566)
adamcfraser May 6, 2020
21975e2
CBG-771 Replication distribution config (#4567)
adamcfraser May 6, 2020
26527ca
Add NumUsableBuckets method to test bucket pool (#4569)
bbrks May 6, 2020
a28e28f
CBG-842 - Add TestBucket override for RestTester (#4568)
bbrks May 6, 2020
4fa7d54
Add timeout to bucket pool GetTestBucketAndSpec (#4570)
bbrks May 7, 2020
82489a3
CBG-769 Replication rebalance (#4573)
adamcfraser May 11, 2020
8c57c2b
Replace GetTestKeyNamespace with t.Name (#4572)
bbrks May 13, 2020
029eae4
CBG-852 Stub out new sg-replicate API (#4574)
adamcfraser May 13, 2020
c1674e6
Remove internal resttester method that could be mistakenly used by te…
bbrks May 14, 2020
717fe5f
Prevent double close of pooled test buckets (#4576)
bbrks May 14, 2020
c2d2869
Add x509 test framework and happy-path rountrip write tests (#4579)
bbrks May 15, 2020
97930a9
Verification of new OIDC coverage against the old library (#4575)
sarathkumarsivan May 15, 2020
039182b
CBG-765 File-based replication config (#4580)
adamcfraser May 19, 2020
1d5b30d
Test fix for updated utility function name (#4583)
adamcfraser May 19, 2020
0617d01
CBG-870: TestOpenIDConnectAuth occasionally failing on Build Jenkins …
sarathkumarsivan May 20, 2020
0674d5e
CBG-804: OpenID Connect Library Upgrade (#4581)
sarathkumarsivan May 20, 2020
368de03
Fix windows build failure due to TestOIDCProvider_InitOIDCClient fail…
sarathkumarsivan May 21, 2020
790d3da
CBG-877: Remove inappropriate logging warning related JSON parsing fr…
sarathkumarsivan May 21, 2020
799a906
CBG-876: Include Bearer prefix when sending token base authentication…
sarathkumarsivan May 22, 2020
d49174d
CBG-779: Add ActiveReplicator APIs and implement blipsync (#4588)
bbrks May 26, 2020
d406a56
CBG-770-prereq Refactor heartbeater to support multiple listeners (#4…
adamcfraser May 27, 2020
216dd52
Remove unsigned_id_token option that is no longer in use after OpenID…
sarathkumarsivan May 27, 2020
b5f50c7
Start import heartbeater prior to listener registration (#4592)
adamcfraser May 27, 2020
be858d5
CBG-820: Add state for OIDC auth code authentication (#4582)
sarathkumarsivan May 27, 2020
2d24bb0
CBG-800: OnDemandImportForWrite migrate handling (#4553)
JRascagneres May 28, 2020
27f9b31
Move getRestrictedInt helpers into base/util (#4593)
bbrks May 28, 2020
261e857
Build setup for 2.7.4 (#4596)
adamcfraser May 29, 2020
8db1a1f
Add project-wide golangci-lint config (#4598)
bbrks May 29, 2020
7b564d9
Heartbeat registration and dropped node handling for sg-replicate (#4…
adamcfraser May 29, 2020
0f36717
CBG-783-prereq-2a: Move REST-specific code out of generateChanges (#4…
bbrks Jun 1, 2020
5c17e6c
CBG-783-prereq-3: Move blipSyncContext into replicator package (#4595)
bbrks Jun 1, 2020
72b2092
Remove stacktrace from error 'Error opening database' (#4601)
bbrks Jun 2, 2020
25ddd61
CBG-783: Initial SGR2 pull replication implementation (#4599)
bbrks Jun 3, 2020
97be2da
Skip TestActiveReplicatorPullBasic - failing under -race (#4603)
bbrks Jun 3, 2020
354828f
Remove hard-coded state parameter value from test provider and return…
sarathkumarsivan Jun 3, 2020
4e4adcd
CBG-893 Expand waitForIndex for more error cases (#4605)
adamcfraser Jun 5, 2020
47ac8dd
Reenable test active replicator pull basic (#4606)
bbrks Jun 5, 2020
21569cd
Remove Fatal logging from non-critical case (#4608)
bbrks Jun 8, 2020
38fd9f3
Tweak fatal bucket pool logging to avoid missing logs (#4607)
bbrks Jun 8, 2020
5b4a7a6
CBG-895: Prevent headers being added to gzip (#4609)
JRascagneres Jun 9, 2020
a3c27c9
Improve callback state cookie error handling and notify clients to su…
sarathkumarsivan Jun 9, 2020
a3e81d9
Set Max-Age on state cookie (#4612)
sarathkumarsivan Jun 12, 2020
01e7a19
CBG-782 - Add pull replicator checkpointing (#4613)
bbrks Jun 12, 2020
3daf1bd
Integrate replicator package into db (#4614)
adamcfraser Jun 12, 2020
7e74819
CBG-882 Align channels ORDER BY with index (#4615)
adamcfraser Jun 15, 2020
1f2117f
CBG-838: Add sync_gateway user check (#4616)
JRascagneres Jun 16, 2020
fa645ed
Add Black Duck triggering for 2.7.x and 2.8.x (#4618)
ceejatec Jun 16, 2020
7e08784
CBG-880: SGCollect Python3 compatibility (#4610)
JRascagneres Jun 16, 2020
943118d
CBG-864: Use addJSON errors and detection change (#4617)
JRascagneres Jun 17, 2020
5ead5e0
Wider detection of retry-style indexer errors (#4619)
adamcfraser Jun 17, 2020
c44d22c
CBG-767-prereq Implement replication lifecycle features (#4620)
adamcfraser Jun 19, 2020
6a159ff
CBG-768 Report replicationStatus for active replications (#4621)
adamcfraser Jun 22, 2020
c120544
CBG-774 ConflictResolverFunc definition and API (#4622)
adamcfraser Jun 22, 2020
9d91250
CBG-914 - Implement basic push replication (#4623)
bbrks Jun 22, 2020
e181625
CBG-777 Javascript custom conflict resolver (#4626)
adamcfraser Jun 23, 2020
73f2a8a
CBG-915 - Refactor blip.sendChanges for generic options parameter (#4…
bbrks Jun 23, 2020
a779ea4
CBG-778 Invocation of default policy from custom conflict resolver (#…
adamcfraser Jun 24, 2020
45a7bf6
Add replicationID to checkpoint hash (#4630)
adamcfraser Jun 24, 2020
a280c48
CBG-767 Adds adhoc flag to replicationConfig (#4631)
adamcfraser Jun 25, 2020
21421c0
Use http.Transport.Clone() added in 1.13 (#4632)
bbrks Jun 25, 2020
197aa36
CBG-916 - SGR2 Push checkpointing (#4629)
bbrks Jun 25, 2020
4526e2f
Add /_debug/fgprof endpoint (#4635)
bbrks Jun 25, 2020
a42e2f6
Add test to pull tombstone in SGR2 (#4636)
bbrks Jun 25, 2020
bc3c0c3
CBG-786 - Purge document on removal when PurgeOnRemoval flag is set (…
bbrks Jun 26, 2020
7fece44
Fix invalid filter error when Filter is unset (#4637)
bbrks Jun 26, 2020
12367f5
CBG-835 - ActiveReplicator heartbeat mechanism (via websocket ping fr…
bbrks Jun 26, 2020
e6f397c
Use replicator-specific logging context for active replications (#4641)
adamcfraser Jun 29, 2020
e97ab8b
CBG-802: Being able to configure OpenID Connect Test Provider with HT…
sarathkumarsivan Jun 29, 2020
6011418
Avoid adding nil entries to m.activeReplications (#4642)
adamcfraser Jun 29, 2020
102947a
CBG-785 SGR2 conflict resolution (#4640)
adamcfraser Jun 29, 2020
09edec3
Support use of back ticks for conflict resolver function via REST API…
adamcfraser Jun 30, 2020
54f7116
Batch size for sgr2 (#4643)
adamcfraser Jun 30, 2020
b5ed670
Specify docIDs in subChanges only when we have any to send (#4645)
bbrks Jun 30, 2020
80c70c9
CBG-930 Enable delta sync flag for sg-replicate2 (#4646)
adamcfraser Jul 1, 2020
db0f4a0
CBG-839: Support self-signed cert for sg-replicate testing (#4647)
sarathkumarsivan Jul 2, 2020
ac6ef4a
CBG-911 Add replicationStatus actions (#4649)
adamcfraser Jul 2, 2020
cd739e2
CBG-908 - ActiveReplicator checkpointing on both local and remote (#4…
bbrks Jul 3, 2020
772cc23
CBG-937 - More accurately track last_seq stats, and move old stat to …
bbrks Jul 6, 2020
76e121d
CBG-923 - Add rev response callback (#4653)
bbrks Jul 6, 2020
99dfc0c
Fix data race on global SlowQueryWarningThreshold by moving to be db-…
bbrks Jul 6, 2020
8ce9a0c
Implement includeConfig on replicationStatus APIs (#4654)
adamcfraser Jul 7, 2020
7f5a72d
CBG-803: Support for OpenID Connect provider config refresh (#4600)
sarathkumarsivan Jul 7, 2020
d9aa6e5
CBG-805: Update test OIDC provider to simulate real-world token (#4639)
sarathkumarsivan Jul 7, 2020
7249ed3
Add unit tests for checkpointer seq calculations and fix off-by-one e…
bbrks Jul 8, 2020
272b606
CBG-944 Update replication state on one-shot completion (#4658)
adamcfraser Jul 8, 2020
24cf5bb
Fix deadlock on replication stop (#4660)
adamcfraser Jul 8, 2020
3cae53b
CBG-944 Remove adhoc replications when stopped (#4661)
adamcfraser Jul 9, 2020
6608896
CBG-958 Delta sync config fix and stats (#4662)
adamcfraser Jul 9, 2020
2b0baa3
CBG-960 Delete local replication checkpoint on reset (#4663)
adamcfraser Jul 10, 2020
701c179
CBG-964 Only update DeltaRequestedCount for requested revs (#4665)
adamcfraser Jul 10, 2020
882befb
CBG-963 replicationStatus filtering options (#4666)
adamcfraser Jul 10, 2020
7457ec9
Accept 0 as a valid Expires and return the discovery data as not cach…
sarathkumarsivan Jul 11, 2020
f46ce1d
CBG-906: Include _attachments in body sent to DocumentChangeEvent (#4…
sarathkumarsivan Jul 13, 2020
4e56825
Add logging to ActiveReplicator setError (#4667)
bbrks Jul 13, 2020
d968622
CBG-905: Support using custom OIDC claim as Sync Gateway username (#4…
sarathkumarsivan Jul 13, 2020
64a08b8
CBG-881 - Resend failed deltas as full revisions (#4669)
bbrks Jul 14, 2020
6a9d087
CBG-947 - Checkpoint revisions which are ignored by a peer (#4670)
bbrks Jul 16, 2020
b02729e
CBG-948 - Update last known rev IDs when we encounter a conflict on c…
bbrks Jul 16, 2020
5d33e39
CBG-938 Use MaxDoubling retry for Touch, GetAndTouch (#4673)
adamcfraser Jul 17, 2020
99bdb18
Stop sgReplicateManager on DatabaseContext Close (#4674)
bbrks Jul 20, 2020
e965f00
CBG-922: Standardize text file processing across all platforms by usi…
sarathkumarsivan Jul 21, 2020
97dc83d
CBG-980 Use context cfgSG to fire change events instead of routing th…
adamcfraser Jul 21, 2020
22adcc2
Refactor blip replication stats (#4676)
adamcfraser Jul 21, 2020
a5b2661
CBG-983 RevID fix for Get1xRevAndChannels (#4677)
adamcfraser Jul 21, 2020
13dbb8b
Log warning for panics that happen in BLIP handlers before passing ba…
bbrks Jul 22, 2020
76c898d
CBG-921 Skip _txn: prefixed documents during DCP processing (#4683)
adamcfraser Jul 23, 2020
abda4aa
CBG-926: User name not being logged for initial HTTP request (#4682)
sarathkumarsivan Jul 23, 2020
4f4ba12
CBG-957 expvar stats for SGR2 replications (#4679)
adamcfraser Jul 23, 2020
50996e3
CBG-961 Conflict resolution outcome stats (#4684)
adamcfraser Jul 24, 2020
3f3b9a6
Support marking sequences as processed when pushing a norev (#4685)
bbrks Jul 24, 2020
9439da5
CBG-931 Perform all config validation at creation time (#4687)
adamcfraser Jul 27, 2020
7fa5e2e
CBG-920: SGR2 track pulled norev sequences for checkpointing (#4686)
bbrks Jul 27, 2020
5fa3709
CBG-951: Deleted documents should set _deleted:true for import filter…
sarathkumarsivan Jul 27, 2020
2f0d104
Allow pull replicator to perform operation, even when push operation …
bbrks Jul 29, 2020
6132c1e
CBG-949: Improve error when non-upgradable HTTP request is sent to _b…
sarathkumarsivan Jul 29, 2020
8d430f0
Do not include pointer addresses when logging heartbeat node set (#4693)
adamcfraser Jul 30, 2020
9f86bf8
CBG-972: Avoid transforming the entire config response to lower case …
sarathkumarsivan Jul 30, 2020
08a1096
CBG-909 Persist replication status for non-local access (#4689)
adamcfraser Jul 30, 2020
ce01841
Send 'ignoreNoConflicts' flag for SGR2 push replications (#4695)
bbrks Jul 30, 2020
56eebf0
CBG-940 Only invoke Complete() for completion of one-shot replication…
adamcfraser Aug 4, 2020
930156f
CBG-904 Deprecation warnings for use of SGR1 endpoints, config (#4698)
adamcfraser Aug 5, 2020
c0bd757
CBG-965 Don't allow creation of adhoc replications with state=stopped…
adamcfraser Aug 5, 2020
1781a86
CBG-975: SG-Replicate 2: Support basic auth credentials (username/pas…
sarathkumarsivan Aug 5, 2020
4c6979e
CBG-1006 Publish replication status on one-shot replication completio…
adamcfraser Aug 10, 2020
3c81daa
CBG-773: Enhance sgcollect to retrieve/incorporate sg-replicate 2 inf…
sarathkumarsivan Aug 10, 2020
61d731e
Clean up local doc expiry handling (#4708)
adamcfraser Aug 13, 2020
968dfdd
CBG-1004: Avoid rendering attachments in browser (#4705)
JRascagneres Aug 13, 2020
67a8599
Rely on dbContext/serverContext close to call bucket teardown (#4710)
bbrks Aug 14, 2020
b97f2b8
CBG-1020: Skip redacting username in SGReplicate-2 response (#4709)
sarathkumarsivan Aug 14, 2020
0a2e63e
Tweak logging levels for SGCluster/sg-replicate/import logging (#4712)
bbrks Aug 17, 2020
e87e95d
CBG-1011 Use replicationID instead of configHash in checkpoint keys (…
adamcfraser Aug 18, 2020
2f89c21
Remove node from cluster on Stop() (#4707)
bbrks Aug 19, 2020
d0d138c
Rename TestRemoveObsoleteIndexOnFail test to TestRemoveObsoleteIndexO…
bbrks Aug 19, 2020
0188f3e
CBG-912 - Put replicator into reconnecting state when initial connect…
bbrks Aug 21, 2020
229709d
CBG-913: Migrate SGR1 checkpoints when a matching SGR2 replication ID…
bbrks Aug 21, 2020
d5a4b10
CBG-973: Avoid collecting sensitive data during sgcollect (#4704)
sarathkumarsivan Aug 21, 2020
7ce0427
Fix data race on replicator blipSender by passing copy pointer whilst…
bbrks Aug 21, 2020
bb10e46
Fix TestActiveReplicatorReconnectOnStart on Windows (#4716)
bbrks Aug 21, 2020
7d4eda5
Temporarily disable failing windows test pending permanent fixes (#4718)
adamcfraser Aug 21, 2020
d1b7cf9
CBG-1000 Wait for remote sequence allocation on cache start (#4720)
adamcfraser Aug 24, 2020
d33348f
CBG-946: Repeated change entries on access grant to doc's previous ch…
sarathkumarsivan Aug 24, 2020
7f4ea95
CBG-1012 Persist replication status with checkpoints (#4719)
adamcfraser Aug 24, 2020
13bd94e
CBG-919: Integrated Prometheus Exporter (#4681)
JRascagneres Aug 24, 2020
2f225ec
Avoid test failure due to DCP latency (#4723)
adamcfraser Aug 25, 2020
a056db8
CBG-1037: Re-enable TestDeprecatedLoggingFallback for Windows (#4725)
JRascagneres Aug 25, 2020
d259ace
Fix sequence batching in TestPostChangesAdminChannelGrantRemoval (#4726)
bbrks Aug 25, 2020
77baeaf
CBG-1023: Error if custom conflict set without func (#4727)
JRascagneres Aug 25, 2020
ba9ebb1
Omit logging the full map for each sequence we remove from it (#4730)
bbrks Aug 25, 2020
572b2d0
CBG-1022: Require replication to be stopped prior to upsert (#4729)
JRascagneres Aug 26, 2020
1f5e842
Blip response type race fix: Read full response body first (#4733)
bbrks Aug 26, 2020
bb31723
CBG-1025 Additional logging for conflict resolution outcomes (#4734)
adamcfraser Aug 27, 2020
17a80c4
CBG-1041: Provide SGR2 stats with replicationID (#4731)
JRascagneres Aug 27, 2020
470645a
CBG-1039: Only expose metrics when interface set (#4732)
JRascagneres Aug 27, 2020
c7c2ed9
Prevent nil pointer in BlipTesterClient (#4736)
bbrks Aug 27, 2020
07a4078
Fix TestTombstoneCompaction assertion of mixed int/int64 types (#4737)
bbrks Aug 27, 2020
7a7f64a
Ensure changecache is stopped in BenchmarkDocChanged (#4735)
bbrks Aug 27, 2020
0e4228f
CBG-1038: Re-enable TestActiveReplicatorReconnectOnStart for Windows …
JRascagneres Aug 27, 2020
73be6dc
Fix error handling for conflict resolver func (#4739)
bbrks Aug 27, 2020
d6d1663
Correct prometheus metrics type (#4740)
JRascagneres Aug 28, 2020
4ba8e7b
CBG-1048: Rename State to TargetState (#4743)
JRascagneres Sep 2, 2020
17c0c26
CBG-1051: Improve replicationStatus reporting prior to successful con…
adamcfraser Sep 2, 2020
82489d9
CBG-1040: Add missing reconnect stats to expvars & prometheus (#4741)
JRascagneres Sep 2, 2020
458b3d6
Fix unclosed changeCache in BenchmarkProcessEntry (#4748)
bbrks Sep 2, 2020
f5dd71a
Fix reconnect ctx race (#4745)
bbrks Sep 2, 2020
6b35b7a
Increase logging in SGR1 checkpoint migration tests (#4749)
bbrks Sep 2, 2020
f988a76
CBG-945 Clear status on replication reset (#4746)
adamcfraser Sep 2, 2020
d3b3229
CBG-1021 (v2) - Add fallback for getAttachment when proveAttachment n…
bbrks Sep 3, 2020
159b953
Avoid replicateManager race on database close (#4750)
adamcfraser Sep 3, 2020
97359f1
CBG-917: Unit tests for internal properties in custom conflict resolv…
sarathkumarsivan Sep 3, 2020
8533ce9
Fix unlocked state change causing race on replicator Start (#4752)
bbrks Sep 3, 2020
f093441
CBG-1057: Deterministic prometheus stat label ordering (#4751)
JRascagneres Sep 3, 2020
7183d80
CBG-954 - Invoke reconnect loop when BLIP/Websocket connection closes…
bbrks Sep 3, 2020
3d0c8ab
CBG-1026 Restrict EE-only functionality (#4754)
adamcfraser Sep 4, 2020
a237d08
CBG-1052: Redact config endpoints (#4753)
JRascagneres Sep 4, 2020
9d0750e
CBG-998 Retry on ErrNotStored for xattr updates (#4760)
adamcfraser Sep 8, 2020
49ba6b9
CBG-929 - Process attachments from a merge via the sg-replicate custo…
bbrks Sep 8, 2020
b26a3db
CBG-1053: Adhoc replicationStatus panic fix (#4757)
JRascagneres Sep 8, 2020
388a335
CBG-1035: Add Grafana and update for Hydrogen (#4755)
JRascagneres Sep 8, 2020
30493cc
Prevent falling back to the SGR1 checkpoint for a second time (#4761)
bbrks Sep 9, 2020
f51d7b8
CBG-1028: Fix inconsistencies in default conflict resolver by local t…
sarathkumarsivan Sep 9, 2020
669dfce
Fix race for allowed attachment processing (#4762)
bbrks Sep 9, 2020
614a081
Throttle concurrent in-flight changes requests per connection to 2 (#…
bbrks Sep 10, 2020
a318a5b
Prevent activeSubChanges flag race when client is rapidly issuing req…
bbrks Sep 10, 2020
b571358
CBG-1070: Modify Grafana dashboard and README (#4765)
JRascagneres Sep 10, 2020
deea3b1
CBG-1047 Re-initialize replication when config is upserted (#4764)
adamcfraser Sep 10, 2020
1d447a5
CBG-1044: Don't trigger conflict resolution for two tombstones (#4759)
JRascagneres Sep 10, 2020
e40b68f
CBG-1071 Restore CBL pull attachment count/attachment bytes (#4768)
adamcfraser Sep 10, 2020
ea82bd0
CBG-1049: Don't tombstone an already deleted revision whilst applying…
sarathkumarsivan Sep 10, 2020
dee45fb
CBG-1060 Add close waitgroup for sgReplicateManager (#4769)
adamcfraser Sep 11, 2020
1ed0c13
Explicitly stop replicator from TestSGR1CheckpointMigration (#4770)
bbrks Sep 11, 2020
10132c1
CBG-1074: Grafana README updates (#4773)
JRascagneres Sep 15, 2020
c79acc8
CBG-979: Update to gocb from GOCBC-808 (#4781)
JRascagneres Sep 16, 2020
e9f12b8
CBG-884: Backport of CBG-819 (#4777)
JRascagneres Sep 16, 2020
a29db07
CBG-950: Backport CBG-662 (#4783)
JRascagneres Sep 16, 2020
557ec48
Avoid race in TestSGR2TombstoneConflictHandling (#4785)
JRascagneres Sep 17, 2020
4a70901
CBG-1003: Backport Remove replication stats from sg-replicate1 checkp…
JRascagneres Sep 17, 2020
7b94850
CBG-1077 Avoid state reset on restarted node (#4787)
adamcfraser Sep 17, 2020
23ec88b
Apply walrus close handling to all RTs used (#4790)
adamcfraser Sep 17, 2020
9ae0aff
PrometheusRules: Added Prometheus directory (#4789)
JRascagneres Sep 17, 2020
9b7da41
CBG-1005: Update examples & README (#4775)
JRascagneres Sep 17, 2020
eb5696d
CBG-1072 Ensure ordering of recent sequences (#4792)
adamcfraser Sep 18, 2020
5aa1237
CBG-1085 Re-register node when not present on cluster update (#4797)
adamcfraser Sep 22, 2020
1dda0cb
CBG-1087 Preserve document metadata under localWins conflict resoluti…
adamcfraser Sep 25, 2020
e2e7d42
CBG-1095 Re-register import node after transient removal (2.8.0) (#4804)
adamcfraser Sep 25, 2020
2ecbc77
CBG-1127 Don't treat imported SDK resurrections as conflicts (#4823)
adamcfraser Oct 29, 2020
c2431b2
CBG-1172 - Fix incorrect URL encoding of credentials when using Autho…
bbrks Nov 4, 2020
8a982d1
[2.8.0.1 Backport] - CBG-1179 - Strip basic auth component before sen…
bbrks Nov 5, 2020
786d680
Backport 2.8.1 - Add more context to sgr2 logging (#4821) (#4908)
bbrks Jan 12, 2021
c9f8f80
[2.8.1 Backport] CBG-1203 - sgcollect_info not collecting system info…
sarathkumarsivan Jan 13, 2021
f1be615
[2.8.1 Backport] - CBG-1265 - Ensure partial backfills contain the tr…
bbrks Jan 13, 2021
2edc9a0
[2.8.1 Backport] - CBG-1244 - DocumentChange event winning_rev_only o…
bbrks Jan 13, 2021
586fb79
[2.8.1 Backport] - CBG-1253 - Add USE INDEX hints to readiness querie…
bbrks Jan 13, 2021
f96cf54
[2.8.1 Backport] - CBG-1250 - Uptake log redaction improvements from …
bbrks Jan 14, 2021
c6c8472
[2.8.1 Backport] - CBG-1267 Exit cache processing for _sync:cfg docs …
adamcfraser Jan 14, 2021
a5fea2d
[2.8.1 Backport] - CBG-1221 Include NODE_DEFS_WANTED in heartbeat nod…
adamcfraser Jan 14, 2021
b1de96a
[2.8.1 Backport] - CBG-1252 Apply limit correctly during channel back…
adamcfraser Jan 14, 2021
4937c0c
[2.8.1 Backport] CBG-1076: Ensure pruning of tombstoned branches (#48…
JRascagneres Jan 15, 2021
69e08de
CBG-1263 Remove legacy cbgt index definition (#4933)
adamcfraser Jan 18, 2021
55492a8
CBG-1234 Avoid DCP and cfg race on database start (#4932)
adamcfraser Jan 19, 2021
7d7110b
[2.8.1 Backport] CBG-1235 - Add option to hide product version info f…
bbrks Jan 19, 2021
41682bd
CBG-1200: Improve handling for newly created tombstones to prevent em…
JRascagneres Jan 20, 2021
a89e637
Backport Jenkins build fixes for 2.8.1 (#4945)
bbrks Jan 22, 2021
6ecacdc
CBG-1273: Add more prometheus alert examples (#4936) (#4944)
JRascagneres Jan 22, 2021
c508f8b
Allow network= connstr override for cbdatasource DCP feeds (#4946)
bbrks Jan 25, 2021
1ac44d3
CBG-1311 Backport CBG-1304 to 2.8.1 (#4958)
adamcfraser Feb 8, 2021
0be9ae8
CBG-1312: Expose metrics API by default (#4959) (#4960)
JRascagneres Feb 10, 2021
4df7a2d
CBG-1341 Backport CBG-1339 to 2.8.2 (#4970)
adamcfraser Feb 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 60 additions & 0 deletions .golangci.yml
@@ -0,0 +1,60 @@
# config file for golangci-lint

linters:
enable:
- bodyclose # checks whether HTTP response body is closed successfully
- deadcode # Finds unused code
- dupl # Tool for code clone detection
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
- goconst # Finds repeated strings that could be replaced by a constant
- gocritic # The most opinionated Go source code linter
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
- gosec # (gas) Inspects source code for security problems
- gosimple # (megacheck) Linter for Go source code that specializes in simplifying a code
- govet # (vet, vetshadow) Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # Detects when assignments to existing variables are not used
- maligned # Tool to detect Go structs that would take less memory if their fields were sorted
- nakedret # Finds naked returns in functions greater than a specified function length
- nestif # Reports deeply nested if statements
- prealloc # Finds slice declarations that could potentially be preallocated
- staticcheck # (megacheck) Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- structcheck # Finds unused struct fields
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- unconvert # Remove unnecessary type conversions
- unparam # Reports unused function parameters
- varcheck # Finds unused global variables and constants
disable:
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
- depguard # Go linter that checks if package imports are in a list of acceptable packages
- dogsled # Checks assignments with too many blank identifiers # (e.g. x, _, _, _, := f())
- funlen # Tool for detection of long functions
- gochecknoglobals # Checks that no globals are present in Go code
- gochecknoinits # Checks that no init functions are present in Go code
- gocognit # Computes and checks the cognitive complexity of functions
- gocyclo # Computes and checks the cyclomatic complexity of functions
- godot # Check if comments end in a period
- godox # Tool for detection of FIXME, TODO and other comment keywords
- goerr113 # Golang linter to check the errors handling expressions
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
- gomnd # An analyzer to detect magic numbers.
- gomodguard # Allow and block list linter for direct Go module dependencies.
- interfacer # Linter that suggests narrower interface types
- lll # Reports long lines
- misspell # Finds commonly misspelled English words in comments
- nolintlint # Reports ill-formed or insufficient nolint directives
- rowserrcheck # checks whether Err of rows is checked successfully
- scopelint # Scopelint checks for unpinned variables in go programs
- stylecheck # Stylecheck is a replacement for golint
- testpackage # linter that makes you use a separate _test package
- unused # (megacheck) Checks Go code for unused constants, variables, functions and types
- whitespace # Tool for detection of leading and trailing whitespace
- wsl # Whitespace Linter - Forces you to use empty lines!

# Disable goconst in test files, often we have duplicated strings across tests, but don't make sense as constants.
issues:
exclude-rules:
- path: _test\.go
linters:
- goconst
16 changes: 10 additions & 6 deletions Dockerfile
@@ -1,9 +1,9 @@

# Stage to build Sync Gateway binary
FROM golang:1.8-stretch as builder
FROM golang:1.11.5-stretch as builder

# Customize this with the commit hash or branch name you want to build
ENV COMMIT master
ARG COMMIT=master

# Refresh apt repository, install git
RUN apt-get update && apt-get install -y \
Expand All @@ -18,10 +18,12 @@ RUN git config --global color.ui false

# Download and run the bootstrap.sh script which will download and invoke the repo
# tool to grap all required repositories
RUN wget https://raw.githubusercontent.com/couchbase/sync_gateway/$COMMIT/bootstrap.sh && \
RUN wget https://raw.githubusercontent.com/couchbase/sync_gateway/master/bootstrap.sh && \
cat bootstrap.sh && \
chmod +x bootstrap.sh && \
./bootstrap.sh -c $COMMIT -p sg
./bootstrap.sh -c $COMMIT -e ce

ARG SG_EDITION=CE

# Build the Sync Gateway binary
RUN ./build.sh -v
Expand All @@ -30,6 +32,8 @@ RUN ./build.sh -v
# Stage to run the SG binary from the previous stage
FROM ubuntu:latest as runner

COPY --from=builder /go/godeps/bin/sync_gateway .
ARG SG_FILENAME=sync_gateway_ce

COPY --from=builder /go/godeps/bin/$SG_FILENAME /sync_gateway

ENTRYPOINT ["/sync_gateway"]
ENTRYPOINT ["/sync_gateway"]