Skip to content

Commit c4f1906

Browse files
authored
Merge pull request #1 from CartoDB/cdb
sync with carto repo
2 parents 11aa12c + a70ff81 commit c4f1906

File tree

145 files changed

+9177
-4194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+9177
-4194
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
before_script:
1+
before_install:
22
- lsb_release -a
3-
- sudo mv /etc/apt/sources.list.d/pgdg-source.list* /tmp
3+
- sudo mv /etc/apt/sources.list.d/pgdg.list* /tmp
44
- sudo apt-get -qq purge postgis* postgresql*
55
- sudo rm -Rf /var/lib/postgresql /etc/postgresql
6-
- sudo apt-add-repository --yes ppa:cartodb/postgresql-9.3
6+
- sudo apt-add-repository --yes ppa:cartodb/postgresql-9.5
77
- sudo apt-add-repository --yes ppa:cartodb/gis
88
- sudo apt-get update
9-
- sudo apt-get install -q postgresql-9.3-postgis-2.1
10-
- sudo apt-get install -q postgresql-contrib-9.3
11-
- sudo apt-get install -q postgresql-plpython-9.3
9+
- sudo apt-get install -q postgresql-9.5-postgis-2.2
10+
- sudo apt-get install -q postgresql-contrib-9.5
11+
- sudo apt-get install -q postgresql-plpython-9.5
1212
- sudo apt-get install -q postgis
1313
- sudo apt-get install -q gdal-bin
1414
- sudo apt-get install -q ogr2ogr2-static-bin
15-
- echo -e "local\tall\tall\ttrust\nhost\tall\tall\t127.0.0.1/32\ttrust\nhost\tall\tall\t::1/128\ttrust" |sudo tee /etc/postgresql/9.3/main/pg_hba.conf
15+
- echo -e "local\tall\tall\ttrust\nhost\tall\tall\t127.0.0.1/32\ttrust\nhost\tall\tall\t::1/128\ttrust" |sudo tee /etc/postgresql/9.5/main/pg_hba.conf
1616
- sudo service postgresql restart
1717
- psql -c 'create database template_postgis;' -U postgres
1818
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d template_postgis

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jshint:
1313
@echo "***jshint***"
1414
@./node_modules/.bin/jshint app/ batch/ test/ app.js
1515

