fvaleri commented on a change in pull request #3950:
URL: https://github.com/apache/activemq-artemis/pull/3950#discussion_r808930198
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/jdbc/JdbcLeaseLock.java
##########
@@ -114,14 +115,14 @@ private String readableLockStatus() {
final boolean autoCommit = connection.getAutoCommit();
connection.setAutoCommit(false);
try (PreparedStatement preparedStatement =
connection.prepareStatement(this.isLocked)) {
+ final long currentTimestamp = dbCurrentTimeMillis(connection);
Review comment:
I guess in `dbCurrentTimeMillis` we should select the current UTC
timestamp query based on the database type (e.g. `current-timestamp.mssql`) and
fall back to `current-timestamp` with an appropriate warning if the database is
unknown.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]