docs: void endTransaction(Session session) {
  
          try {
              writeLock.lock();
  
              long timestamp = session.transactionTimestamp;
  
              synchronized (liveTransactionTimestamps) {
                  session.isTransaction = false;
  
                  int index = liveTransactionTimestamps.indexOf(timestamp);
  
                  liveTransactionTimestamps.remove(index);
              }
  
              mergeExpiredTransactions(session);
          } finally {
              writeLock.unlock();
          }
      }