Created
September 22, 2023 08:52
-
-
Save aufi/6c3e8e931982e1cc2c706c115a94acbf to your computer and use it in GitHub Desktop.
analysis linenumber change from 68 to 69 - which one is correct? (for local-storage-00001)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
analysis_test.go:153: | |
Different incident error. Got {Resource:{ID:18 CreateUser: UpdateUser: CreateTime:2023-09-22 07:55:54.149135696 +0000 UTC} File:/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java Line:69 Message:An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache. CodeSnip:59 | |
60 @Bean | |
61 public PersistenceExceptionTranslationPostProcessor exceptionTranslation() { | |
62 return new PersistenceExceptionTranslationPostProcessor(); | |
63 } | |
64 | |
65 final Properties additionalProperties() { | |
66 ApplicationConfiguration config = new ApplicationConfiguration(); | |
67 final Properties hibernateProperties = new Properties(); | |
68 hibernateProperties.setProperty("hibernate.hbm2ddl.auto", config.getProperty("hibernate.hbm2ddl.auto")); | |
69 hibernateProperties.setProperty("hibernate.dialect", config.getProperty("hibernate.dialect")); | |
70 hibernateProperties.setProperty("hibernate.cache.use_second_level_cache", "false"); | |
71 | |
72 return hibernateProperties; | |
73 } | |
74 } | |
Facts:map[file:file:///addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java kind:Method name:additionalProperties]}, expected {Resource:{ID:0 CreateUser: UpdateUser: CreateTime:0001-01-01 00:00:00 +0000 UTC} File:/addon/source/tackle-testapp-public/src/main/java/io/konveyor/demo/ordermanagement/config/PersistenceConfig.java Line:68 Message:An application running inside a container could lose access to a file in local storage.. Recommendations. The following recommendations depend on the function of the file in local storage:. * Logging: Log to standard output and use a centralized log collector to analyze the logs.. * Caching: Use a cache backing service.. * Configuration: Store configuration settings in environment variables so that they can be updated without code changes.. * Data storage: Use a database backing service for relational data or use a persistent data storage system.. * Temporary data storage: Use the file system of a running container as a brief, single-transaction cache. CodeSnip: Facts:map[]}. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment