[ISSUE 5541] Fix H2 in-memory database table missing issues (#6008)

* add ;DB_CLOSE_DELAY=-1 to the database URL

* Update CHANGES log

* add ;DB_CLOSE_DELAY=-1 to the H2 database URL of application.yml

Co-authored-by: zhanglei36 <zhanglei36@asiainfo.com>
This commit is contained in:
Lei Zhang 2020-12-15 16:05:03 +08:00 committed by GitHub
parent 065a79778a
commit 957d549b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ Release Notes.
* Fix potential gRPC connection leak(not closed) for the channels among OAP instances.
* Filter OAP instances(unassigned in booting stage) of the empty IP in KubernetesCoordinator.
* Add component ID for Python aiohttp plugin requester and server.
* Fix H2 in-memory database table missing issues
#### UI
* Fix un-removed tags in trace query.

View File

@ -154,7 +154,7 @@ storage:
advanced: ${SW_STORAGE_ES_ADVANCED:""}
h2:
driver: ${SW_STORAGE_H2_DRIVER:org.h2.jdbcx.JdbcDataSource}
url: ${SW_STORAGE_H2_URL:jdbc:h2:mem:skywalking-oap-db}
url: ${SW_STORAGE_H2_URL:jdbc:h2:mem:skywalking-oap-db;DB_CLOSE_DELAY=-1}
user: ${SW_STORAGE_H2_USER:sa}
metadataQueryMaxSize: ${SW_STORAGE_H2_QUERY_MAX_SIZE:5000}
maxSizeOfArrayColumn: ${SW_STORAGE_MAX_SIZE_OF_ARRAY_COLUMN:20}

View File

@ -26,7 +26,7 @@ import org.apache.skywalking.oap.server.library.module.ModuleConfig;
@Getter
public class H2StorageConfig extends ModuleConfig {
private String driver = "org.h2.jdbcx.JdbcDataSource";
private String url = "jdbc:h2:mem:skywalking-oap-db";
private String url = "jdbc:h2:mem:skywalking-oap-db;DB_CLOSE_DELAY=-1";
private String user = "";
private String password = "";
private int metadataQueryMaxSize = 5000;