]> git.evergreen-ils.org Git - OpenSRF.git/blob - ChangeLog
change log for 2.3.0-beta
[OpenSRF.git] / ChangeLog
1 ChangeLog
2 =========
3
4 OpenSRF 2.3.2
5 -------------
6
7 commit d6688eade4a5947efd5280768fc549942a22e451
8 Author: Galen Charlton <gmc@esilibrary.com>
9 Date:   Thu Feb 27 16:52:15 2014 -0800
10
11     bump up version numbers of OpenSRF 2.3.0-beta
12     
13     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
14
15 2       2       src/perl/lib/OpenSRF.pm
16 1       1       src/python/setup.py
17 1       1       version.m4
18
19 commit e4453fbb43032f1154e1aa6dfdaf6183682026d9
20 Author: Galen Charlton <gmc@esilibrary.com>
21 Date:   Thu Feb 27 16:46:46 2014 -0800
22
23     release notes for OpenSRF 2.3.0 beta
24     
25     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
26
27 90      0       doc/RELEASE_NOTES.txt
28  create mode 100644 doc/RELEASE_NOTES.txt
29
30 commit 3692bb33cccdf3106df96883033b20ab9170c5a5
31 Author: Bill Erickson <berick@esilibrary.com>
32 Date:   Mon Feb 24 09:09:46 2014 -0500
33
34     LP#1284137: Avoid WARN logging on router shutdown
35     
36     Log received signals as DEBUG (misc signal) or INFO (during shutdown)
37     in the router, since these are not error conditions, but normal
38     operations.
39     
40     A warning may ultimately be logged at a higher level when the signal is
41     unexpected.
42     
43     Signed-off-by: Bill Erickson <berick@esilibrary.com>
44     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
45
46 1       1       src/router/osrf_router.c
47 2       2       src/router/osrf_router_main.c
48
49 commit 02a93da43f4fcebf7b00e5893ecd3e855dc2dbba
50 Author: Galen Charlton <gmc@esilibrary.com>
51 Date:   Fri Mar 15 10:22:17 2013 -0400
52
53     LP#1155446: add Debian/Ubuntu deps required for Python tests to pass
54     
55     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
56     Signed-off-by: Ben Shum <bshum@biblio.org>
57
58 5       0       src/extras/Makefile.install
59
60 commit 2fae35660282044e8462cde5b8152ff3d24f77e3
61 Author: Bill Erickson <berick@esilibrary.com>
62 Date:   Fri Oct 12 16:57:15 2012 -0400
63
64     LP#1066131: srfsh.py should not require opensrf.settings
65     
66     Update srfsh.py to connect to the opensrf network without automatically
67     reading the opensrf.setting server data.  This allows srfsh.py to run a
68     non-private network.
69     
70     Signed-off-by: Bill Erickson <berick@esilibrary.com>
71     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
72
73 1       1       src/python/srfsh.py
74
75 commit 989ac2737759a0fc6a80ec08b1a68b35eab2ff60
76 Author: Galen Charlton <gmc@esilibrary.com>
77 Date:   Thu Apr 18 16:14:00 2013 -0400
78
79     LP#1170484: log failure to load library for C app as an error
80     
81     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
82     Signed-off-by: Ben Shum <bshum@biblio.org>
83
84 1       1       src/libopensrf/osrf_application.c
85
86 commit 9a01063b3c78a33707a414a36d397e061ca62b1d
87 Merge: d90a415 2cc896b
88 Author: Galen Charlton <gmc@esilibrary.com>
89 Date:   Fri Jan 31 16:40:58 2014 -0500
90
91     Merge branch 'rel_2_3'
92
93 commit 2cc896b7d103fbade96054881c6c57046eef01e5
94 Author: Galen Charlton <gmc@esilibrary.com>
95 Date:   Fri Jan 31 16:20:26 2014 -0500
96
97     fix typo and remove repeated word
98     
99     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
100
101 3       3       bin/opensrf-perl.pl.in
102
103 commit a98d4b5195a0f5e77d14d4d247dde47f71b573c2
104 Author: Bill Erickson <berick@esilibrary.com>
105 Date:   Tue Jan 7 14:06:06 2014 -0500
106
107     osrf_control router-de/re-register and reload commands
108     
109     Added support for the following new command line options:
110     
111     --router-de-register
112     --router-de-register-all
113         Sends a SIGUSR1 signal to the selected service(s), which causes each
114         service's listener process to send an "unregister" command to all
115         registered routers.  The --all variant sends the signal to all
116         running listeners.  The non-(--all) variant requires a --service.
117     
118     --router-re-register
119     --router-re-register-all
120         Sends a SIGUSR2 signal to the selected service(s), which causes each
121         service's listener process to send a "register" command to all
122         configured routers routers.  The --all variant sends the signal to
123         all running listeners.  The non-(--all) variant requires a --service.
124     
125     --reload
126     --reload-all
127         Sends a SIGHUP signal to the selected service(s).  SIGHUP causes
128         each Listener process to reload its opensrf_core.xml config file
129         and gracefully re-launch drone processes.  The -all variant sends
130         the signal to all services.  The non-(-all) variant requires a
131         --service.
132     
133     Signed-off-by: Bill Erickson <berick@esilibrary.com>
134     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
135
136 46      3       bin/opensrf-perl.pl.in
137
138 commit d90a415f0c98a62560d9f824da4b18b6ee9eba84
139 Author: Galen Charlton <gmc@esilibrary.com>
140 Date:   Fri Jan 31 16:25:16 2014 -0500
141
142     x
143     
144     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
145
146 2       2       bin/opensrf-perl.pl.in
147
148 commit 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a
149 Author: Galen Charlton <gmc@esilibrary.com>
150 Date:   Fri Jan 31 16:20:26 2014 -0500
151
152     typo fix
153     
154     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
155
156 1       1       bin/opensrf-perl.pl.in
157
158 commit 5b3f8046bf05191424425cbe6bad5342ccb9ebbf
159 Author: Bill Erickson <berick@esilibrary.com>
160 Date:   Tue Jan 7 14:06:06 2014 -0500
161
162     osrf_control router-de/re-register and reload commands
163     
164     Added support for the following new command line options:
165     
166     --router-de-register
167     --router-de-register-all
168         Sends a SIGUSR1 signal to the selected service(s), which causes each
169         service's listener process to send an "unregister" command to all
170         registered routers.  The --all variant sends the signal to all
171         running listeners.  The non-(--all) variant requires a --service.
172     
173     --router-re-register
174     --router-re-register-all
175         Sends a SIGUSR2 signal to the selected service(s), which causes each
176         service's listener process to send a "register" command to all
177         configured routers routers.  The --all variant sends the signal to
178         all running listeners.  The non-(--all) variant requires a --service.
179     
180     --reload
181     --reload-all
182         Sends a SIGHUP signal to the selected service(s).  SIGHUP causes
183         each Listener process to reload its opensrf_core.xml config file
184         and gracefully re-launch drone processes.  The -all variant sends
185         the signal to all services.  The non-(-all) variant requires a
186         --service.
187     
188     Signed-off-by: Bill Erickson <berick@esilibrary.com>
189     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
190
191 46      3       bin/opensrf-perl.pl.in
192
193 commit 14287dc536142b14bc67806b1417b9a4850fa8cc
194 Author: Bill Erickson <berick@esilibrary.com>
195 Date:   Thu Nov 21 16:37:38 2013 -0500
196
197     recover osrf_control router start
198     
199     With the addition of service verification, which ensures that a service
200     is meant to run on the requested host, we lost the ability to start the
201     router by itself, since the router is never explicitly configured to run
202     anywhere.  This patch assumes the router is always a valid service.
203     
204     Signed-off-by: Bill Erickson <berick@esilibrary.com>
205     Signed-off-by: Dan Wells <dbw2@calvin.edu>
206
207 1       0       bin/opensrf-perl.pl.in
208
209 commit b59aee460f2b84f94ecabb758051cf00209574e6
210 Author: Bill Erickson <berick@esilibrary.com>
211 Date:   Thu Nov 21 16:37:38 2013 -0500
212
213     recover osrf_control router start
214     
215     With the addition of service verification, which ensures that a service
216     is meant to run on the requested host, we lost the ability to start the
217     router by itself, since the router is never explicitly configured to run
218     anywhere.  This patch assumes the router is always a valid service.
219     
220     Signed-off-by: Bill Erickson <berick@esilibrary.com>
221     Signed-off-by: Dan Wells <dbw2@calvin.edu>
222
223 1       0       bin/opensrf-perl.pl.in
224
225 commit c5ca743810acded29b0dcf9866ea513d5fcffdb9
226 Author: Bill Erickson <berick@esilibrary.com>
227 Date:   Thu Dec 5 12:27:44 2013 -0500
228
229     OpenSRF client disconnect robustification (Perl)
230     
231     * Improve detection of client connection state with jabber server
232     
233       Be more aggressive in testing and responding to failed connectivity.
234       It can happen in various ways, depending on what's happening to the
235       jabber server (death, delay, graceful shutdown).  With these changes
236       we attempt to cover all the bases and detect as early as possible that
237       a connection has died, specifically when trying to create a new
238       connection after one has failed.
239     
240     * Do a better job of cleaning up dead connections
241     
242       Transport::PeerHandle now has a reset() action which disconnects (when
243       possible) and clears the global connection reference.
244     
245     Signed-off-by: Bill Erickson <berick@esilibrary.com>
246     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
247
248 8       2       src/perl/lib/OpenSRF/System.pm
249 6       0       src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
250 6       0       src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
251 1       0       src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
252
253 commit b0a41d3973c944259c193fb4da1dce7f0c690f70
254 Author: Bill Erickson <berick@esilibrary.com>
255 Date:   Thu Dec 5 12:27:44 2013 -0500
256
257     OpenSRF client disconnect robustification (Perl)
258     
259     * Improve detection of client connection state with jabber server
260     
261       Be more aggressive in testing and responding to failed connectivity.
262       It can happen in various ways, depending on what's happening to the
263       jabber server (death, delay, graceful shutdown).  With these changes
264       we attempt to cover all the bases and detect as early as possible that
265       a connection has died, specifically when trying to create a new
266       connection after one has failed.
267     
268     * Do a better job of cleaning up dead connections
269     
270       Transport::PeerHandle now has a reset() action which disconnects (when
271       possible) and clears the global connection reference.
272     
273     Signed-off-by: Bill Erickson <berick@esilibrary.com>
274     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
275
276 8       2       src/perl/lib/OpenSRF/System.pm
277 6       0       src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
278 6       0       src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
279 1       0       src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
280
281 commit af8cab4b4b77f668e3c5ac85d191acf94537ef32
282 Author: Mike Rylander <mrylander@gmail.com>
283 Date:   Thu May 16 10:17:15 2013 -0400
284
285     Protect subrequests from post-complete messages
286     
287     Subrequests (AKA method_lookup()-based API calls) sometimes append
288     final-lvalue responses to the response list even after respond_complete()
289     has been called from within the implementation method.  This commit
290     discards all post-respond_complete values, protecting against extra,
291     spurious values being returned to the ultimate client.
292     
293     Signed-off-by: Mike Rylander <mrylander@gmail.com>
294     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
295
296 16      2       src/perl/lib/OpenSRF/AppSession.pm
297
298 commit 8d9b6b60cec68910ab48e4477e5de2d451013dc5
299 Author: Galen Charlton <gmc@esilibrary.com>
300 Date:   Mon Dec 16 08:08:51 2013 -0800
301
302     LP#1180849: test case - ignoring subrequest responses after respond_complete()
303     
304     This patch adds a regression test for verifying that subrequests
305     ignore additional responses after respond_complete() is called.
306     
307     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
308
309 9       1       src/perl/t/02-AppSession.t
310
311 commit a0d5b0536231cc06552fb9d7533a713c314ef9d3
312 Author: Mike Rylander <mrylander@gmail.com>
313 Date:   Thu May 16 10:17:15 2013 -0400
314
315     Protect subrequests from post-complete messages
316     
317     Subrequests (AKA method_lookup()-based API calls) sometimes append
318     final-lvalue responses to the response list even after respond_complete()
319     has been called from within the implementation method.  This commit
320     discards all post-respond_complete values, protecting against extra,
321     spurious values being returned to the ultimate client.
322     
323     Signed-off-by: Mike Rylander <mrylander@gmail.com>
324     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
325
326 16      2       src/perl/lib/OpenSRF/AppSession.pm
327
328 commit 59b4dd74e8695bc9bd7ad6c379b0f313db1cbb61
329 Author: Galen Charlton <gmc@esilibrary.com>
330 Date:   Mon Dec 16 08:08:51 2013 -0800
331
332     LP#1180849: test case - ignoring subrequest responses after respond_complete()
333     
334     This patch adds a regression test for verifying that subrequests
335     ignore additional responses after respond_complete() is called.
336     
337     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
338
339 9       1       src/perl/t/02-AppSession.t
340
341 commit 4ec8e134da80422f288e3e84024a8aa137b22259
342 Author: Jeff Godin <jgodin@tadl.org>
343 Date:   Tue Dec 3 13:52:39 2013 -0500
344
345     Add some additional boolean-related JSON tests
346     
347     Add some additional boolean-related JSON tests, enable use strict /
348     use warnings for JSON tests.
349     
350     Signed-off-by: Jeff Godin <jgodin@tadl.org>
351     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
352
353 12      5       src/perl/t/09-Utils-JSON.t
354
355 commit 9a367d3621706693445b945b283d54281d6dfa0a
356 Author: Mike Rylander <mrylander@gmail.com>
357 Date:   Tue Dec 3 09:57:39 2013 -0500
358
359     LP#1257264: Use the built-in JSON-y test for bools
360     
361     This removes a dependency on internal details of JSON::XS's
362     implementation of Boolean types which changed with the release
363     of JSON::XS 3.0.
364     
365     Signed-off-by: Mike Rylander <mrylander@gmail.com>
366     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
367     Signed-off-by: Jeff Godin <jgodin@tadl.org>
368
369 3       4       src/perl/lib/OpenSRF/Utils/JSON.pm
370
371 commit db87a311765e1c9bd538504827349a797a9b1bc4
372 Author: Galen Charlton <gmc@esilibrary.com>
373 Date:   Tue Dec 3 09:43:54 2013 -0800
374
375     LP#1257264: make test cases for JSON::XS Boolean-ness more generic
376     
377     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
378     Signed-off-by: Jeff Godin <jgodin@tadl.org>
379
380 5       5       src/perl/t/09-Utils-JSON.t
381
382 commit b93e0ca9c88e76d8a6a3c2451cbb49756c6ecf68
383 Author: Jeff Godin <jgodin@tadl.org>
384 Date:   Tue Dec 3 13:52:39 2013 -0500
385
386     Add some additional boolean-related JSON tests
387     
388     Add some additional boolean-related JSON tests, enable use strict /
389     use warnings for JSON tests.
390     
391     Signed-off-by: Jeff Godin <jgodin@tadl.org>
392     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
393
394 12      5       src/perl/t/09-Utils-JSON.t
395
396 commit a5be2f1654ea2211abef57f6065d8f6c5ee7f58a
397 Author: Mike Rylander <mrylander@gmail.com>
398 Date:   Tue Dec 3 09:57:39 2013 -0500
399
400     LP#1257264: Use the built-in JSON-y test for bools
401     
402     This removes a dependency on internal details of JSON::XS's
403     implementation of Boolean types which changed with the release
404     of JSON::XS 3.0.
405     
406     Signed-off-by: Mike Rylander <mrylander@gmail.com>
407     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
408     Signed-off-by: Jeff Godin <jgodin@tadl.org>
409
410 3       4       src/perl/lib/OpenSRF/Utils/JSON.pm
411
412 commit ff472c0e3c1dd47b5a584ebaf6a64d0534c5438b
413 Author: Galen Charlton <gmc@esilibrary.com>
414 Date:   Tue Dec 3 09:43:54 2013 -0800
415
416     LP#1257264: make test cases for JSON::XS Boolean-ness more generic
417     
418     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
419     Signed-off-by: Jeff Godin <jgodin@tadl.org>
420
421 5       5       src/perl/t/09-Utils-JSON.t
422
423 commit 9028b0238106923a64534b88eb6382bf59783ea5
424 Author: Galen Charlton <gmc@esilibrary.com>
425 Date:   Thu Sep 12 12:37:57 2013 -0700
426
427     LP#1224647: remove two invalid tests
428     
429     The patch for bug 1204123 changes the client_recv()
430     to not set the transport_client error flag, as most
431     of the circumstances where it would have been set were
432     for cases where the call to select() was interrupted
433     by a signal, which is not an error per se.
434     
435     This patch removes two tests that were therefore
436     made invalid, restoring the ability of the test suite
437     to pass.
438     
439     Signed-off-by: Galen Charlton <gmc@esilibrary.com>
440     Signed-off-by: Bill Erickson <berick@esilibrary.com>
441
442 0       4       tests/check_transport_client.c
443
444 commit e203c6edd4e02437a56d98f24a7b8c52b142faee
445 Author: Bill Erickson <berick@esilibrary.com>
446 Date:   Thu Sep 5 10:32:09 2013 -0400
447
448     osrf_control --start/stop/restart-services
449     
450     Provide commands for controling non-router services.  This is useful in
451     a multi-server environment where the router runs on a different server.
452     
453     Signed-off-by: Bill Erickson <berick@esilibrary.com>
454     Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
455
456 44      7       bin/opensrf-perl.pl.in
457
458 commit 0ef66eea902b50efa360815114c11d40d14560d2
459 Author: Bill Erickson <berick@esilibrary.com>
460 Date:   Tue Sep 3 14:56:27 2013 -0400
461
462     LP#1204123 repair makefile.am warning
463     
464     Avoid trailing space after backslash
465     
466     Signed-off-by: Bill Erickson <berick@esilibrary.com>
467     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
468
469 1       1       src/Makefile.am
470
471 commit ca94866879192a2ea962ce12d15573aa83115cd8
472 Author: Bill Erickson <berick@esilibrary.com>
473 Date:   Fri Aug 30 14:17:02 2013 -0400
474
475     LP#1204123 osrf_control warn and exit on bad host
476     
477     Any time a start action is issued (start, start_all, restart,
478     restart_all), osrf_control will first verify that the selected hostname
479     (or localhost) hosts the requested service(s).  If not, the user is
480     warned and the script exits before any action is taken.
481     
482     Note: we do not make a similar verification for stop and signal actions,
483     since those may be reasonably be used even when a service is not
484     configured to run on the selected host.
485     
486     Thanks to Jason Stephenson for the suggestion.
487     
488     Signed-off-by: Bill Erickson <berick@esilibrary.com>
489     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
490
491 30      7       bin/opensrf-perl.pl.in
492
493 commit f7c7fd436ffdd85abef2f8c76c8e6f59755777ab
494 Author: Bill Erickson <berick@esilibrary.com>
495 Date:   Fri Aug 30 13:09:27 2013 -0400
496
497     LP#1204123 osrf_control --diagnostic improvements
498     
499     Assessing the state of each PID for each service for error conditions.
500     
501     Minor cleanup.
502     
503     Signed-off-by: Bill Erickson <berick@esilibrary.com>
504     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
505
506 28      41      bin/opensrf-perl.pl.in
507
508 commit e6cdba1fe3b3af91d91b13ea0ad4a4d8ceaa4b21
509 Author: Bill Erickson <berick@esilibrary.com>
510 Date:   Fri Aug 30 11:27:49 2013 -0400
511
512     LP#1204123 osrf_control --diagnostic
513     
514     Command prints information about running services, including
515     descrepencies between running vs configured and PS listing vs PID files.
516     
517     Signed-off-by: Bill Erickson <berick@esilibrary.com>
518     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
519
520 96      4       bin/opensrf-perl.pl.in
521
522 commit d1d2894e69ca2741b54b936737ac442b1774cd95
523 Author: Bill Erickson <berick@esilibrary.com>
524 Date:   Tue Aug 27 15:56:46 2013 -0400
525
526     LP1204123 osrf_ctl.sh improvement
527     
528     Removing no-longer-supported --verbose flag from osrf_ctl.sh stub
529     
530     Signed-off-by: Bill Erickson <berick@esilibrary.com>
531     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
532
533 1       2       bin/osrf_ctl.sh.in
534
535 commit 9c07e2ad85a3a569914070b59c3b185d1cc0f1cb
536 Author: Bill Erickson <berick@esilibrary.com>
537 Date:   Tue Aug 27 15:52:48 2013 -0400
538
539     LP1204123 osrf_control doc updates
540     
541     Signed-off-by: Bill Erickson <berick@esilibrary.com>
542     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
543
544 2       2       README
545 1       1       examples/opensrf.xml.example
546
547 commit 7fed81ab4a24236ef2db4bd0f1d6bd40c65e0b80
548 Author: Bill Erickson <berick@esilibrary.com>
549 Date:   Tue Aug 27 11:47:52 2013 -0400
550
551     C SIGHUP handling and config reloading
552     
553     Sending the HUP signal to a C Listener process now results in the
554     following:
555     
556      * Reload the opensrf_core config
557      * update the log file level
558      * kill idle child processes
559      * child processes that are active when the signal is received are
560        tracked and killed once they become idle.
561      * New children are spawned per the min child settings
562     
563     The primary use case for these changes is temporarily changing the log
564     level for a given service for debug purposes.  It may also
565     be used, for example, to gracefully recover excess RAM consumed by a
566     child process.
567     
568     opensrf.xml (opensrf.settings config) is not reloaded, so min/max child
569     settings will not be affected.
570     
571     Signed-off-by: Bill Erickson <berick@esilibrary.com>
572     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
573
574 2       0       include/opensrf/osrfConfig.h
575 6       0       src/libopensrf/osrfConfig.c
576 134     19      src/libopensrf/osrf_prefork.c
577
578 commit 76ceb9d1e4d662c7fa8c41434df940647bf32fef
579 Author: Bill Erickson <berick@esilibrary.com>
580 Date:   Fri Aug 16 10:07:10 2013 -0400
581
582     LP1204123 more osrf_ctl/control script cleanup
583     
584     Signed-off-by: Bill Erickson <berick@esilibrary.com>
585     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
586
587 1       1       bin/osrf_ctl.sh.in
588
589 commit 9f8d384361e88d786d70a350f6f154e93a592d7b
590 Author: Bill Erickson <berick@esilibrary.com>
591 Date:   Fri Aug 16 10:04:55 2013 -0400
592
593     LP1204123 more osrf_ctl/control script cleanup
594     
595     Signed-off-by: Bill Erickson <berick@esilibrary.com>
596     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
597
598 5       3       bin/opensrf-perl.pl.in
599 1       1       bin/osrf_ctl.sh.in
600
601 commit d849a24e417898d1a4dc2590af51f95f56b508ff
602 Author: Bill Erickson <berick@esilibrary.com>
603 Date:   Mon Aug 12 11:39:28 2013 -0400
604
605     LP1204123 osrf_control improved sample usage
606     
607     Use a more realistic default usage message.  --config and --pid-dir have
608     sane defaults, so people will not normally need to specify those.
609     
610     Signed-off-by: Bill Erickson <berick@esilibrary.com>
611     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
612
613 1       1       bin/opensrf-perl.pl.in
614
615 commit 7e274fb696485b43bba31315138fad866221b97b
616 Author: Bill Erickson <berick@esilibrary.com>
617 Date:   Mon Aug 12 11:33:11 2013 -0400
618
619     LP1204123 install opensrf-perl.pl as osrf_control
620     
621     Symlink osrf_control to opensrf-perl.pl to act as the replacement for
622     osrf_ctl.sh.  I chose "osrf_control" since it matches more closely to
623     "osrf_config" -- also it's probably less confusing than calling it
624     osrf_ctl, which would likely get confused w/ osrf_ctl.sh
625     
626     TODO: documentation
627     
628     Signed-off-by: Bill Erickson <berick@esilibrary.com>
629     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
630
631 3       0       src/Makefile.am
632
633 commit 79522df516441ea34fa615bd1e83e8bc4ee93d66
634 Author: Bill Erickson <berick@esilibrary.com>
635 Date:   Mon Aug 12 11:31:56 2013 -0400
636
637     LP1204123 opensrf-perl.pl improve logging
638     
639     Log messages by default.  Replace --verbose flag with --quiet flag.
640     
641     Also treat all messages the same, instead of separating them into info
642     and debug.  They're all pretty useful.
643     
644     Signed-off-by: Bill Erickson <berick@esilibrary.com>
645     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
646
647 35      21      bin/opensrf-perl.pl.in
648
649 commit 5f21d07c7d5c61c3cb6c7ecd891fe79e68a06aae
650 Author: Bill Erickson <berick@esilibrary.com>
651 Date:   Fri Aug 9 10:40:29 2013 -0400
652
653     LP1204123 opensrf-perl.pl expansion continued
654     
655     * improved cleanup of stale pid files during startup
656     * added --force-clean-process option to kill orphan (no pidfile)
657       processes during startup
658     * other minor cleanup
659     
660     Signed-off-by: Bill Erickson <berick@esilibrary.com>
661     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
662
663 78      38      bin/opensrf-perl.pl.in
664 3       7       bin/osrf_ctl.sh.in
665
666 commit 69b139d87447e9ddc546b5a772e9fa1725e23e6c
667 Author: Bill Erickson <berick@esilibrary.com>
668 Date:   Mon Aug 5 16:58:26 2013 -0400
669
670     LP1204123 opensrf-perl.pl expansion / replace osrf_ctl
671     
672     opensrf-perl.pl can now stop/start/signal/etc. all opensrf services,
673     regardless of language.  It is in effect a replacement for osrf_ctl.sh
674     with considerably broader powers.
675     
676     To ease transition, osrf_ctl.sh has been taught to pass
677     start/stop/restart_all commands through to opensrf-perl.pl.
678     
679     The layout of commands has changed some (e.g. --start-all instead of
680     --action start_all) and a host of new commands have been added.
681     
682     Below are the full set of commands.  See --help for full descriptions:
683     
684     --config
685     --pid-dir
686     --settings-startup-pause
687     --localhost
688     --service
689     --verbose
690     --no-daemon
691     --help
692     --start-all
693     --start
694     --restart-all
695     --restart
696     --stop-all
697     --stop
698     --graceful-shutdown-all
699     --graceful-shutdown
700     --fast-shutdown-all
701     --fast-shutdown
702     --immediate-shutdown-all
703     --immediate-shutdown
704     --kill-with-fire
705     --signal-all
706     --signal
707     --signal-timeout
708     
709     Signed-off-by: Bill Erickson <berick@esilibrary.com>
710     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
711
712 390     49      bin/opensrf-perl.pl.in
713 10      339     bin/osrf_ctl.sh.in
714
715 commit ca1a08ff5864a2a4ef8e11070330eb0f5eb3c518
716 Author: Bill Erickson <berick@esilibrary.com>
717 Date:   Thu Aug 1 10:39:21 2013 -0400
718
719     LP1204123 Remove osrf_ctl debug echos
720     
721     Signed-off-by: Bill Erickson <berick@esilibrary.com>
722     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
723
724 0       4       bin/osrf_ctl.sh.in
725
726 commit 06368dfa151f04c6cbb0b843b7e9dc795a8193c5
727 Author: Bill Erickson <berick@esilibrary.com>
728 Date:   Wed Jul 31 17:43:12 2013 -0400
729
730     LP1204123 Improved per-service control (C/Perl)
731     
732     C opensrf no longer mantains a single master process.  Instead, like
733     Perl, each Listener process writes its own PID file and can be managed
734     individually.  Related to this, much code was cleaned up in
735     osrf_system.c.
736     
737     osrf_ctl.sh now has the ability to stop/start individual services for
738     Perl and C, using the new -s <service> option.  Examples:
739     
740     osrf_ctl.sh -l -a restart_c -s opensrf.math
741     osrf_ctl.sh -l -a restart_perl -s opensrf.settings
742     
743     Signed-off-by: Bill Erickson <berick@esilibrary.com>
744     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
745
746 73      8       bin/osrf_ctl.sh.in
747 5       0       include/opensrf/osrf_system.h
748 57      13      src/libopensrf/opensrf.c
749 1       0       src/libopensrf/osrf_prefork.c
750 205     389     src/libopensrf/osrf_system.c
751
752 commit ab83a04551cd333870d0ee6679e5aa6f4342cfb3
753 Author: Bill Erickson <berick@esilibrary.com>
754 Date:   Wed Jul 31 09:34:19 2013 -0400
755
756     LP1204123 osrf_ctl.sh supports sending signals
757     
758     Using the following new options to osrf_ctl.sh, the script can now send
759     signals to any/all OpenSRF Listener processes:
760     
761     -a signal / signal_all
762     -k <signal> [value passed to 'kill -s']
763     -s <service>
764     
765     With an action of 'signal' and service provided by -s, the specified
766     signal is sent only to the listener process of the service.
767     
768     With an action of 'signal_all', the specified signal is sent to all
769     listener prcesses.
770     
771     Signed-off-by: Bill Erickson <berick@esilibrary.com>
772     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
773
774 73      2       bin/osrf_ctl.sh.in
775
776 commit cb6bdf156a69a60fa0a55006b6f638853da3b9f0
777 Author: Bill Erickson <berick@esilibrary.com>
778 Date:   Wed Jul 24 16:28:15 2013 -0400
779
780     LP1204123 Don't treat interrupts as errors
781     
782     Interrupted calls to select() are generally not errors, but more likely
783     signals received by the process.  Avoid setting the transport_client
784     error flag to true in these cases.  Otherwise, after one signal is
785     received, no other outbound communication can occur on the client
786     connection.
787     
788     Signed-off-by: Bill Erickson <berick@esilibrary.com>
789     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
790
791 1       3       src/libopensrf/transport_client.c
792 0       1       src/libopensrf/transport_session.c
793
794 commit ab845cdebe7588a7fd4fb67317b7deab557fa210
795 Author: Bill Erickson <berick@esilibrary.com>
796 Date:   Tue Jul 23 12:06:48 2013 -0400
797
798     LP1204123 SIGUSR2 causes router re-register (Perl/C)
799     
800     When a listener process receives the USR2 signal, the 'register' command
801     is sent to all known routers.  This allows for the addition of new
802     routers to running opensrf services.
803     
804     If a register command is sent to a router for which the process is
805     already successfully register, the router will safely discard it, so
806     multiple SIGUSR2 calls are safe.
807     
808     Minor int => bool clarification repair to existing C shutdown
809     (prefork_clear) code.
810     
811     Signed-off-by: Bill Erickson <berick@esilibrary.com>
812     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
813
814 20      5       src/libopensrf/osrf_prefork.c
815 1       0       src/perl/lib/OpenSRF/Server.pm
816
817 commit 84d949cc09de9e2689b76541caeae524ab3b1f1e
818 Author: Bill Erickson <berick@esilibrary.com>
819 Date:   Tue Jul 23 11:31:34 2013 -0400
820
821     LP1204123 opensrf.settings reload file option
822     
823     opensrf.settings API calls
824     
825     opensrf.settings.host_config.get
826     opensrf.settings.default_config.get
827     
828     now sport an additional "reload" boolean parameter.  When set, the settings
829     file (opensrf.xml) will be reloaded from the file system to pick up any
830     changes which have occurred since the last load/reload.
831     
832     Signed-off-by: Bill Erickson <berick@esilibrary.com>
833     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
834
835 8       5       src/perl/lib/OpenSRF/Application/Settings.pm
836 13      24      src/perl/lib/OpenSRF/Utils/SettingsClient.pm
837 23      26      src/perl/lib/OpenSRF/Utils/SettingsParser.pm
838
839 commit 0e535cb775b78699f7ff15d9b73479f0aeaa4246
840 Author: Bill Erickson <berick@esilibrary.com>
841 Date:   Mon Jul 22 16:44:26 2013 -0400
842
843     LP1204123 SIGTERM graceful shutdown (C)
844     
845     When a TERM signal is received, the listener parent process will wait
846     for all child processes to complete any active tasks before killing the
847     child processes and shutting down.
848     
849     Receiving a SIGINT or SIGQUIT results in a non-graceful shutdown.
850     
851     In all cases, the system first un-registers with all routers.
852     
853     Signed-off-by: Bill Erickson <berick@esilibrary.com>
854     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
855
856 75      20      src/libopensrf/osrf_prefork.c
857
858 commit fc2dc403640ed245ff2ba8c3f44beea727d0e7cc
859 Author: Bill Erickson <berick@esilibrary.com>
860 Date:   Tue Jul 23 10:40:09 2013 -0400
861
862     LP1204123 SIGUSR1 causes router unregister (Perl/C)
863     
864     $ kill -s USR1 <listener_pid>
865     
866     The listener process will unregister all router connections.  This
867     allows services to remove themselves from consideration for new
868     inbound requests while allowing their drone processes to complete
869     any currently running tasks.
870     
871     Signed-off-by: Bill Erickson <berick@esilibrary.com>
872     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
873
874 50      13      src/libopensrf/osrf_prefork.c
875 4       1       src/perl/lib/OpenSRF/Server.pm
876
877 commit 8cc60399d97466c43a87df7e48e80dbc3b88c2d6
878 Author: Bill Erickson <berick@esilibrary.com>
879 Date:   Fri Jun 21 16:43:01 2013 -0400
880
881     LP1204123 SIGTERM causes graceful shutdown (Perl)
882     
883     When sent the SIGTERM signal, listener processes will wait for all child
884     processes to complete their currently running tasks before killing all
885     child processes and exiting.
886     
887     SIGQUIT and SIGINT can still be used for semi-graceful shutdowns, where
888     the listener de-registers and cleans up child processes, but does not
889     wait for child processes to finish their tasks.
890     
891     To kill with fire, SIGKILL is still your friend.
892     
893     Signed-off-by: Bill Erickson <berick@esilibrary.com>
894     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
895
896 20      4       src/perl/lib/OpenSRF/Server.pm
897
898 commit c69aced833683b5256554330aa652f3dd7556d10
899 Author: Bill Erickson <berick@esilibrary.com>
900 Date:   Wed Jun 26 14:51:52 2013 -0400
901
902     LP1204123 Set SIGCHLD handler to DEFAULT for children (perl)
903     
904     Remove the special SIGCHLD handler applied to the parent/listener
905     process from spawned child processes (drones) by setting child handler to
906     DEFAULT.  Otherwise, if an OpenSRF drone process spawns a sub-process,
907     the drone will execute the SIGCHLD handler meant for the Listener when
908     the sub-process dies, wherein hijinks ensue.
909     
910     Signed-off-by: Bill Erickson <berick@esilibrary.com>
911     Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
912
913 1       1       src/perl/lib/OpenSRF/Server.pm
914