Revert "[Improvement](auditlog) add column catalog for audit log and audit log table (#26403)" (#28177)
This reverts commit daea751a986823bf5858704663d58f49fd5dfb39.
This commit is contained in:
@ -56,8 +56,6 @@ public class AuditEvent {
|
||||
public String clientIp = "";
|
||||
@AuditField(value = "User")
|
||||
public String user = "";
|
||||
@AuditField(value = "Catalog")
|
||||
public String catalog = "";
|
||||
@AuditField(value = "Db")
|
||||
public String db = "";
|
||||
@AuditField(value = "State")
|
||||
@ -133,11 +131,6 @@ public class AuditEvent {
|
||||
return this;
|
||||
}
|
||||
|
||||
public AuditEventBuilder setCatalog(String catalog) {
|
||||
auditEvent.catalog = catalog;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AuditEventBuilder setDb(String db) {
|
||||
auditEvent.db = db;
|
||||
return this;
|
||||
|
||||
@ -57,11 +57,6 @@ public class AuditLogHelper {
|
||||
.setWorkloadGroup(ctx.getWorkloadGroupName())
|
||||
.setFuzzyVariables(!printFuzzyVariables ? "" : ctx.getSessionVariable().printFuzzyVariables());
|
||||
|
||||
// when doric fe is booting, current catalog may not be set
|
||||
if (ctx.getCurrentCatalog() != null) {
|
||||
ctx.getAuditEventBuilder().setCatalog(ctx.getCurrentCatalog().getName());
|
||||
}
|
||||
|
||||
if (ctx.getState().isQuery()) {
|
||||
MetricRepo.COUNTER_QUERY_ALL.increase(1L);
|
||||
MetricRepo.USER_COUNTER_QUERY_ALL.getOrAdd(ctx.getQualifiedUser()).increase(1L);
|
||||
|
||||
Reference in New Issue
Block a user