16-
TEST_SUITE := $(shell find test/{acceptance,unit} -name "*.js")
16+
TEST_SUITE := $(shell find test/{unit,integration,acceptance} -name "*.js")
1717
TEST_SUITE_UNIT := $(shell find test/unit -name "*.js")
18+
TEST_SUITE_INTEGRATION := $(shell find test/integration -name "*.js")
1819
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance -name "*.js")
20+
TEST_SUITE_BATCH := $(shell find test/*/batch -name "*.js")
1921

2022
test:
2123
@echo "***tests***"
@@ -25,10 +27,18 @@ test-unit:
2527
@echo "***unit tests***"
2628
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_UNIT)
2729

30+
test-integration:
31+
@echo "***integration tests***"
32+
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_INTEGRATION)
33+
2834
test-acceptance:
2935
@echo "***acceptance tests***"
3036
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_ACCEPTANCE)
3137

38+
test-batch:
39+
@echo "***batch queries tests***"
40+
@$(SHELL) test/run_tests.sh ${RUNTESTFLAGS} $(TEST_SUITE_BATCH)
41+
3242
test-all: jshint test
3343

3444
coverage:

NEWS.md

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,217 @@
1+
1.42.3 - 2016-11-07
2+
-------------------
3+
4+
Announcements:
5+
* Raise payload limit for batch-queries to 16kb.
6+
7+
8+
1.42.2 - 2016-11-07
9+
-------------------
10+
11+
Bug fixes:
12+
* Improve error handling while registering jobs to be tracked.
13+
14+
15+
1.42.1 - 2016-11-03
16+
-------------------
17+
18+
Bug fixes:
19+
* Avoid to use SCAN command to find work-in-progress queues.
20+
21+
22+
1.42.0 - 2016-11-02
23+
-------------------
24+
25+
Announcements:
26+
* Adds endpoint to check running batch queries
27+
28+
29+
1.41.0 - 2016-10-21
30+
-------------------
31+
32+
Announcements:
33+
* Stop migrating old queues by default.
34+
35+
Bug fixes:
36+
* Fix some scenarios where batch queries got stuck waiting for available slots.
37+
38+
39+
1.40.0 - 2016-10-20
40+
-------------------
41+
42+
New features:
43+
* Batch queries are handled per db host.
44+
- There is an scheduler controlling how many queries and in what order they are run.
45+
- Priority is based on: number of queries already ran, and oldest user in queue.
46+
* Batch queries capacity: allow to configure how many jobs to run per db host.
47+
48+
49+
1.39.1 - 2016-10-17
50+
-------------------
51+
52+
Enhancements:
53+
* Log creation and waiting time for fallback jobs' queries.
54+
55+
56+
1.39.0 - 2016-10-17
57+
-------------------
58+
59+
Enhancements:
60+
* Use just one Redis pool across the whole application.
61+
62+
New features:
63+
* Batch queries use per user-queues.
64+
* Batch queries queues can limit the number of queued jobs per user.
65+
- Default is 64 jobs.
66+
- Configuration key `batch_max_queued_jobs` allows to modify the limit.
67+
68+
69+
1.38.2 - 2016-10-13
70+
-------------------
71+
72+
Bug fixes:
73+
* Batch queries: release redis clients to pool from locker and seeker.
74+
75+
76+
1.38.1 - 2016-10-13
77+
-------------------
78+
79+
Enhancements:
80+
* Batch queries: improvements over leader locking.
81+
82+
83+
1.38.0 - 2016-10-11
84+
-------------------
85+
86+
Announcements:
87+
* Allow to set statement timeout per query in multi query batch queries.
88+
* Batch queries default statement timeout set to 12 hours.
89+
* Multiple queries jobs pushed as first job between queries.
90+
91+
92+
1.37.1 - 2016-10-05
93+
-------------------
94+
95+
Bug fixes:
96+
* Body parser accepting multipart requests.
97+
98+
99+
1.37.0 - 2016-10-04
100+
-------------------
101+
102+
Enhancements:
103+
* Migrate to Express.js 4.x series.
104+
105+
106+
1.36.2 - 2016-10-03
107+
-------------------
108+
109+
Bug fixes:
110+
- Batch Queries logs: use path instead of stream to be able to reopen FD.
111+
112+
113+
1.36.1 - 2016-09-30
114+
-------------------
115+
116+
Enhancements:
117+
* Tag fallback jobs logs.
118+
119+
120+
1.36.0 - 2016-09-30
121+
-------------------
122+
123+
New features:
124+
* Log queries from batch fallback jobs.
125+
126+
Enhancements:
127+
* assert.response following callback(err, obj) pattern.
128+
129+
130+
1.35.0 - 2016-09-15
131+
-------------------
132+
133+
New features:
134+
* Allow to use `--config /path/to/config.js` to specify configuration file.
135+
- Environment will be loaded from config file if `environment` key is present, otherwise it keeps current behaviour.
136+
137+
Bug fixes:
138+
* Allow to use absolute paths for log files.
139+
140+
Announcements:
141+
* Removes support for optional rollbar logging.
142+
143+
144+
1.34.2 - 2016-08-30
145+
-------------------
146+
147+
Announcements:
148+
* Upgrades cartodb-redis to 0.13.1.
149+
* Set TTL of finished job to 2h
150+
151+
152+
1.34.1 - 2016-07-11
153+
-------------------
154+
155+
Bug fixes:
156+
* Fixed issue with redis connections in Batch API #326
157+
158+
159+
1.34.0 - 2016-07-11
160+
-------------------
161+
162+
New features:
163+
* Skip tables with no updated_at registered in cdb_tablemetadata.
164+
* Allow to setup more than one domain to validate oauth against.
165+
166+
167+
1.33.0 - 2016-07-01
168+
-------------------
169+
170+
New features:
171+
* Add `<%= job_id %>` template support for onerror and onsuccess fallback queries.
172+
173+
174+
1.32.0 - 2016-06-30
175+
-------------------
176+
177+
New features:
178+
* Broadcast after enqueueing jobs to improve query distribution load.
179+
* Batch pub-sub channel handles its connections using `redis-mpool`.
180+
181+
182+
1.31.0 - 2016-06-29
183+
-------------------
184+
185+
New features:
186+
* Adds start and end time for batch queries with fallback.
187+
* Add `<%= error_message %>` template support for onerror fallback queries.
188+
189+
190+
1.30.1 - 2016-06-23
191+
-------------------
192+
193+
Bug fixes:
194+
* Fixed issue with profiling in Batch API #318
195+
196+
197+
1.30.0 - 2016-06-14
198+
-------------------
199+
200+
Announcements:
201+
* Now Batch API sends stats metrics to statsd server #312
202+
* Now Batch API sets "skipped" instead of "pending" to queries that won't be performed #311
203+
204+
Bug fixes:
205+
* Fixed issue with error handling in Batch API #316
206+
207+
208+
1.29.2 - 2016-05-25
209+
-------------------
210+
211+
Bug fixes:
212+
* Fixed issue with status transition in fallback jobs #308
213+
214+
1215
1.29.1 - 2016-05-24
2216
-------------------
3217

0 commit comments

Comments
 (0)