You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Amemeda (via GitHub)" <gi...@apache.org> on 2026/08/31 16:09:09 UTC

[PR] Replace AFS.verifyReserved with a condition [accumulo]

Amemeda opened a new pull request, #6521:
URL: https://github.com/apache/accumulo/pull/6521

   - Added requireReserved() to `FateMutator.java` and `FateMutatorImpl.java`.
   - Replaced conditional logic in putUnreserveTx() with call to new requiredReserved() method as it contains the same logic used in putUnreserveTx().
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "DomGarguilo (via GitHub)" <gi...@apache.org>.
DomGarguilo commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3982965651


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -414,6 +414,12 @@ private FateMutatorImpl<T> newMutator(FateId fateId) {
     return new FateMutatorImpl<>(context, tableName, fateId, writer);
   }
 
+  public FateMutatorImpl<T> newReservedMutator(FateId fateId, FateReservation reservation) {
+    Preconditions.checkState(fateId != null,

Review Comment:
   Instead of `fateId != null` we should be checking `!deleted` here. Its probably not strictly necessary but its what catches a write through a handle whose transaction is already gone. I think technically `requireReserved()` would reject in that case anyways but this is nice since it fails fast and gives us a clearer error message.
   
   Also if we move this helper into FateTxStoreImpl we can get rid of the parameters and every caller is already in FateTxStoreImpl anyways
   ```java
       private FateMutatorImpl<T> newReservedMutator() {
         Preconditions.checkState(!deleted, "Attempted write on deleted FATE transaction: " + fateId);
         FateMutatorImpl<T> mutator = newMutator(fateId);
         mutator.requireReserved(reservation);
         return mutator;
       }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137248730


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   `verifyReservedAndNotDeleted()` was also removed from multiple methods in UserFateStore like push, setStatus, and setTransactionInfo, I'm not understading how only the assertThrows for pop() is being affected 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "DomGarguilo (via GitHub)" <gi...@apache.org>.
DomGarguilo commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4050202710


##########
core/src/main/java/org/apache/accumulo/core/fate/user/FateMutator.java:
##########
@@ -52,6 +52,11 @@ public interface FateMutator<T> {
    */
   FateMutator<T> requireUnreserved();
 
+  /**
+   * Require the transaction has a reservation.

Review Comment:
   ```suggestion
      * Require the transaction is reserved with the given reservation.
   ```



##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -544,10 +544,13 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
       super(fateId, reservation);
     }
 
+    public FateMutatorImpl<T> newReservedMutator() {
+      Preconditions.checkState(!deleted, "Attempted write on deleted FATE transaction: " + fateId);
+      return (FateMutatorImpl<T>) newMutator(fateId).requireReserved(reservation);
+    }

Review Comment:
   ```suggestion
       private FateMutatorImpl<T> newReservedMutator() {
         Preconditions.checkState(isReserved(),
             "Attempted write on unreserved FATE transaction: " + fateId);
         Preconditions.checkState(!deleted, "Attempted write on deleted FATE transaction: " + fateId);
         FateMutatorImpl<T> mutator = newMutator(fateId);
         mutator.requireReserved(reservation);
         return mutator;
       }
   ```
   Few things here:
   * this method can be private
   * `verifyReservedAndNotDeleted` checks `isReserved() && !deleted` so we should probably do the same here. I broke it into two checks so the failure message is clearer which condition failed
   * shuffled things around so we can avoid the cast to `FateMutatorImpl`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3978401356


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -414,6 +414,12 @@ private FateMutatorImpl<T> newMutator(FateId fateId) {
     return new FateMutatorImpl<>(context, tableName, fateId, writer);
   }
 
+  public FateMutatorImpl<T> newReservedMutator(FateId fateId, FateReservation reservation) {
+    Preconditions.checkState(fateId != null,

Review Comment:
   `new Mutator(FateId)` doesn't perform this check. Maybe it's not necessary?



##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +610,47 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
-      FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+      FateMutator<T> fateMutator = newReservedMutator(fateId, reservation)

Review Comment:
   You could remove the `newReservedMutator` method and just add `.requireReserved(reservation)` to the call chain.



##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -546,8 +552,6 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
 
     @Override
     public Repo<T> top() {
-      verifyReservedAndNotDeleted(false);

Review Comment:
   I don't know that `verifyReservedAndNoDeleted` should be removed from methods that only perform a scan. I think that these should remain, and the new `.requireReserved()` method be used in it's place in the methods that mutate the state.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4136992479


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   Maybe it's not this method per-se. The code in FateITBase.testNoWriteAfterDelete looks like:
   ```
       // test that all write ops result in an exception since the tx has been deleted
       assertThrows(Exception.class, () -> txStore.push(repo));
       assertThrows(Exception.class, () -> txStore.setStatus(ReadOnlyFateStore.TStatus.SUCCESSFUL));
       assertThrows(Exception.class, txStore::pop);
   ```
   
   It's supposed to fail on the that last line, line 573 in the source. But it's not. The comment says that all write ops should result in an exception because the tx has been deleted. Maybe the method is not throwing an error when the tx is deleted?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4136999842


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   `verifyReservedAndNotDeleted(true);` was removed, this probably threw the exception that was expected in the test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4050318177


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -544,10 +544,13 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
       super(fateId, reservation);
     }
 
+    public FateMutatorImpl<T> newReservedMutator() {
+      Preconditions.checkState(!deleted, "Attempted write on deleted FATE transaction: " + fateId);
+      return (FateMutatorImpl<T>) newMutator(fateId).requireReserved(reservation);
+    }

Review Comment:
   fixed in https://github.com/apache/accumulo/pull/6521/changes/381fa41b4d4667784e86e746c96d6324e5f06260



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3980466810


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -546,8 +552,6 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
 
     @Override
     public Repo<T> top() {
-      verifyReservedAndNotDeleted(false);

Review Comment:
   Quoting from the original issue : "A new method added to FateMutator that adds the condition that the FateId is reserved... verifyReserved() would no longer be needed for UserFateStore"
   
   I had taken this as removing all usages of `verifyReservedAndNotDeleted` from `UserFateStore`. Also linking Dom's comment where he believed the usages can be removed: https://github.com/apache/accumulo/pull/6521#discussion_r3928071988



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion merged PR #6521:
URL: https://github.com/apache/accumulo/pull/6521


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AFS.verifyReserved with a condition [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#issuecomment-5497091331

   Since verifyReservedAndNotDeleted() was removed from `UserFateStore.java`, new requireReserved() was implemented in its place on the FateMutator side. However, in 4 `UserFateStore.java` methods (top, getStack, getTransactionInfo, timeCreated) there is no corresponding fateMutator method being called where requireReserved() should be added. Unsure how to replace implementation for these 4 methods.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3981872799


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -546,8 +552,6 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
 
     @Override
     public Repo<T> top() {
-      verifyReservedAndNotDeleted(false);

Review Comment:
   Ok, I agree that it's a no-op if the argument is `false`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4136879695


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   Adding that condition breaks it for some reason, I can only get the test to pass by creating the reserved mutator first. For reference, this is how I had it with your suggestion to to check present first, which is failing: 
   ```java
   @Override
       public void pop() {
         Optional<Integer> top = findTop();
         if (top.isPresent()) {
           FateMutator<T> fateMutator =
                   newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
           top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());
         }
       }
   ``` 
   
   So if I simplify it more, it also fails:
   ```java
   @Override
       public void pop() {
         Optional<Integer> top = findTop();
         if (top.isPresent()) {
                   newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new)).deleteRepo(top.get()).mutate();
         }
       }
   ``` 
   
   Any further simplification is just the original code, which was the initial failing point. It is only passing with the pop method as is in my current commit 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4050316359


##########
core/src/main/java/org/apache/accumulo/core/fate/user/FateMutator.java:
##########
@@ -52,6 +52,11 @@ public interface FateMutator<T> {
    */
   FateMutator<T> requireUnreserved();
 
+  /**
+   * Require the transaction has a reservation.

Review Comment:
   fixed in https://github.com/apache/accumulo/pull/6521/changes/381fa41b4d4667784e86e746c96d6324e5f06260



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137182905


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   I am not seeing an exception thrown from `verifyReservedAndNotDeleted()`, the method does contain a `preconditions.checkstate()` which throws IllegalStateException, but the new method `FateMutator.requireReserved()` that replaced that functionality also does its own precondition check



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3970583587


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -414,6 +414,12 @@ private FateMutatorImpl<T> newMutator(FateId fateId) {
     return new FateMutatorImpl<>(context, tableName, fateId, writer);
   }
 
+  public FateMutatorImpl<T> newReservedMutator(FateId fateId, FateReservation reservation) {
+    Preconditions.checkState(fateId != null,

Review Comment:
   fateId != null is probably the wrong check, needs to be corrected but not sure to what 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4144148519


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   I think that is correct now. `newReservedMutator()` will check if the Fate operation is deleted and throw an IllegalStateException if so. Calling `newReservedMutator()` unconditionally is correct I think. I checked the other methods and they seem correct as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4136530000


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   If top is not present, then no need to create the FateMutator at all. I think we can just `return` from this method if top is not present after calling `findTop`. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4136879695


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   Adding that condition breaks it for some reason, I can only get the test to pass by creating the reserved mutator first. For reference, this is how I had it with your suggestion to to check present first, which is failing: 
   ```java
   @Override
       public void pop() {
         Optional<Integer> top = findTop();
         if (top.isPresent()) {
           FateMutator<T> fateMutator =
                   newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
           top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());
         }
       }
   ``` 
   
   So if I simplify it more, it also fails:
   ```java
   @Override
       public void pop() {
         Optional<Integer> top = findTop();
         if (top.isPresent()) {
                   newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new)).deleteRepo(top.get()).mutate();
         }
       }
   ``` 
   
   Any further simplification is just the original code, which was the initial failing point



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#issuecomment-5894876649

   I was able to reproduce the failure. Updated UserFateStore.pop() by moving the create a new reserved fate mutator outside of the `top.ifPresent(...)`, but kept the deleteRepo and mutate:
   
   `FateMutator<T> fateMutator = newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
    top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());`
   
   The push method right above handles this the exact same way, the failing test is now passing locally.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137646496


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   Updated in 34cbe326deb9853a387eec547672071f5e8291d4. pop() now throws exception and test passes, maven build gave me a checkstyle violation for just trying to throw the exception in an if, had to reformat it to use java `Optional.orElseThrow()` from within the new mutator setup:
   
   ```java
    @Override
       public void pop() {
         Optional<Integer> top = findTop();
         newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
             .deleteRepo(top.orElseThrow()).mutate();
       }
   ``` 
   
   lmk if I need to fix that usage



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137182905


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   I am not seeing an exception thrown from `verifyReservedAndNotDeleted()`, the method does contain a `preconditions.checkstate()` which throws IllegalStateException, but the new method `FateMutator.requireReserved()` that replaced that functionality also does its own precondition check. And helper method `UserFateStore.newReservedMutator()` also has a precondition check for deleted



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3981892253


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +610,47 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
-      FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+      FateMutator<T> fateMutator = newReservedMutator(fateId, reservation)

Review Comment:
   I'm fine either way. I'm still not sure you need to check `fateId != null` in the new method. The other method doesn't check it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "dlmarion (via GitHub)" <gi...@apache.org>.
dlmarion commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137275775


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   Ok, that makes more sense then. Since the fate tx is deleted, `top.isPresent()` == false. Moving the call to `newReservedMutator` inside the check will not throw the exception, failing the test. I wonder if the fix is to throw an IllegalStateException if `top.isPresent() == false`? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "DomGarguilo (via GitHub)" <gi...@apache.org>.
DomGarguilo commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3928071988


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -546,7 +546,7 @@ private FateTxStoreImpl(FateId fateId, FateReservation reservation) {
 
     @Override
     public Repo<T> top() {
-      verifyReservedAndNotDeleted(false);
+      newMutator(fateId).requireReserved(reservation);

Review Comment:
   Pretty sure all these spots can just be removed instead of replaced. `verifyReservedAndNotDeleted(false)` is a no-op. Also this `newMutator(fateId).requireReserved(reservation);` creates a conditional mutation but never sends it which we don't want or need to do.



##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,61 +612,49 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
-      FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+      FateMutator<T> fateMutator = newMutator(fateId)
+          .requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new)).requireReserved(reservation);
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
       top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+          .requireReserved(reservation).deleteRepo(t).mutate());
     }
 
     @Override
     public void setStatus(TStatus status) {
-      verifyReservedAndNotDeleted(true);
-
-      newMutator(fateId).putStatus(status).mutate();
+      newMutator(fateId).requireReserved(reservation).putStatus(status).mutate();

Review Comment:
   ```suggestion
         newReservedMutator().putStatus(status).mutate();
   ```
   It might be nice to create a helper in this class that returns `newMutator(fateId).requireReserved(reservation)`. Then we can just replace the `newMutator()` calls with `newReservedMutator()`.
   
   It also has the benefit of making the code shorter and we can add a check in this new helper method like 
   `Preconditions.checkState(!deleted, Attempted write on deleted FATE transaction: " + fateId);` for completeness



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r3980385560


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +610,47 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
-      FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+      FateMutator<T> fateMutator = newReservedMutator(fateId, reservation)

Review Comment:
   `newReservedMutator` was added from Doms suggestion to create a helper method in the class, similar to the usage of `newMutator` https://github.com/apache/accumulo/pull/6521#discussion_r3928152198



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Replace AbstractFateStore.verifyReserved() with new method FateMutator.requireReserved() [accumulo]

Posted by "Amemeda (via GitHub)" <gi...@apache.org>.
Amemeda commented on code in PR #6521:
URL: https://github.com/apache/accumulo/pull/6521#discussion_r4137248730


##########
core/src/main/java/org/apache/accumulo/core/fate/user/UserFateStore.java:
##########
@@ -612,60 +613,48 @@ public long timeCreated() {
 
     @Override
     public void push(Repo<T> repo) throws StackOverflowException {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
 
       if (top.filter(t -> t >= MAX_REPOS).isPresent()) {
         throw new StackOverflowException("Repo stack size too large");
       }
 
       FateMutator<T> fateMutator =
-          newMutator(fateId).requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
+          newReservedMutator().requireStatus(REQ_PUSH_STATUS.toArray(TStatus[]::new));
       fateMutator.putRepo(top.map(t -> t + 1).orElse(1), repo).mutate();
     }
 
     @Override
     public void pop() {
-      verifyReservedAndNotDeleted(true);
-
       Optional<Integer> top = findTop();
-      top.ifPresent(t -> newMutator(fateId).requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new))
-          .deleteRepo(t).mutate());
+      FateMutator<T> fateMutator =
+          newReservedMutator().requireStatus(REQ_POP_STATUS.toArray(TStatus[]::new));
+      top.ifPresent(t -> fateMutator.deleteRepo(t).mutate());

Review Comment:
   `verifyReservedAndNotDeleted()` was also removed from multiple methods in UserFateStore like push, setStatus, and setTransactionInfo, so I'm not understanding how only the assertThrows for pop() is being affected 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org