Affects Version/s: 4.0_b85
Fix Version/s: None
1) Created a cluster with an instance.
2) Start the derby database.
3) Deploy a batch app to the cluster and start job and wait till it gets completed.
4) List batch job in CLI returns the completed batch job.
Just simulated database connection failure by killing the database and started it again.
5)Now try to list batch jobs again in CLI
bash-4.1$ asadmin list-batch-jobs --target test-cluster -l
remote failure: java.lang.NullPointerException
An error occurred during replication
Failure: Command _ListBatchJobs failed on server instance cl-instance1: remote failure: java.sql.SQLNonTransientConnectionException: Insufficient data while reading from the network - expected a minimum of 6 bytes and received only 0 bytes. The connection has been terminated.
Command list-batch-jobs failed.
Not sure it is expected behavior or not. Every time database connection is dead and comes back again, it requires the target needs to be restarted.