Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit removes randomization of locale for SimpleDateFormat, instead using explicit locales. The test framework randomizes locales, so the test can be ran with " ./gradlew ':integTest' --tests "org.opensearch.ad.e2e.DetectionResultEvalutationIT.testRestartHCADDetector" -Dtests.seed=3892A75781CC10EC -Dtests.security.manager=false -Dtests.locale=th-TH-u-nu-thai-x-lvariant-TH -Dtests.timezone=America/Merida -Druntime.java=14". This would cause the code to write the data string in thai locale and make bulk api fail with message "failed to parse date field [๒๕๖๕-๐๕-๒๓T๒๐:๕๖:๐๐Z] with format [strict_date_optional_time||epoch_millis]","caused_by":{"type":"date_time_parse_exception". Signed-off-by: Kaituo Li <[email protected]>
- Loading branch information