Philipp Fehre
c33ac2d9b2
fix: possible event-related deadlocks with some providers ( #1314 )
...
* Move event emitting off the main thread to avoid deadlocks
When stacking event emitting inside an EventProvider, when using sychronization
the EventProvider can deadlock, to avoid this move the event emitting of the
main thread.
Signed-off-by: Philipp Fehre <philipp@fehre.co.uk>
* Test fixes
Test provider should respect the init-delay during all test
Signed-off-by: Philipp Fehre <philipp@fehre.co.uk>
* Add timeout to EventProviderTest
With the events being executed on a different thread, we need to wait to make
sure the thread is scheduled to have the events emitted.
Signed-off-by: Philipp Fehre <philipp@fehre.co.uk>
* Don't reuse the JVM Process
Signed-off-by: Philipp Fehre <philipp@fehre.co.uk>
---------
Signed-off-by: Philipp Fehre <philipp@fehre.co.uk>
Co-authored-by: Philipp Fehre <philipp.fehre@mollie.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2025-02-13 14:01:58 -05:00
Simon Schrottner
64ec68bcf5
build: change checkstyle to google code format, plus adding spotless ( #1264 )
...
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
2025-01-03 19:06:22 +01:00
jarebudev
5c0aaaa8bc
feat: implement domain scoping ( #934 )
...
* initial changes for implementing domain scoping
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
* completed the rest of the renaming and tidying up
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
* applied code review suggested changes
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
* introdcue a dedicated interface for client metadata
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
* add deprecated default getName to be backward compatible as much as possible
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
---------
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Co-authored-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-06-11 09:49:46 -07:00
Dave
cd7470dd7a
fix: removed javax.nullable annotations ( #921 )
...
removing nullable annotation
Signed-off-by: DBlanchard88 <davidblanchard88@gmail.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-05-03 10:50:24 -07:00
jarebudev
8dec14fbea
fix: shutdown method blocks until task executor shutdown completes ( #873 )
...
* shutdown method blocks until task executor shutdown completes
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
* addressed sonar issue with not handling interrupt during waiting
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
---------
Signed-off-by: jarebudev <23311805+jarebudev@users.noreply.github.com>
Co-authored-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
2024-04-06 07:47:42 -04:00
Kavindu Dodanduwa
6c8657d520
chore: various improvements as suggested by sonar ( #797 )
...
* various improvements as suggested by sonar
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
* revert clonable change
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
---------
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2024-02-13 08:39:45 -08:00
Kavindu Dodanduwa
c66b99579f
fix: make executor threads deamon ( #601 )
...
* make executor threads deamon
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
* unify annotation usage
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
---------
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
2023-09-08 11:54:01 -07:00
Kavindu Dodanduwa
fb42a92e9b
fix: ability to set provider after shutdown ( #556 )
...
* fix shutdown
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
* Grammer fix for code comment
Signed-off-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
---------
Signed-off-by: Kavindu Dodanduwa <kavindudodanduwa@gmail.com>
Signed-off-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
2023-08-11 13:48:14 -04:00
Todd Baert
8789f90d33
chore: fix race with events tests ( #545 )
...
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
2023-08-04 15:31:39 -04:00
Todd Baert
bad5b0a7f5
feat: events ( #476 )
...
* feat: events
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: fix bad import, fix test
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: add more coverage of internal
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: remove unused imports
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: unsed imports
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: make inner static
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: more tests, run ready immediately
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: improve reliability of error tests
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* Update src/main/java/dev/openfeature/sdk/OpenFeatureAPI.java
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: review feedback, add comments
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: add provider repo tests, fitest warnings
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* Update src/main/java/dev/openfeature/sdk/OpenFeatureAPI.java
Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: shorten javadoc links, shutdown tasks, use methods refs
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: flaky test
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* Update src/main/java/dev/openfeature/sdk/OpenFeatureClient.java
Co-authored-by: Justin Abrahms <jabrahms@ebay.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: feedback from justin
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: improve javadoc
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
* fixup: test race condition fixes
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
---------
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Co-authored-by: Kavindu Dodanduwa <Kavindu-Dodan@users.noreply.github.com>
Co-authored-by: Justin Abrahms <jabrahms@ebay.com>
2023-07-12 09:22:16 -07:00