blob: ce5851b5abb193859e074e3ea6587f95fa337347 [file] [log] [blame]
!
! @@@ START COPYRIGHT @@@
!
! Licensed to the Apache Software Foundation (ASF) under one
! or more contributor license agreements. See the NOTICE file
! distributed with this work for additional information
! regarding copyright ownership. The ASF licenses this file
! to you under the Apache License, Version 2.0 (the
! "License"); you may not use this file except in compliance
! with the License. You may obtain a copy of the License at
!
! http://www.apache.org/licenses/LICENSE-2.0
!
! Unless required by applicable law or agreed to in writing,
! software distributed under the License is distributed on an
! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
! KIND, either express or implied. See the License for the
! specific language governing permissions and limitations
! under the License.
!
! @@@ END COPYRIGHT @@@
!
!
! Persistent process test10a
!
! Test sequence:
! Client $CLT
! - connects to server $ABC and reconnects on every send failure
! - 20 sends to server $ABC with a 1 second delay between sends
! - 5th and 15th tell server to abort and 20th to exit
! - between 6th and 15th node down is executed
! Server $ABC
! - responds to client server as per above
! - on 5th abort restarts on node 2
! - on down node restarts on node 4
! - on 15th abort restarts on node 4
! - on 20th exits and will not be restarted
set {process $ABC} PERSIST_ZONES=2,4
set {process $ABC} PERSIST_RETRIES=2,30
exec {name $ABC,nid 2,nowait} server
delay 4
! process $ABC should start on node 2
exec {pri 10,name $CLT,nid 0,in #default, out #default,nowait} client2
ps
delay 15
down 2
delay 1
node info
! process $ABC should be restarted on node 4
ps
wait $CLT
ps
exit