coolbeevip opened a new pull request #6008:
URL: https://github.com/apache/skywalking/pull/6008


   
   ### Fix <bug description or the bug issue number or bug issue link>
   - [ ] Add a unit test to verify that the fix works.
   - [x] Explain briefly about why the bug exists and how to fix it.
   
      Just add ;DB_CLOSE_DELAY=-1 to the database URL for H2StorageConfig
      
      See the [In-Memory 
Databases](http://h2database.com/html/features.html#in_memory_databases) 
section of the Features page. To quote:
      > By default, closing the last connection to a database closes the 
database. For an in-memory database, this means the content is lost. To keep 
the database open, add ;DB_CLOSE_DELAY=-1 to the database URL. To keep the 
content of an in-memory database as long as the virtual machine is alive, use 
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1.
   - [x] If this pull request closes/resolves/fixes an existing issue, replace 
the issue number. Closes #5541 
   - [x] Update the [`CHANGES` 
log](https://github.com/apache/skywalking/blob/master/CHANGES.md).
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to