Skip to content

Commit 1dfe6d0

Browse files
committed
Fix database lose data in standalone
1 parent b2a3786 commit 1dfe6d0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/aspect/AccessLogAnnotation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
@Documented
2929
public @interface AccessLogAnnotation {
3030
// ignore request args
31-
String[] ignoreRequestArgs() default {};
31+
String[] ignoreRequestArgs() default {"loginUser"};
3232

3333
boolean ignoreRequest() default false;
3434

dolphinscheduler-standalone-server/src/main/resources/application.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ spring:
3131
- taskDefinition
3232
caffeine:
3333
spec: maximumSize=100,expireAfterWrite=300s,recordStats
34+
sql:
35+
init:
36+
schema-locations: classpath:sql/dolphinscheduler_h2.sql
3437
datasource:
3538
driver-class-name: org.h2.Driver
36-
url: jdbc:h2:mem:dolphinscheduler;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;INIT=runscript from 'classpath:sql/dolphinscheduler_h2.sql'
39+
url: jdbc:h2:mem:dolphinscheduler;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true
3740
username: sa
3841
password: ""
3942
hikari:

0 commit comments

Comments
 (0)