code: public boolean shutdown() {
          if (tc.isEntryEnabled())
              Tr.entry(tc, "shutdown");
  
          boolean result = false;
          final RecoveryLog partnerLog = _failureScopeController.getPartnerLog();
  
          _pltWriteLock.lock();
  
          try {
              for (PartnerLogData pld : _partnerLogTable) {
                  if (tc.isDebugEnabled())
                      Tr.debug(tc, "processing: ", pld);
                  if (pld.getRecovered()) {
                      if (pld._loggedToDisk && partnerLog != null) {
                          try {
                              // Need to remove this from the log
                              partnerLog.removeRecoverableUnit(pld.getRecoveryId());
                          } catch (Exception e) {
                              FFDCFilter.processException(e, "com.ibm.ws.Transaction.JTA.PartnerLogTable.shutdown", "364");
                              Tr.error(tc, "WTRN0000_ERR_INT_ERROR", new Object[] { "shutdown", "com.ibm.ws.Transaction.JTA.PartnerLog", e });
                              Tr.event(tc, "XAResources log - removeRecoverableUnit failed:", e);
                              result = true; // Couldnt remove entry from log, so it's still there
                          }
                      }
                  } else {
                      if (!pld._loggedToDisk && partnerLog != null) {
                          // This is an error. We have a txn which refers to an entry which is not logged
                          Tr.warning(tc, "WTRN0039_SERIALIZE_FAILED");
                      } else {
                          result = true;
                      }
                  }
              }
          } finally {
              _pltWriteLock.unlock();
          }
  
          if (tc.isEntryEnabled())
              Tr.exit(tc, "shutdown", result);
          return result;
      }
docs: We are shutting down the server. Cycle through the recovery records and delete those which are
  marked not recovered. (These are either real not recoverd records or records that belong to
  active transactions.) If there are no recovery records left, then we zap the files, otherwise
  we need to rewrite a shutdown record.
  
  @return whether there are entries we need to keep