7 commit a67bae66dd6a5e4062d63a00773c8e4c3bf4f880
8 Author: Galen Charlton <gmcharlt@gmail.com>
9 Date: Fri Mar 21 13:57:04 2014 -0400
11 bump up version number for 2.3.0 RC
13 Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
15 2 2 src/perl/lib/OpenSRF.pm
16 1 1 src/python/setup.py
19 commit dae3c9a9134d71b6acb1c4905379780694dc2635
20 Author: Galen Charlton <gmc@esilibrary.com>
21 Date: Fri Mar 7 10:39:08 2014 -0800
23 cite the most relevant bug numbers for enhancements in the release notes
25 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
27 8 8 doc/RELEASE_NOTES.txt
29 commit 9b6127b2a08892036699616d3fa8889f8933f545
30 Author: Galen Charlton <gmc@esilibrary.com>
31 Date: Fri Mar 7 10:33:16 2014 -0800
33 mention opensrf_router managing its own PID file in release notes
35 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
37 5 3 doc/RELEASE_NOTES.txt
39 commit 328c7408e2836733f8fc72faef6fc9dbb9f20523
40 Author: Galen Charlton <gmc@esilibrary.com>
41 Date: Fri Mar 7 10:25:14 2014 -0800
43 fix typos in the release notes
45 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
47 3 3 doc/RELEASE_NOTES.txt
49 commit fb561efb67a641bd3cf7767b31dcf70a7a0ae824
50 Author: Galen Charlton <gmc@esilibrary.com>
51 Date: Fri Mar 7 10:16:33 2014 -0800
53 update release notes for 2.3.0-rc
55 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
57 16 2 doc/RELEASE_NOTES.txt
59 commit 824452bd95815ed8713761fbe770d2a0d2161087
60 Author: Galen Charlton <gmc@esilibrary.com>
61 Date: Fri Mar 7 08:22:38 2014 -0800
63 LP#1286198: use --ignore-orphans rather than --are-there-no-prisons
65 The joke was fine while it lasted, but might be confusing to somebody
66 who doesn't catch the literary reference. This patch also fixes
69 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
71 3 3 bin/opensrf-perl.pl.in
73 commit 410fb2d443826611b3f26e07e945f39ad374a98d
74 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
75 Date: Tue Feb 4 17:56:07 2014 -0500
77 LP#1286198: Teach osrf_router to (optionally) write its own PID files
79 Also, tiny bit of noise squelching on osrf_control/opensrf-perl.pl
81 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
82 Signed-off-by: Mike Rylander <mrylander@gmail.com>
83 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
85 6 13 bin/opensrf-perl.pl.in
86 1 0 include/opensrf/utils.h
87 19 1 src/libopensrf/utils.c
88 84 5 src/router/osrf_router_main.c
90 commit 848e22fd7fe1478b86c4b64eb1e2a36cb8cbe115
91 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
92 Date: Fri Jan 31 15:50:01 2014 -0500
94 LP#1286198: Offer ability to ignore what seem like orphan processes when starting things
96 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
97 Signed-off-by: Mike Rylander <mrylander@gmail.com>
98 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
100 10 3 bin/opensrf-perl.pl.in
102 commit b7dda84946771959e2a44af977a007a3bf7923c9
103 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
104 Date: Thu Jan 30 18:32:24 2014 -0500
106 LP#1286198: When doing router-specific things, we don't need as much configuration loaded
108 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
109 Signed-off-by: Mike Rylander <mrylander@gmail.com>
110 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
112 3 3 bin/opensrf-perl.pl.in
114 commit d9ac17b0f18e7274468a426836b9c7f5dcfd2e72
115 Author: Galen Charlton <gmc@esilibrary.com>
116 Date: Thu Feb 27 17:34:50 2014 -0800
118 fix typo in 2.3.0-beta changelog
120 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
124 commit 8bf1f95aee67cd88e1ac0d6dca5380952ad404a9
125 Author: Galen Charlton <gmc@esilibrary.com>
126 Date: Thu Feb 27 16:53:26 2014 -0800
128 change log for 2.3.0-beta
130 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
134 commit d6688eade4a5947efd5280768fc549942a22e451
135 Author: Galen Charlton <gmc@esilibrary.com>
136 Date: Thu Feb 27 16:52:15 2014 -0800
138 bump up version numbers of OpenSRF 2.3.0-beta
140 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
142 2 2 src/perl/lib/OpenSRF.pm
143 1 1 src/python/setup.py
146 commit e4453fbb43032f1154e1aa6dfdaf6183682026d9
147 Author: Galen Charlton <gmc@esilibrary.com>
148 Date: Thu Feb 27 16:46:46 2014 -0800
150 release notes for OpenSRF 2.3.0 beta
152 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
154 90 0 doc/RELEASE_NOTES.txt
155 create mode 100644 doc/RELEASE_NOTES.txt
157 commit 3692bb33cccdf3106df96883033b20ab9170c5a5
158 Author: Bill Erickson <berick@esilibrary.com>
159 Date: Mon Feb 24 09:09:46 2014 -0500
161 LP#1284137: Avoid WARN logging on router shutdown
163 Log received signals as DEBUG (misc signal) or INFO (during shutdown)
164 in the router, since these are not error conditions, but normal
167 A warning may ultimately be logged at a higher level when the signal is
170 Signed-off-by: Bill Erickson <berick@esilibrary.com>
171 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
173 1 1 src/router/osrf_router.c
174 2 2 src/router/osrf_router_main.c
176 commit 02a93da43f4fcebf7b00e5893ecd3e855dc2dbba
177 Author: Galen Charlton <gmc@esilibrary.com>
178 Date: Fri Mar 15 10:22:17 2013 -0400
180 LP#1155446: add Debian/Ubuntu deps required for Python tests to pass
182 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
183 Signed-off-by: Ben Shum <bshum@biblio.org>
185 5 0 src/extras/Makefile.install
187 commit 2fae35660282044e8462cde5b8152ff3d24f77e3
188 Author: Bill Erickson <berick@esilibrary.com>
189 Date: Fri Oct 12 16:57:15 2012 -0400
191 LP#1066131: srfsh.py should not require opensrf.settings
193 Update srfsh.py to connect to the opensrf network without automatically
194 reading the opensrf.setting server data. This allows srfsh.py to run a
197 Signed-off-by: Bill Erickson <berick@esilibrary.com>
198 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
200 1 1 src/python/srfsh.py
202 commit 989ac2737759a0fc6a80ec08b1a68b35eab2ff60
203 Author: Galen Charlton <gmc@esilibrary.com>
204 Date: Thu Apr 18 16:14:00 2013 -0400
206 LP#1170484: log failure to load library for C app as an error
208 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
209 Signed-off-by: Ben Shum <bshum@biblio.org>
211 1 1 src/libopensrf/osrf_application.c
213 commit 9a01063b3c78a33707a414a36d397e061ca62b1d
214 Merge: d90a415 2cc896b
215 Author: Galen Charlton <gmc@esilibrary.com>
216 Date: Fri Jan 31 16:40:58 2014 -0500
218 Merge branch 'rel_2_3'
220 commit 2cc896b7d103fbade96054881c6c57046eef01e5
221 Author: Galen Charlton <gmc@esilibrary.com>
222 Date: Fri Jan 31 16:20:26 2014 -0500
224 fix typo and remove repeated word
226 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
228 3 3 bin/opensrf-perl.pl.in
230 commit a98d4b5195a0f5e77d14d4d247dde47f71b573c2
231 Author: Bill Erickson <berick@esilibrary.com>
232 Date: Tue Jan 7 14:06:06 2014 -0500
234 osrf_control router-de/re-register and reload commands
236 Added support for the following new command line options:
239 --router-de-register-all
240 Sends a SIGUSR1 signal to the selected service(s), which causes each
241 service's listener process to send an "unregister" command to all
242 registered routers. The --all variant sends the signal to all
243 running listeners. The non-(--all) variant requires a --service.
246 --router-re-register-all
247 Sends a SIGUSR2 signal to the selected service(s), which causes each
248 service's listener process to send a "register" command to all
249 configured routers routers. The --all variant sends the signal to
250 all running listeners. The non-(--all) variant requires a --service.
254 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
255 each Listener process to reload its opensrf_core.xml config file
256 and gracefully re-launch drone processes. The -all variant sends
257 the signal to all services. The non-(-all) variant requires a
260 Signed-off-by: Bill Erickson <berick@esilibrary.com>
261 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
263 46 3 bin/opensrf-perl.pl.in
265 commit d90a415f0c98a62560d9f824da4b18b6ee9eba84
266 Author: Galen Charlton <gmc@esilibrary.com>
267 Date: Fri Jan 31 16:25:16 2014 -0500
271 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
273 2 2 bin/opensrf-perl.pl.in
275 commit 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a
276 Author: Galen Charlton <gmc@esilibrary.com>
277 Date: Fri Jan 31 16:20:26 2014 -0500
281 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
283 1 1 bin/opensrf-perl.pl.in
285 commit 5b3f8046bf05191424425cbe6bad5342ccb9ebbf
286 Author: Bill Erickson <berick@esilibrary.com>
287 Date: Tue Jan 7 14:06:06 2014 -0500
289 osrf_control router-de/re-register and reload commands
291 Added support for the following new command line options:
294 --router-de-register-all
295 Sends a SIGUSR1 signal to the selected service(s), which causes each
296 service's listener process to send an "unregister" command to all
297 registered routers. The --all variant sends the signal to all
298 running listeners. The non-(--all) variant requires a --service.
301 --router-re-register-all
302 Sends a SIGUSR2 signal to the selected service(s), which causes each
303 service's listener process to send a "register" command to all
304 configured routers routers. The --all variant sends the signal to
305 all running listeners. The non-(--all) variant requires a --service.
309 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
310 each Listener process to reload its opensrf_core.xml config file
311 and gracefully re-launch drone processes. The -all variant sends
312 the signal to all services. The non-(-all) variant requires a
315 Signed-off-by: Bill Erickson <berick@esilibrary.com>
316 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
318 46 3 bin/opensrf-perl.pl.in
320 commit 14287dc536142b14bc67806b1417b9a4850fa8cc
321 Author: Bill Erickson <berick@esilibrary.com>
322 Date: Thu Nov 21 16:37:38 2013 -0500
324 recover osrf_control router start
326 With the addition of service verification, which ensures that a service
327 is meant to run on the requested host, we lost the ability to start the
328 router by itself, since the router is never explicitly configured to run
329 anywhere. This patch assumes the router is always a valid service.
331 Signed-off-by: Bill Erickson <berick@esilibrary.com>
332 Signed-off-by: Dan Wells <dbw2@calvin.edu>
334 1 0 bin/opensrf-perl.pl.in
336 commit b59aee460f2b84f94ecabb758051cf00209574e6
337 Author: Bill Erickson <berick@esilibrary.com>
338 Date: Thu Nov 21 16:37:38 2013 -0500
340 recover osrf_control router start
342 With the addition of service verification, which ensures that a service
343 is meant to run on the requested host, we lost the ability to start the
344 router by itself, since the router is never explicitly configured to run
345 anywhere. This patch assumes the router is always a valid service.
347 Signed-off-by: Bill Erickson <berick@esilibrary.com>
348 Signed-off-by: Dan Wells <dbw2@calvin.edu>
350 1 0 bin/opensrf-perl.pl.in
352 commit c5ca743810acded29b0dcf9866ea513d5fcffdb9
353 Author: Bill Erickson <berick@esilibrary.com>
354 Date: Thu Dec 5 12:27:44 2013 -0500
356 OpenSRF client disconnect robustification (Perl)
358 * Improve detection of client connection state with jabber server
360 Be more aggressive in testing and responding to failed connectivity.
361 It can happen in various ways, depending on what's happening to the
362 jabber server (death, delay, graceful shutdown). With these changes
363 we attempt to cover all the bases and detect as early as possible that
364 a connection has died, specifically when trying to create a new
365 connection after one has failed.
367 * Do a better job of cleaning up dead connections
369 Transport::PeerHandle now has a reset() action which disconnects (when
370 possible) and clears the global connection reference.
372 Signed-off-by: Bill Erickson <berick@esilibrary.com>
373 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
375 8 2 src/perl/lib/OpenSRF/System.pm
376 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
377 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
378 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
380 commit b0a41d3973c944259c193fb4da1dce7f0c690f70
381 Author: Bill Erickson <berick@esilibrary.com>
382 Date: Thu Dec 5 12:27:44 2013 -0500
384 OpenSRF client disconnect robustification (Perl)
386 * Improve detection of client connection state with jabber server
388 Be more aggressive in testing and responding to failed connectivity.
389 It can happen in various ways, depending on what's happening to the
390 jabber server (death, delay, graceful shutdown). With these changes
391 we attempt to cover all the bases and detect as early as possible that
392 a connection has died, specifically when trying to create a new
393 connection after one has failed.
395 * Do a better job of cleaning up dead connections
397 Transport::PeerHandle now has a reset() action which disconnects (when
398 possible) and clears the global connection reference.
400 Signed-off-by: Bill Erickson <berick@esilibrary.com>
401 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
403 8 2 src/perl/lib/OpenSRF/System.pm
404 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
405 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
406 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
408 commit af8cab4b4b77f668e3c5ac85d191acf94537ef32
409 Author: Mike Rylander <mrylander@gmail.com>
410 Date: Thu May 16 10:17:15 2013 -0400
412 Protect subrequests from post-complete messages
414 Subrequests (AKA method_lookup()-based API calls) sometimes append
415 final-lvalue responses to the response list even after respond_complete()
416 has been called from within the implementation method. This commit
417 discards all post-respond_complete values, protecting against extra,
418 spurious values being returned to the ultimate client.
420 Signed-off-by: Mike Rylander <mrylander@gmail.com>
421 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
423 16 2 src/perl/lib/OpenSRF/AppSession.pm
425 commit 8d9b6b60cec68910ab48e4477e5de2d451013dc5
426 Author: Galen Charlton <gmc@esilibrary.com>
427 Date: Mon Dec 16 08:08:51 2013 -0800
429 LP#1180849: test case - ignoring subrequest responses after respond_complete()
431 This patch adds a regression test for verifying that subrequests
432 ignore additional responses after respond_complete() is called.
434 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
436 9 1 src/perl/t/02-AppSession.t
438 commit a0d5b0536231cc06552fb9d7533a713c314ef9d3
439 Author: Mike Rylander <mrylander@gmail.com>
440 Date: Thu May 16 10:17:15 2013 -0400
442 Protect subrequests from post-complete messages
444 Subrequests (AKA method_lookup()-based API calls) sometimes append
445 final-lvalue responses to the response list even after respond_complete()
446 has been called from within the implementation method. This commit
447 discards all post-respond_complete values, protecting against extra,
448 spurious values being returned to the ultimate client.
450 Signed-off-by: Mike Rylander <mrylander@gmail.com>
451 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
453 16 2 src/perl/lib/OpenSRF/AppSession.pm
455 commit 59b4dd74e8695bc9bd7ad6c379b0f313db1cbb61
456 Author: Galen Charlton <gmc@esilibrary.com>
457 Date: Mon Dec 16 08:08:51 2013 -0800
459 LP#1180849: test case - ignoring subrequest responses after respond_complete()
461 This patch adds a regression test for verifying that subrequests
462 ignore additional responses after respond_complete() is called.
464 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
466 9 1 src/perl/t/02-AppSession.t
468 commit 4ec8e134da80422f288e3e84024a8aa137b22259
469 Author: Jeff Godin <jgodin@tadl.org>
470 Date: Tue Dec 3 13:52:39 2013 -0500
472 Add some additional boolean-related JSON tests
474 Add some additional boolean-related JSON tests, enable use strict /
475 use warnings for JSON tests.
477 Signed-off-by: Jeff Godin <jgodin@tadl.org>
478 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
480 12 5 src/perl/t/09-Utils-JSON.t
482 commit 9a367d3621706693445b945b283d54281d6dfa0a
483 Author: Mike Rylander <mrylander@gmail.com>
484 Date: Tue Dec 3 09:57:39 2013 -0500
486 LP#1257264: Use the built-in JSON-y test for bools
488 This removes a dependency on internal details of JSON::XS's
489 implementation of Boolean types which changed with the release
492 Signed-off-by: Mike Rylander <mrylander@gmail.com>
493 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
494 Signed-off-by: Jeff Godin <jgodin@tadl.org>
496 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
498 commit db87a311765e1c9bd538504827349a797a9b1bc4
499 Author: Galen Charlton <gmc@esilibrary.com>
500 Date: Tue Dec 3 09:43:54 2013 -0800
502 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
504 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
505 Signed-off-by: Jeff Godin <jgodin@tadl.org>
507 5 5 src/perl/t/09-Utils-JSON.t
509 commit b93e0ca9c88e76d8a6a3c2451cbb49756c6ecf68
510 Author: Jeff Godin <jgodin@tadl.org>
511 Date: Tue Dec 3 13:52:39 2013 -0500
513 Add some additional boolean-related JSON tests
515 Add some additional boolean-related JSON tests, enable use strict /
516 use warnings for JSON tests.
518 Signed-off-by: Jeff Godin <jgodin@tadl.org>
519 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
521 12 5 src/perl/t/09-Utils-JSON.t
523 commit a5be2f1654ea2211abef57f6065d8f6c5ee7f58a
524 Author: Mike Rylander <mrylander@gmail.com>
525 Date: Tue Dec 3 09:57:39 2013 -0500
527 LP#1257264: Use the built-in JSON-y test for bools
529 This removes a dependency on internal details of JSON::XS's
530 implementation of Boolean types which changed with the release
533 Signed-off-by: Mike Rylander <mrylander@gmail.com>
534 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
535 Signed-off-by: Jeff Godin <jgodin@tadl.org>
537 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
539 commit ff472c0e3c1dd47b5a584ebaf6a64d0534c5438b
540 Author: Galen Charlton <gmc@esilibrary.com>
541 Date: Tue Dec 3 09:43:54 2013 -0800
543 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
545 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
546 Signed-off-by: Jeff Godin <jgodin@tadl.org>
548 5 5 src/perl/t/09-Utils-JSON.t
550 commit 9028b0238106923a64534b88eb6382bf59783ea5
551 Author: Galen Charlton <gmc@esilibrary.com>
552 Date: Thu Sep 12 12:37:57 2013 -0700
554 LP#1224647: remove two invalid tests
556 The patch for bug 1204123 changes the client_recv()
557 to not set the transport_client error flag, as most
558 of the circumstances where it would have been set were
559 for cases where the call to select() was interrupted
560 by a signal, which is not an error per se.
562 This patch removes two tests that were therefore
563 made invalid, restoring the ability of the test suite
566 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
567 Signed-off-by: Bill Erickson <berick@esilibrary.com>
569 0 4 tests/check_transport_client.c
571 commit e203c6edd4e02437a56d98f24a7b8c52b142faee
572 Author: Bill Erickson <berick@esilibrary.com>
573 Date: Thu Sep 5 10:32:09 2013 -0400
575 osrf_control --start/stop/restart-services
577 Provide commands for controling non-router services. This is useful in
578 a multi-server environment where the router runs on a different server.
580 Signed-off-by: Bill Erickson <berick@esilibrary.com>
581 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
583 44 7 bin/opensrf-perl.pl.in
585 commit 0ef66eea902b50efa360815114c11d40d14560d2
586 Author: Bill Erickson <berick@esilibrary.com>
587 Date: Tue Sep 3 14:56:27 2013 -0400
589 LP#1204123 repair makefile.am warning
591 Avoid trailing space after backslash
593 Signed-off-by: Bill Erickson <berick@esilibrary.com>
594 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
598 commit ca94866879192a2ea962ce12d15573aa83115cd8
599 Author: Bill Erickson <berick@esilibrary.com>
600 Date: Fri Aug 30 14:17:02 2013 -0400
602 LP#1204123 osrf_control warn and exit on bad host
604 Any time a start action is issued (start, start_all, restart,
605 restart_all), osrf_control will first verify that the selected hostname
606 (or localhost) hosts the requested service(s). If not, the user is
607 warned and the script exits before any action is taken.
609 Note: we do not make a similar verification for stop and signal actions,
610 since those may be reasonably be used even when a service is not
611 configured to run on the selected host.
613 Thanks to Jason Stephenson for the suggestion.
615 Signed-off-by: Bill Erickson <berick@esilibrary.com>
616 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
618 30 7 bin/opensrf-perl.pl.in
620 commit f7c7fd436ffdd85abef2f8c76c8e6f59755777ab
621 Author: Bill Erickson <berick@esilibrary.com>
622 Date: Fri Aug 30 13:09:27 2013 -0400
624 LP#1204123 osrf_control --diagnostic improvements
626 Assessing the state of each PID for each service for error conditions.
630 Signed-off-by: Bill Erickson <berick@esilibrary.com>
631 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
633 28 41 bin/opensrf-perl.pl.in
635 commit e6cdba1fe3b3af91d91b13ea0ad4a4d8ceaa4b21
636 Author: Bill Erickson <berick@esilibrary.com>
637 Date: Fri Aug 30 11:27:49 2013 -0400
639 LP#1204123 osrf_control --diagnostic
641 Command prints information about running services, including
642 descrepencies between running vs configured and PS listing vs PID files.
644 Signed-off-by: Bill Erickson <berick@esilibrary.com>
645 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
647 96 4 bin/opensrf-perl.pl.in
649 commit d1d2894e69ca2741b54b936737ac442b1774cd95
650 Author: Bill Erickson <berick@esilibrary.com>
651 Date: Tue Aug 27 15:56:46 2013 -0400
653 LP1204123 osrf_ctl.sh improvement
655 Removing no-longer-supported --verbose flag from osrf_ctl.sh stub
657 Signed-off-by: Bill Erickson <berick@esilibrary.com>
658 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
660 1 2 bin/osrf_ctl.sh.in
662 commit 9c07e2ad85a3a569914070b59c3b185d1cc0f1cb
663 Author: Bill Erickson <berick@esilibrary.com>
664 Date: Tue Aug 27 15:52:48 2013 -0400
666 LP1204123 osrf_control doc updates
668 Signed-off-by: Bill Erickson <berick@esilibrary.com>
669 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
672 1 1 examples/opensrf.xml.example
674 commit 7fed81ab4a24236ef2db4bd0f1d6bd40c65e0b80
675 Author: Bill Erickson <berick@esilibrary.com>
676 Date: Tue Aug 27 11:47:52 2013 -0400
678 C SIGHUP handling and config reloading
680 Sending the HUP signal to a C Listener process now results in the
683 * Reload the opensrf_core config
684 * update the log file level
685 * kill idle child processes
686 * child processes that are active when the signal is received are
687 tracked and killed once they become idle.
688 * New children are spawned per the min child settings
690 The primary use case for these changes is temporarily changing the log
691 level for a given service for debug purposes. It may also
692 be used, for example, to gracefully recover excess RAM consumed by a
695 opensrf.xml (opensrf.settings config) is not reloaded, so min/max child
696 settings will not be affected.
698 Signed-off-by: Bill Erickson <berick@esilibrary.com>
699 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
701 2 0 include/opensrf/osrfConfig.h
702 6 0 src/libopensrf/osrfConfig.c
703 134 19 src/libopensrf/osrf_prefork.c
705 commit 76ceb9d1e4d662c7fa8c41434df940647bf32fef
706 Author: Bill Erickson <berick@esilibrary.com>
707 Date: Fri Aug 16 10:07:10 2013 -0400
709 LP1204123 more osrf_ctl/control script cleanup
711 Signed-off-by: Bill Erickson <berick@esilibrary.com>
712 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
714 1 1 bin/osrf_ctl.sh.in
716 commit 9f8d384361e88d786d70a350f6f154e93a592d7b
717 Author: Bill Erickson <berick@esilibrary.com>
718 Date: Fri Aug 16 10:04:55 2013 -0400
720 LP1204123 more osrf_ctl/control script cleanup
722 Signed-off-by: Bill Erickson <berick@esilibrary.com>
723 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
725 5 3 bin/opensrf-perl.pl.in
726 1 1 bin/osrf_ctl.sh.in
728 commit d849a24e417898d1a4dc2590af51f95f56b508ff
729 Author: Bill Erickson <berick@esilibrary.com>
730 Date: Mon Aug 12 11:39:28 2013 -0400
732 LP1204123 osrf_control improved sample usage
734 Use a more realistic default usage message. --config and --pid-dir have
735 sane defaults, so people will not normally need to specify those.
737 Signed-off-by: Bill Erickson <berick@esilibrary.com>
738 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
740 1 1 bin/opensrf-perl.pl.in
742 commit 7e274fb696485b43bba31315138fad866221b97b
743 Author: Bill Erickson <berick@esilibrary.com>
744 Date: Mon Aug 12 11:33:11 2013 -0400
746 LP1204123 install opensrf-perl.pl as osrf_control
748 Symlink osrf_control to opensrf-perl.pl to act as the replacement for
749 osrf_ctl.sh. I chose "osrf_control" since it matches more closely to
750 "osrf_config" -- also it's probably less confusing than calling it
751 osrf_ctl, which would likely get confused w/ osrf_ctl.sh
755 Signed-off-by: Bill Erickson <berick@esilibrary.com>
756 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
760 commit 79522df516441ea34fa615bd1e83e8bc4ee93d66
761 Author: Bill Erickson <berick@esilibrary.com>
762 Date: Mon Aug 12 11:31:56 2013 -0400
764 LP1204123 opensrf-perl.pl improve logging
766 Log messages by default. Replace --verbose flag with --quiet flag.
768 Also treat all messages the same, instead of separating them into info
769 and debug. They're all pretty useful.
771 Signed-off-by: Bill Erickson <berick@esilibrary.com>
772 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
774 35 21 bin/opensrf-perl.pl.in
776 commit 5f21d07c7d5c61c3cb6c7ecd891fe79e68a06aae
777 Author: Bill Erickson <berick@esilibrary.com>
778 Date: Fri Aug 9 10:40:29 2013 -0400
780 LP1204123 opensrf-perl.pl expansion continued
782 * improved cleanup of stale pid files during startup
783 * added --force-clean-process option to kill orphan (no pidfile)
784 processes during startup
785 * other minor cleanup
787 Signed-off-by: Bill Erickson <berick@esilibrary.com>
788 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
790 78 38 bin/opensrf-perl.pl.in
791 3 7 bin/osrf_ctl.sh.in
793 commit 69b139d87447e9ddc546b5a772e9fa1725e23e6c
794 Author: Bill Erickson <berick@esilibrary.com>
795 Date: Mon Aug 5 16:58:26 2013 -0400
797 LP1204123 opensrf-perl.pl expansion / replace osrf_ctl
799 opensrf-perl.pl can now stop/start/signal/etc. all opensrf services,
800 regardless of language. It is in effect a replacement for osrf_ctl.sh
801 with considerably broader powers.
803 To ease transition, osrf_ctl.sh has been taught to pass
804 start/stop/restart_all commands through to opensrf-perl.pl.
806 The layout of commands has changed some (e.g. --start-all instead of
807 --action start_all) and a host of new commands have been added.
809 Below are the full set of commands. See --help for full descriptions:
813 --settings-startup-pause
825 --graceful-shutdown-all
829 --immediate-shutdown-all
836 Signed-off-by: Bill Erickson <berick@esilibrary.com>
837 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
839 390 49 bin/opensrf-perl.pl.in
840 10 339 bin/osrf_ctl.sh.in
842 commit ca1a08ff5864a2a4ef8e11070330eb0f5eb3c518
843 Author: Bill Erickson <berick@esilibrary.com>
844 Date: Thu Aug 1 10:39:21 2013 -0400
846 LP1204123 Remove osrf_ctl debug echos
848 Signed-off-by: Bill Erickson <berick@esilibrary.com>
849 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
851 0 4 bin/osrf_ctl.sh.in
853 commit 06368dfa151f04c6cbb0b843b7e9dc795a8193c5
854 Author: Bill Erickson <berick@esilibrary.com>
855 Date: Wed Jul 31 17:43:12 2013 -0400
857 LP1204123 Improved per-service control (C/Perl)
859 C opensrf no longer mantains a single master process. Instead, like
860 Perl, each Listener process writes its own PID file and can be managed
861 individually. Related to this, much code was cleaned up in
864 osrf_ctl.sh now has the ability to stop/start individual services for
865 Perl and C, using the new -s <service> option. Examples:
867 osrf_ctl.sh -l -a restart_c -s opensrf.math
868 osrf_ctl.sh -l -a restart_perl -s opensrf.settings
870 Signed-off-by: Bill Erickson <berick@esilibrary.com>
871 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
873 73 8 bin/osrf_ctl.sh.in
874 5 0 include/opensrf/osrf_system.h
875 57 13 src/libopensrf/opensrf.c
876 1 0 src/libopensrf/osrf_prefork.c
877 205 389 src/libopensrf/osrf_system.c
879 commit ab83a04551cd333870d0ee6679e5aa6f4342cfb3
880 Author: Bill Erickson <berick@esilibrary.com>
881 Date: Wed Jul 31 09:34:19 2013 -0400
883 LP1204123 osrf_ctl.sh supports sending signals
885 Using the following new options to osrf_ctl.sh, the script can now send
886 signals to any/all OpenSRF Listener processes:
888 -a signal / signal_all
889 -k <signal> [value passed to 'kill -s']
892 With an action of 'signal' and service provided by -s, the specified
893 signal is sent only to the listener process of the service.
895 With an action of 'signal_all', the specified signal is sent to all
898 Signed-off-by: Bill Erickson <berick@esilibrary.com>
899 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
901 73 2 bin/osrf_ctl.sh.in
903 commit cb6bdf156a69a60fa0a55006b6f638853da3b9f0
904 Author: Bill Erickson <berick@esilibrary.com>
905 Date: Wed Jul 24 16:28:15 2013 -0400
907 LP1204123 Don't treat interrupts as errors
909 Interrupted calls to select() are generally not errors, but more likely
910 signals received by the process. Avoid setting the transport_client
911 error flag to true in these cases. Otherwise, after one signal is
912 received, no other outbound communication can occur on the client
915 Signed-off-by: Bill Erickson <berick@esilibrary.com>
916 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
918 1 3 src/libopensrf/transport_client.c
919 0 1 src/libopensrf/transport_session.c
921 commit ab845cdebe7588a7fd4fb67317b7deab557fa210
922 Author: Bill Erickson <berick@esilibrary.com>
923 Date: Tue Jul 23 12:06:48 2013 -0400
925 LP1204123 SIGUSR2 causes router re-register (Perl/C)
927 When a listener process receives the USR2 signal, the 'register' command
928 is sent to all known routers. This allows for the addition of new
929 routers to running opensrf services.
931 If a register command is sent to a router for which the process is
932 already successfully register, the router will safely discard it, so
933 multiple SIGUSR2 calls are safe.
935 Minor int => bool clarification repair to existing C shutdown
936 (prefork_clear) code.
938 Signed-off-by: Bill Erickson <berick@esilibrary.com>
939 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
941 20 5 src/libopensrf/osrf_prefork.c
942 1 0 src/perl/lib/OpenSRF/Server.pm
944 commit 84d949cc09de9e2689b76541caeae524ab3b1f1e
945 Author: Bill Erickson <berick@esilibrary.com>
946 Date: Tue Jul 23 11:31:34 2013 -0400
948 LP1204123 opensrf.settings reload file option
950 opensrf.settings API calls
952 opensrf.settings.host_config.get
953 opensrf.settings.default_config.get
955 now sport an additional "reload" boolean parameter. When set, the settings
956 file (opensrf.xml) will be reloaded from the file system to pick up any
957 changes which have occurred since the last load/reload.
959 Signed-off-by: Bill Erickson <berick@esilibrary.com>
960 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
962 8 5 src/perl/lib/OpenSRF/Application/Settings.pm
963 13 24 src/perl/lib/OpenSRF/Utils/SettingsClient.pm
964 23 26 src/perl/lib/OpenSRF/Utils/SettingsParser.pm
966 commit 0e535cb775b78699f7ff15d9b73479f0aeaa4246
967 Author: Bill Erickson <berick@esilibrary.com>
968 Date: Mon Jul 22 16:44:26 2013 -0400
970 LP1204123 SIGTERM graceful shutdown (C)
972 When a TERM signal is received, the listener parent process will wait
973 for all child processes to complete any active tasks before killing the
974 child processes and shutting down.
976 Receiving a SIGINT or SIGQUIT results in a non-graceful shutdown.
978 In all cases, the system first un-registers with all routers.
980 Signed-off-by: Bill Erickson <berick@esilibrary.com>
981 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
983 75 20 src/libopensrf/osrf_prefork.c
985 commit fc2dc403640ed245ff2ba8c3f44beea727d0e7cc
986 Author: Bill Erickson <berick@esilibrary.com>
987 Date: Tue Jul 23 10:40:09 2013 -0400
989 LP1204123 SIGUSR1 causes router unregister (Perl/C)
991 $ kill -s USR1 <listener_pid>
993 The listener process will unregister all router connections. This
994 allows services to remove themselves from consideration for new
995 inbound requests while allowing their drone processes to complete
996 any currently running tasks.
998 Signed-off-by: Bill Erickson <berick@esilibrary.com>
999 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1001 50 13 src/libopensrf/osrf_prefork.c
1002 4 1 src/perl/lib/OpenSRF/Server.pm
1004 commit 8cc60399d97466c43a87df7e48e80dbc3b88c2d6
1005 Author: Bill Erickson <berick@esilibrary.com>
1006 Date: Fri Jun 21 16:43:01 2013 -0400
1008 LP1204123 SIGTERM causes graceful shutdown (Perl)
1010 When sent the SIGTERM signal, listener processes will wait for all child
1011 processes to complete their currently running tasks before killing all
1012 child processes and exiting.
1014 SIGQUIT and SIGINT can still be used for semi-graceful shutdowns, where
1015 the listener de-registers and cleans up child processes, but does not
1016 wait for child processes to finish their tasks.
1018 To kill with fire, SIGKILL is still your friend.
1020 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1021 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1023 20 4 src/perl/lib/OpenSRF/Server.pm
1025 commit c69aced833683b5256554330aa652f3dd7556d10
1026 Author: Bill Erickson <berick@esilibrary.com>
1027 Date: Wed Jun 26 14:51:52 2013 -0400
1029 LP1204123 Set SIGCHLD handler to DEFAULT for children (perl)
1031 Remove the special SIGCHLD handler applied to the parent/listener
1032 process from spawned child processes (drones) by setting child handler to
1033 DEFAULT. Otherwise, if an OpenSRF drone process spawns a sub-process,
1034 the drone will execute the SIGCHLD handler meant for the Listener when
1035 the sub-process dies, wherein hijinks ensue.
1037 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1038 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1040 1 1 src/perl/lib/OpenSRF/Server.pm