6 commit 95c5bcd2509fc92a399b073e8c5f04eb767089a5
7 Author: Galen Charlton <gmc@esilibrary.com>
8 Date: Fri Mar 28 13:14:10 2014 -0700
10 bump up version number to 2.3.0
12 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
14 2 2 doc/RELEASE_NOTES.txt
15 2 2 src/perl/lib/OpenSRF.pm
16 1 1 src/python/setup.py
19 commit a67bae66dd6a5e4062d63a00773c8e4c3bf4f880
20 Author: Galen Charlton <gmcharlt@gmail.com>
21 Date: Fri Mar 21 13:57:04 2014 -0400
23 bump up version number for 2.3.0 RC
25 Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
27 2 2 src/perl/lib/OpenSRF.pm
28 1 1 src/python/setup.py
31 commit dae3c9a9134d71b6acb1c4905379780694dc2635
32 Author: Galen Charlton <gmc@esilibrary.com>
33 Date: Fri Mar 7 10:39:08 2014 -0800
35 cite the most relevant bug numbers for enhancements in the release notes
37 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
39 8 8 doc/RELEASE_NOTES.txt
41 commit 9b6127b2a08892036699616d3fa8889f8933f545
42 Author: Galen Charlton <gmc@esilibrary.com>
43 Date: Fri Mar 7 10:33:16 2014 -0800
45 mention opensrf_router managing its own PID file in release notes
47 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
49 5 3 doc/RELEASE_NOTES.txt
51 commit 328c7408e2836733f8fc72faef6fc9dbb9f20523
52 Author: Galen Charlton <gmc@esilibrary.com>
53 Date: Fri Mar 7 10:25:14 2014 -0800
55 fix typos in the release notes
57 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
59 3 3 doc/RELEASE_NOTES.txt
61 commit fb561efb67a641bd3cf7767b31dcf70a7a0ae824
62 Author: Galen Charlton <gmc@esilibrary.com>
63 Date: Fri Mar 7 10:16:33 2014 -0800
65 update release notes for 2.3.0-rc
67 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
69 16 2 doc/RELEASE_NOTES.txt
71 commit 824452bd95815ed8713761fbe770d2a0d2161087
72 Author: Galen Charlton <gmc@esilibrary.com>
73 Date: Fri Mar 7 08:22:38 2014 -0800
75 LP#1286198: use --ignore-orphans rather than --are-there-no-prisons
77 The joke was fine while it lasted, but might be confusing to somebody
78 who doesn't catch the literary reference. This patch also fixes
81 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
83 3 3 bin/opensrf-perl.pl.in
85 commit 410fb2d443826611b3f26e07e945f39ad374a98d
86 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
87 Date: Tue Feb 4 17:56:07 2014 -0500
89 LP#1286198: Teach osrf_router to (optionally) write its own PID files
91 Also, tiny bit of noise squelching on osrf_control/opensrf-perl.pl
93 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
94 Signed-off-by: Mike Rylander <mrylander@gmail.com>
95 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
97 6 13 bin/opensrf-perl.pl.in
98 1 0 include/opensrf/utils.h
99 19 1 src/libopensrf/utils.c
100 84 5 src/router/osrf_router_main.c
102 commit 848e22fd7fe1478b86c4b64eb1e2a36cb8cbe115
103 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
104 Date: Fri Jan 31 15:50:01 2014 -0500
106 LP#1286198: Offer ability to ignore what seem like orphan processes when starting things
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 10 3 bin/opensrf-perl.pl.in
114 commit b7dda84946771959e2a44af977a007a3bf7923c9
115 Author: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
116 Date: Thu Jan 30 18:32:24 2014 -0500
118 LP#1286198: When doing router-specific things, we don't need as much configuration loaded
120 Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
121 Signed-off-by: Mike Rylander <mrylander@gmail.com>
122 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
124 3 3 bin/opensrf-perl.pl.in
126 commit d9ac17b0f18e7274468a426836b9c7f5dcfd2e72
127 Author: Galen Charlton <gmc@esilibrary.com>
128 Date: Thu Feb 27 17:34:50 2014 -0800
130 fix typo in 2.3.0-beta changelog
132 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
136 commit 8bf1f95aee67cd88e1ac0d6dca5380952ad404a9
137 Author: Galen Charlton <gmc@esilibrary.com>
138 Date: Thu Feb 27 16:53:26 2014 -0800
140 change log for 2.3.0-beta
142 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
146 commit d6688eade4a5947efd5280768fc549942a22e451
147 Author: Galen Charlton <gmc@esilibrary.com>
148 Date: Thu Feb 27 16:52:15 2014 -0800
150 bump up version numbers of OpenSRF 2.3.0-beta
152 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
154 2 2 src/perl/lib/OpenSRF.pm
155 1 1 src/python/setup.py
158 commit e4453fbb43032f1154e1aa6dfdaf6183682026d9
159 Author: Galen Charlton <gmc@esilibrary.com>
160 Date: Thu Feb 27 16:46:46 2014 -0800
162 release notes for OpenSRF 2.3.0 beta
164 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
166 90 0 doc/RELEASE_NOTES.txt
167 create mode 100644 doc/RELEASE_NOTES.txt
169 commit 3692bb33cccdf3106df96883033b20ab9170c5a5
170 Author: Bill Erickson <berick@esilibrary.com>
171 Date: Mon Feb 24 09:09:46 2014 -0500
173 LP#1284137: Avoid WARN logging on router shutdown
175 Log received signals as DEBUG (misc signal) or INFO (during shutdown)
176 in the router, since these are not error conditions, but normal
179 A warning may ultimately be logged at a higher level when the signal is
182 Signed-off-by: Bill Erickson <berick@esilibrary.com>
183 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
185 1 1 src/router/osrf_router.c
186 2 2 src/router/osrf_router_main.c
188 commit 02a93da43f4fcebf7b00e5893ecd3e855dc2dbba
189 Author: Galen Charlton <gmc@esilibrary.com>
190 Date: Fri Mar 15 10:22:17 2013 -0400
192 LP#1155446: add Debian/Ubuntu deps required for Python tests to pass
194 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
195 Signed-off-by: Ben Shum <bshum@biblio.org>
197 5 0 src/extras/Makefile.install
199 commit 2fae35660282044e8462cde5b8152ff3d24f77e3
200 Author: Bill Erickson <berick@esilibrary.com>
201 Date: Fri Oct 12 16:57:15 2012 -0400
203 LP#1066131: srfsh.py should not require opensrf.settings
205 Update srfsh.py to connect to the opensrf network without automatically
206 reading the opensrf.setting server data. This allows srfsh.py to run a
209 Signed-off-by: Bill Erickson <berick@esilibrary.com>
210 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
212 1 1 src/python/srfsh.py
214 commit 989ac2737759a0fc6a80ec08b1a68b35eab2ff60
215 Author: Galen Charlton <gmc@esilibrary.com>
216 Date: Thu Apr 18 16:14:00 2013 -0400
218 LP#1170484: log failure to load library for C app as an error
220 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
221 Signed-off-by: Ben Shum <bshum@biblio.org>
223 1 1 src/libopensrf/osrf_application.c
225 commit 9a01063b3c78a33707a414a36d397e061ca62b1d
226 Merge: d90a415 2cc896b
227 Author: Galen Charlton <gmc@esilibrary.com>
228 Date: Fri Jan 31 16:40:58 2014 -0500
230 Merge branch 'rel_2_3'
232 commit 2cc896b7d103fbade96054881c6c57046eef01e5
233 Author: Galen Charlton <gmc@esilibrary.com>
234 Date: Fri Jan 31 16:20:26 2014 -0500
236 fix typo and remove repeated word
238 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
240 3 3 bin/opensrf-perl.pl.in
242 commit a98d4b5195a0f5e77d14d4d247dde47f71b573c2
243 Author: Bill Erickson <berick@esilibrary.com>
244 Date: Tue Jan 7 14:06:06 2014 -0500
246 osrf_control router-de/re-register and reload commands
248 Added support for the following new command line options:
251 --router-de-register-all
252 Sends a SIGUSR1 signal to the selected service(s), which causes each
253 service's listener process to send an "unregister" command to all
254 registered routers. The --all variant sends the signal to all
255 running listeners. The non-(--all) variant requires a --service.
258 --router-re-register-all
259 Sends a SIGUSR2 signal to the selected service(s), which causes each
260 service's listener process to send a "register" command to all
261 configured routers routers. The --all variant sends the signal to
262 all running listeners. The non-(--all) variant requires a --service.
266 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
267 each Listener process to reload its opensrf_core.xml config file
268 and gracefully re-launch drone processes. The -all variant sends
269 the signal to all services. The non-(-all) variant requires a
272 Signed-off-by: Bill Erickson <berick@esilibrary.com>
273 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
275 46 3 bin/opensrf-perl.pl.in
277 commit d90a415f0c98a62560d9f824da4b18b6ee9eba84
278 Author: Galen Charlton <gmc@esilibrary.com>
279 Date: Fri Jan 31 16:25:16 2014 -0500
283 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
285 2 2 bin/opensrf-perl.pl.in
287 commit 0c0b02e0e8252d5a3e63dea03f8b8d8519526d5a
288 Author: Galen Charlton <gmc@esilibrary.com>
289 Date: Fri Jan 31 16:20:26 2014 -0500
293 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
295 1 1 bin/opensrf-perl.pl.in
297 commit 5b3f8046bf05191424425cbe6bad5342ccb9ebbf
298 Author: Bill Erickson <berick@esilibrary.com>
299 Date: Tue Jan 7 14:06:06 2014 -0500
301 osrf_control router-de/re-register and reload commands
303 Added support for the following new command line options:
306 --router-de-register-all
307 Sends a SIGUSR1 signal to the selected service(s), which causes each
308 service's listener process to send an "unregister" command to all
309 registered routers. The --all variant sends the signal to all
310 running listeners. The non-(--all) variant requires a --service.
313 --router-re-register-all
314 Sends a SIGUSR2 signal to the selected service(s), which causes each
315 service's listener process to send a "register" command to all
316 configured routers routers. The --all variant sends the signal to
317 all running listeners. The non-(--all) variant requires a --service.
321 Sends a SIGHUP signal to the selected service(s). SIGHUP causes
322 each Listener process to reload its opensrf_core.xml config file
323 and gracefully re-launch drone processes. The -all variant sends
324 the signal to all services. The non-(-all) variant requires a
327 Signed-off-by: Bill Erickson <berick@esilibrary.com>
328 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
330 46 3 bin/opensrf-perl.pl.in
332 commit 14287dc536142b14bc67806b1417b9a4850fa8cc
333 Author: Bill Erickson <berick@esilibrary.com>
334 Date: Thu Nov 21 16:37:38 2013 -0500
336 recover osrf_control router start
338 With the addition of service verification, which ensures that a service
339 is meant to run on the requested host, we lost the ability to start the
340 router by itself, since the router is never explicitly configured to run
341 anywhere. This patch assumes the router is always a valid service.
343 Signed-off-by: Bill Erickson <berick@esilibrary.com>
344 Signed-off-by: Dan Wells <dbw2@calvin.edu>
346 1 0 bin/opensrf-perl.pl.in
348 commit b59aee460f2b84f94ecabb758051cf00209574e6
349 Author: Bill Erickson <berick@esilibrary.com>
350 Date: Thu Nov 21 16:37:38 2013 -0500
352 recover osrf_control router start
354 With the addition of service verification, which ensures that a service
355 is meant to run on the requested host, we lost the ability to start the
356 router by itself, since the router is never explicitly configured to run
357 anywhere. This patch assumes the router is always a valid service.
359 Signed-off-by: Bill Erickson <berick@esilibrary.com>
360 Signed-off-by: Dan Wells <dbw2@calvin.edu>
362 1 0 bin/opensrf-perl.pl.in
364 commit c5ca743810acded29b0dcf9866ea513d5fcffdb9
365 Author: Bill Erickson <berick@esilibrary.com>
366 Date: Thu Dec 5 12:27:44 2013 -0500
368 OpenSRF client disconnect robustification (Perl)
370 * Improve detection of client connection state with jabber server
372 Be more aggressive in testing and responding to failed connectivity.
373 It can happen in various ways, depending on what's happening to the
374 jabber server (death, delay, graceful shutdown). With these changes
375 we attempt to cover all the bases and detect as early as possible that
376 a connection has died, specifically when trying to create a new
377 connection after one has failed.
379 * Do a better job of cleaning up dead connections
381 Transport::PeerHandle now has a reset() action which disconnects (when
382 possible) and clears the global connection reference.
384 Signed-off-by: Bill Erickson <berick@esilibrary.com>
385 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
387 8 2 src/perl/lib/OpenSRF/System.pm
388 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
389 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
390 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
392 commit b0a41d3973c944259c193fb4da1dce7f0c690f70
393 Author: Bill Erickson <berick@esilibrary.com>
394 Date: Thu Dec 5 12:27:44 2013 -0500
396 OpenSRF client disconnect robustification (Perl)
398 * Improve detection of client connection state with jabber server
400 Be more aggressive in testing and responding to failed connectivity.
401 It can happen in various ways, depending on what's happening to the
402 jabber server (death, delay, graceful shutdown). With these changes
403 we attempt to cover all the bases and detect as early as possible that
404 a connection has died, specifically when trying to create a new
405 connection after one has failed.
407 * Do a better job of cleaning up dead connections
409 Transport::PeerHandle now has a reset() action which disconnects (when
410 possible) and clears the global connection reference.
412 Signed-off-by: Bill Erickson <berick@esilibrary.com>
413 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
415 8 2 src/perl/lib/OpenSRF/System.pm
416 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/Client.pm
417 6 0 src/perl/lib/OpenSRF/Transport/SlimJabber/PeerConnection.pm
418 1 0 src/perl/lib/OpenSRF/Transport/SlimJabber/XMPPReader.pm
420 commit af8cab4b4b77f668e3c5ac85d191acf94537ef32
421 Author: Mike Rylander <mrylander@gmail.com>
422 Date: Thu May 16 10:17:15 2013 -0400
424 Protect subrequests from post-complete messages
426 Subrequests (AKA method_lookup()-based API calls) sometimes append
427 final-lvalue responses to the response list even after respond_complete()
428 has been called from within the implementation method. This commit
429 discards all post-respond_complete values, protecting against extra,
430 spurious values being returned to the ultimate client.
432 Signed-off-by: Mike Rylander <mrylander@gmail.com>
433 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
435 16 2 src/perl/lib/OpenSRF/AppSession.pm
437 commit 8d9b6b60cec68910ab48e4477e5de2d451013dc5
438 Author: Galen Charlton <gmc@esilibrary.com>
439 Date: Mon Dec 16 08:08:51 2013 -0800
441 LP#1180849: test case - ignoring subrequest responses after respond_complete()
443 This patch adds a regression test for verifying that subrequests
444 ignore additional responses after respond_complete() is called.
446 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
448 9 1 src/perl/t/02-AppSession.t
450 commit a0d5b0536231cc06552fb9d7533a713c314ef9d3
451 Author: Mike Rylander <mrylander@gmail.com>
452 Date: Thu May 16 10:17:15 2013 -0400
454 Protect subrequests from post-complete messages
456 Subrequests (AKA method_lookup()-based API calls) sometimes append
457 final-lvalue responses to the response list even after respond_complete()
458 has been called from within the implementation method. This commit
459 discards all post-respond_complete values, protecting against extra,
460 spurious values being returned to the ultimate client.
462 Signed-off-by: Mike Rylander <mrylander@gmail.com>
463 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
465 16 2 src/perl/lib/OpenSRF/AppSession.pm
467 commit 59b4dd74e8695bc9bd7ad6c379b0f313db1cbb61
468 Author: Galen Charlton <gmc@esilibrary.com>
469 Date: Mon Dec 16 08:08:51 2013 -0800
471 LP#1180849: test case - ignoring subrequest responses after respond_complete()
473 This patch adds a regression test for verifying that subrequests
474 ignore additional responses after respond_complete() is called.
476 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
478 9 1 src/perl/t/02-AppSession.t
480 commit 4ec8e134da80422f288e3e84024a8aa137b22259
481 Author: Jeff Godin <jgodin@tadl.org>
482 Date: Tue Dec 3 13:52:39 2013 -0500
484 Add some additional boolean-related JSON tests
486 Add some additional boolean-related JSON tests, enable use strict /
487 use warnings for JSON tests.
489 Signed-off-by: Jeff Godin <jgodin@tadl.org>
490 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
492 12 5 src/perl/t/09-Utils-JSON.t
494 commit 9a367d3621706693445b945b283d54281d6dfa0a
495 Author: Mike Rylander <mrylander@gmail.com>
496 Date: Tue Dec 3 09:57:39 2013 -0500
498 LP#1257264: Use the built-in JSON-y test for bools
500 This removes a dependency on internal details of JSON::XS's
501 implementation of Boolean types which changed with the release
504 Signed-off-by: Mike Rylander <mrylander@gmail.com>
505 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
506 Signed-off-by: Jeff Godin <jgodin@tadl.org>
508 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
510 commit db87a311765e1c9bd538504827349a797a9b1bc4
511 Author: Galen Charlton <gmc@esilibrary.com>
512 Date: Tue Dec 3 09:43:54 2013 -0800
514 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
516 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
517 Signed-off-by: Jeff Godin <jgodin@tadl.org>
519 5 5 src/perl/t/09-Utils-JSON.t
521 commit b93e0ca9c88e76d8a6a3c2451cbb49756c6ecf68
522 Author: Jeff Godin <jgodin@tadl.org>
523 Date: Tue Dec 3 13:52:39 2013 -0500
525 Add some additional boolean-related JSON tests
527 Add some additional boolean-related JSON tests, enable use strict /
528 use warnings for JSON tests.
530 Signed-off-by: Jeff Godin <jgodin@tadl.org>
531 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
533 12 5 src/perl/t/09-Utils-JSON.t
535 commit a5be2f1654ea2211abef57f6065d8f6c5ee7f58a
536 Author: Mike Rylander <mrylander@gmail.com>
537 Date: Tue Dec 3 09:57:39 2013 -0500
539 LP#1257264: Use the built-in JSON-y test for bools
541 This removes a dependency on internal details of JSON::XS's
542 implementation of Boolean types which changed with the release
545 Signed-off-by: Mike Rylander <mrylander@gmail.com>
546 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
547 Signed-off-by: Jeff Godin <jgodin@tadl.org>
549 3 4 src/perl/lib/OpenSRF/Utils/JSON.pm
551 commit ff472c0e3c1dd47b5a584ebaf6a64d0534c5438b
552 Author: Galen Charlton <gmc@esilibrary.com>
553 Date: Tue Dec 3 09:43:54 2013 -0800
555 LP#1257264: make test cases for JSON::XS Boolean-ness more generic
557 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
558 Signed-off-by: Jeff Godin <jgodin@tadl.org>
560 5 5 src/perl/t/09-Utils-JSON.t
562 commit 9028b0238106923a64534b88eb6382bf59783ea5
563 Author: Galen Charlton <gmc@esilibrary.com>
564 Date: Thu Sep 12 12:37:57 2013 -0700
566 LP#1224647: remove two invalid tests
568 The patch for bug 1204123 changes the client_recv()
569 to not set the transport_client error flag, as most
570 of the circumstances where it would have been set were
571 for cases where the call to select() was interrupted
572 by a signal, which is not an error per se.
574 This patch removes two tests that were therefore
575 made invalid, restoring the ability of the test suite
578 Signed-off-by: Galen Charlton <gmc@esilibrary.com>
579 Signed-off-by: Bill Erickson <berick@esilibrary.com>
581 0 4 tests/check_transport_client.c
583 commit e203c6edd4e02437a56d98f24a7b8c52b142faee
584 Author: Bill Erickson <berick@esilibrary.com>
585 Date: Thu Sep 5 10:32:09 2013 -0400
587 osrf_control --start/stop/restart-services
589 Provide commands for controling non-router services. This is useful in
590 a multi-server environment where the router runs on a different server.
592 Signed-off-by: Bill Erickson <berick@esilibrary.com>
593 Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
595 44 7 bin/opensrf-perl.pl.in
597 commit 0ef66eea902b50efa360815114c11d40d14560d2
598 Author: Bill Erickson <berick@esilibrary.com>
599 Date: Tue Sep 3 14:56:27 2013 -0400
601 LP#1204123 repair makefile.am warning
603 Avoid trailing space after backslash
605 Signed-off-by: Bill Erickson <berick@esilibrary.com>
606 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
610 commit ca94866879192a2ea962ce12d15573aa83115cd8
611 Author: Bill Erickson <berick@esilibrary.com>
612 Date: Fri Aug 30 14:17:02 2013 -0400
614 LP#1204123 osrf_control warn and exit on bad host
616 Any time a start action is issued (start, start_all, restart,
617 restart_all), osrf_control will first verify that the selected hostname
618 (or localhost) hosts the requested service(s). If not, the user is
619 warned and the script exits before any action is taken.
621 Note: we do not make a similar verification for stop and signal actions,
622 since those may be reasonably be used even when a service is not
623 configured to run on the selected host.
625 Thanks to Jason Stephenson for the suggestion.
627 Signed-off-by: Bill Erickson <berick@esilibrary.com>
628 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
630 30 7 bin/opensrf-perl.pl.in
632 commit f7c7fd436ffdd85abef2f8c76c8e6f59755777ab
633 Author: Bill Erickson <berick@esilibrary.com>
634 Date: Fri Aug 30 13:09:27 2013 -0400
636 LP#1204123 osrf_control --diagnostic improvements
638 Assessing the state of each PID for each service for error conditions.
642 Signed-off-by: Bill Erickson <berick@esilibrary.com>
643 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
645 28 41 bin/opensrf-perl.pl.in
647 commit e6cdba1fe3b3af91d91b13ea0ad4a4d8ceaa4b21
648 Author: Bill Erickson <berick@esilibrary.com>
649 Date: Fri Aug 30 11:27:49 2013 -0400
651 LP#1204123 osrf_control --diagnostic
653 Command prints information about running services, including
654 descrepencies between running vs configured and PS listing vs PID files.
656 Signed-off-by: Bill Erickson <berick@esilibrary.com>
657 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
659 96 4 bin/opensrf-perl.pl.in
661 commit d1d2894e69ca2741b54b936737ac442b1774cd95
662 Author: Bill Erickson <berick@esilibrary.com>
663 Date: Tue Aug 27 15:56:46 2013 -0400
665 LP1204123 osrf_ctl.sh improvement
667 Removing no-longer-supported --verbose flag from osrf_ctl.sh stub
669 Signed-off-by: Bill Erickson <berick@esilibrary.com>
670 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
672 1 2 bin/osrf_ctl.sh.in
674 commit 9c07e2ad85a3a569914070b59c3b185d1cc0f1cb
675 Author: Bill Erickson <berick@esilibrary.com>
676 Date: Tue Aug 27 15:52:48 2013 -0400
678 LP1204123 osrf_control doc updates
680 Signed-off-by: Bill Erickson <berick@esilibrary.com>
681 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
684 1 1 examples/opensrf.xml.example
686 commit 7fed81ab4a24236ef2db4bd0f1d6bd40c65e0b80
687 Author: Bill Erickson <berick@esilibrary.com>
688 Date: Tue Aug 27 11:47:52 2013 -0400
690 C SIGHUP handling and config reloading
692 Sending the HUP signal to a C Listener process now results in the
695 * Reload the opensrf_core config
696 * update the log file level
697 * kill idle child processes
698 * child processes that are active when the signal is received are
699 tracked and killed once they become idle.
700 * New children are spawned per the min child settings
702 The primary use case for these changes is temporarily changing the log
703 level for a given service for debug purposes. It may also
704 be used, for example, to gracefully recover excess RAM consumed by a
707 opensrf.xml (opensrf.settings config) is not reloaded, so min/max child
708 settings will not be affected.
710 Signed-off-by: Bill Erickson <berick@esilibrary.com>
711 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
713 2 0 include/opensrf/osrfConfig.h
714 6 0 src/libopensrf/osrfConfig.c
715 134 19 src/libopensrf/osrf_prefork.c
717 commit 76ceb9d1e4d662c7fa8c41434df940647bf32fef
718 Author: Bill Erickson <berick@esilibrary.com>
719 Date: Fri Aug 16 10:07:10 2013 -0400
721 LP1204123 more osrf_ctl/control script cleanup
723 Signed-off-by: Bill Erickson <berick@esilibrary.com>
724 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
726 1 1 bin/osrf_ctl.sh.in
728 commit 9f8d384361e88d786d70a350f6f154e93a592d7b
729 Author: Bill Erickson <berick@esilibrary.com>
730 Date: Fri Aug 16 10:04:55 2013 -0400
732 LP1204123 more osrf_ctl/control script cleanup
734 Signed-off-by: Bill Erickson <berick@esilibrary.com>
735 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
737 5 3 bin/opensrf-perl.pl.in
738 1 1 bin/osrf_ctl.sh.in
740 commit d849a24e417898d1a4dc2590af51f95f56b508ff
741 Author: Bill Erickson <berick@esilibrary.com>
742 Date: Mon Aug 12 11:39:28 2013 -0400
744 LP1204123 osrf_control improved sample usage
746 Use a more realistic default usage message. --config and --pid-dir have
747 sane defaults, so people will not normally need to specify those.
749 Signed-off-by: Bill Erickson <berick@esilibrary.com>
750 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
752 1 1 bin/opensrf-perl.pl.in
754 commit 7e274fb696485b43bba31315138fad866221b97b
755 Author: Bill Erickson <berick@esilibrary.com>
756 Date: Mon Aug 12 11:33:11 2013 -0400
758 LP1204123 install opensrf-perl.pl as osrf_control
760 Symlink osrf_control to opensrf-perl.pl to act as the replacement for
761 osrf_ctl.sh. I chose "osrf_control" since it matches more closely to
762 "osrf_config" -- also it's probably less confusing than calling it
763 osrf_ctl, which would likely get confused w/ osrf_ctl.sh
767 Signed-off-by: Bill Erickson <berick@esilibrary.com>
768 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
772 commit 79522df516441ea34fa615bd1e83e8bc4ee93d66
773 Author: Bill Erickson <berick@esilibrary.com>
774 Date: Mon Aug 12 11:31:56 2013 -0400
776 LP1204123 opensrf-perl.pl improve logging
778 Log messages by default. Replace --verbose flag with --quiet flag.
780 Also treat all messages the same, instead of separating them into info
781 and debug. They're all pretty useful.
783 Signed-off-by: Bill Erickson <berick@esilibrary.com>
784 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
786 35 21 bin/opensrf-perl.pl.in
788 commit 5f21d07c7d5c61c3cb6c7ecd891fe79e68a06aae
789 Author: Bill Erickson <berick@esilibrary.com>
790 Date: Fri Aug 9 10:40:29 2013 -0400
792 LP1204123 opensrf-perl.pl expansion continued
794 * improved cleanup of stale pid files during startup
795 * added --force-clean-process option to kill orphan (no pidfile)
796 processes during startup
797 * other minor cleanup
799 Signed-off-by: Bill Erickson <berick@esilibrary.com>
800 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
802 78 38 bin/opensrf-perl.pl.in
803 3 7 bin/osrf_ctl.sh.in
805 commit 69b139d87447e9ddc546b5a772e9fa1725e23e6c
806 Author: Bill Erickson <berick@esilibrary.com>
807 Date: Mon Aug 5 16:58:26 2013 -0400
809 LP1204123 opensrf-perl.pl expansion / replace osrf_ctl
811 opensrf-perl.pl can now stop/start/signal/etc. all opensrf services,
812 regardless of language. It is in effect a replacement for osrf_ctl.sh
813 with considerably broader powers.
815 To ease transition, osrf_ctl.sh has been taught to pass
816 start/stop/restart_all commands through to opensrf-perl.pl.
818 The layout of commands has changed some (e.g. --start-all instead of
819 --action start_all) and a host of new commands have been added.
821 Below are the full set of commands. See --help for full descriptions:
825 --settings-startup-pause
837 --graceful-shutdown-all
841 --immediate-shutdown-all
848 Signed-off-by: Bill Erickson <berick@esilibrary.com>
849 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
851 390 49 bin/opensrf-perl.pl.in
852 10 339 bin/osrf_ctl.sh.in
854 commit ca1a08ff5864a2a4ef8e11070330eb0f5eb3c518
855 Author: Bill Erickson <berick@esilibrary.com>
856 Date: Thu Aug 1 10:39:21 2013 -0400
858 LP1204123 Remove osrf_ctl debug echos
860 Signed-off-by: Bill Erickson <berick@esilibrary.com>
861 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
863 0 4 bin/osrf_ctl.sh.in
865 commit 06368dfa151f04c6cbb0b843b7e9dc795a8193c5
866 Author: Bill Erickson <berick@esilibrary.com>
867 Date: Wed Jul 31 17:43:12 2013 -0400
869 LP1204123 Improved per-service control (C/Perl)
871 C opensrf no longer mantains a single master process. Instead, like
872 Perl, each Listener process writes its own PID file and can be managed
873 individually. Related to this, much code was cleaned up in
876 osrf_ctl.sh now has the ability to stop/start individual services for
877 Perl and C, using the new -s <service> option. Examples:
879 osrf_ctl.sh -l -a restart_c -s opensrf.math
880 osrf_ctl.sh -l -a restart_perl -s opensrf.settings
882 Signed-off-by: Bill Erickson <berick@esilibrary.com>
883 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
885 73 8 bin/osrf_ctl.sh.in
886 5 0 include/opensrf/osrf_system.h
887 57 13 src/libopensrf/opensrf.c
888 1 0 src/libopensrf/osrf_prefork.c
889 205 389 src/libopensrf/osrf_system.c
891 commit ab83a04551cd333870d0ee6679e5aa6f4342cfb3
892 Author: Bill Erickson <berick@esilibrary.com>
893 Date: Wed Jul 31 09:34:19 2013 -0400
895 LP1204123 osrf_ctl.sh supports sending signals
897 Using the following new options to osrf_ctl.sh, the script can now send
898 signals to any/all OpenSRF Listener processes:
900 -a signal / signal_all
901 -k <signal> [value passed to 'kill -s']
904 With an action of 'signal' and service provided by -s, the specified
905 signal is sent only to the listener process of the service.
907 With an action of 'signal_all', the specified signal is sent to all
910 Signed-off-by: Bill Erickson <berick@esilibrary.com>
911 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
913 73 2 bin/osrf_ctl.sh.in
915 commit cb6bdf156a69a60fa0a55006b6f638853da3b9f0
916 Author: Bill Erickson <berick@esilibrary.com>
917 Date: Wed Jul 24 16:28:15 2013 -0400
919 LP1204123 Don't treat interrupts as errors
921 Interrupted calls to select() are generally not errors, but more likely
922 signals received by the process. Avoid setting the transport_client
923 error flag to true in these cases. Otherwise, after one signal is
924 received, no other outbound communication can occur on the client
927 Signed-off-by: Bill Erickson <berick@esilibrary.com>
928 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
930 1 3 src/libopensrf/transport_client.c
931 0 1 src/libopensrf/transport_session.c
933 commit ab845cdebe7588a7fd4fb67317b7deab557fa210
934 Author: Bill Erickson <berick@esilibrary.com>
935 Date: Tue Jul 23 12:06:48 2013 -0400
937 LP1204123 SIGUSR2 causes router re-register (Perl/C)
939 When a listener process receives the USR2 signal, the 'register' command
940 is sent to all known routers. This allows for the addition of new
941 routers to running opensrf services.
943 If a register command is sent to a router for which the process is
944 already successfully register, the router will safely discard it, so
945 multiple SIGUSR2 calls are safe.
947 Minor int => bool clarification repair to existing C shutdown
948 (prefork_clear) code.
950 Signed-off-by: Bill Erickson <berick@esilibrary.com>
951 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
953 20 5 src/libopensrf/osrf_prefork.c
954 1 0 src/perl/lib/OpenSRF/Server.pm
956 commit 84d949cc09de9e2689b76541caeae524ab3b1f1e
957 Author: Bill Erickson <berick@esilibrary.com>
958 Date: Tue Jul 23 11:31:34 2013 -0400
960 LP1204123 opensrf.settings reload file option
962 opensrf.settings API calls
964 opensrf.settings.host_config.get
965 opensrf.settings.default_config.get
967 now sport an additional "reload" boolean parameter. When set, the settings
968 file (opensrf.xml) will be reloaded from the file system to pick up any
969 changes which have occurred since the last load/reload.
971 Signed-off-by: Bill Erickson <berick@esilibrary.com>
972 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
974 8 5 src/perl/lib/OpenSRF/Application/Settings.pm
975 13 24 src/perl/lib/OpenSRF/Utils/SettingsClient.pm
976 23 26 src/perl/lib/OpenSRF/Utils/SettingsParser.pm
978 commit 0e535cb775b78699f7ff15d9b73479f0aeaa4246
979 Author: Bill Erickson <berick@esilibrary.com>
980 Date: Mon Jul 22 16:44:26 2013 -0400
982 LP1204123 SIGTERM graceful shutdown (C)
984 When a TERM signal is received, the listener parent process will wait
985 for all child processes to complete any active tasks before killing the
986 child processes and shutting down.
988 Receiving a SIGINT or SIGQUIT results in a non-graceful shutdown.
990 In all cases, the system first un-registers with all routers.
992 Signed-off-by: Bill Erickson <berick@esilibrary.com>
993 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
995 75 20 src/libopensrf/osrf_prefork.c
997 commit fc2dc403640ed245ff2ba8c3f44beea727d0e7cc
998 Author: Bill Erickson <berick@esilibrary.com>
999 Date: Tue Jul 23 10:40:09 2013 -0400
1001 LP1204123 SIGUSR1 causes router unregister (Perl/C)
1003 $ kill -s USR1 <listener_pid>
1005 The listener process will unregister all router connections. This
1006 allows services to remove themselves from consideration for new
1007 inbound requests while allowing their drone processes to complete
1008 any currently running tasks.
1010 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1011 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1013 50 13 src/libopensrf/osrf_prefork.c
1014 4 1 src/perl/lib/OpenSRF/Server.pm
1016 commit 8cc60399d97466c43a87df7e48e80dbc3b88c2d6
1017 Author: Bill Erickson <berick@esilibrary.com>
1018 Date: Fri Jun 21 16:43:01 2013 -0400
1020 LP1204123 SIGTERM causes graceful shutdown (Perl)
1022 When sent the SIGTERM signal, listener processes will wait for all child
1023 processes to complete their currently running tasks before killing all
1024 child processes and exiting.
1026 SIGQUIT and SIGINT can still be used for semi-graceful shutdowns, where
1027 the listener de-registers and cleans up child processes, but does not
1028 wait for child processes to finish their tasks.
1030 To kill with fire, SIGKILL is still your friend.
1032 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1033 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1035 20 4 src/perl/lib/OpenSRF/Server.pm
1037 commit c69aced833683b5256554330aa652f3dd7556d10
1038 Author: Bill Erickson <berick@esilibrary.com>
1039 Date: Wed Jun 26 14:51:52 2013 -0400
1041 LP1204123 Set SIGCHLD handler to DEFAULT for children (perl)
1043 Remove the special SIGCHLD handler applied to the parent/listener
1044 process from spawned child processes (drones) by setting child handler to
1045 DEFAULT. Otherwise, if an OpenSRF drone process spawns a sub-process,
1046 the drone will execute the SIGCHLD handler meant for the Listener when
1047 the sub-process dies, wherein hijinks ensue.
1049 Signed-off-by: Bill Erickson <berick@esilibrary.com>
1050 Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
1052 1 1 src/perl/lib/OpenSRF/Server.pm