You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "eric-maynard (via GitHub)" <gi...@apache.org> on 2025/06/03 17:44:24 UTC
Re: [PR] Support per-task transactional leasing in `loadTasks` [polaris]
eric-maynard commented on code in PR #1523:
URL: https://github.com/apache/polaris/pull/1523#discussion_r2124516114
##########
polaris-core/src/main/java/org/apache/polaris/core/persistence/transactional/TransactionalMetaStoreManagerImpl.java:
##########
@@ -1985,11 +1983,60 @@ private PolarisEntityResolver resolveSecurableToRoleGrant(
return new EntitiesResult(loadedTasks);
}
+ private @Nonnull EntitiesResult loadTasksWithIsolatedTxn(
+ @Nonnull PolarisCallContext callCtx,
+ @Nonnull TransactionalPersistence ms,
+ String executorId,
+ int limit) {
+ List<EntitiesResult> entitySuccessResults = new ArrayList<>();
+ final AtomicInteger failedLeaseCount = new AtomicInteger(0);
Review Comment:
Do we actually need `AtomicInteger` here if it's only being used within one thread?
--
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: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org