apache/hadoop · error · RuntimeException

Failed to update token sequence number in SQL secret manager

Error message

Failed to update token sequence number in SQL secret manager

What it means

Error "Failed to update token sequence number in SQL secret manager" thrown in apache/hadoop.

Source

Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/SQLDelegationTokenSecretManager.java:296

  public int getDelegationTokenSeqNum() {
    try {
      return selectSequenceNum();
    } catch (SQLException e) {
      throw new RuntimeException(
          "Failed to get token sequence number in SQL secret manager", e);
    }
  }

  /**
   * Updates the value of the last reserved sequence number.
   * @param seqNum Value to update the sequence number to.
   */
  @Override
  public void setDelegationTokenSeqNum(int seqNum) {
    try {
      updateSequenceNum(seqNum);
    } catch (SQLException e) {
      throw new RuntimeException(
          "Failed to update token sequence number in SQL secret manager", e);
    }
  }

  /**
   * Obtains the next available sequence number that can be allocated to a Token.
   * Sequence numbers need to be reserved using the shared sequenceNumberCounter once
   * the local batch has been exhausted, which handles sequenceNumber allocation
   * concurrently with other secret managers.
   * This method ensures that sequence numbers are incremental in a single secret manager,
   * but not across secret managers.
   * @return Next available sequence number.
   */
  @Override
  public synchronized int incrementDelegationTokenSeqNum() {
    if (currentSeqNum >= currentMaxSeqNum) {
      try {
        // Request a new batch of sequence numbers and use the

View on GitHub (pinned to 2add963021)

Solutions

  1. Updating the token sequence number row failed. Verify the counter row exists and the connection is writable; check the chained SQLException.

When it happens

Trigger: Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/SQLDelegationTokenSecretManager.java:296 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/26cda59227cbaec1. Report an issue: GitHub.