Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.4] Fix time bounds in query to address indeterminism #568

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between initialTime..middleTime
val getFirstResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${initialTime.toEpochMilli()}..${middleTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${initialTime.toEpochMilli()}..${middleTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand All @@ -553,7 +553,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between middleTime..finalTime
val getSecondResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${middleTime.toEpochMilli()}..${finalTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${middleTime.toEpochMilli()}..${finalTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand All @@ -563,7 +563,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between finalTime..endTime
val getThirdResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${finalTime.toEpochMilli()}..${endTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?last_updated_time_ms=${finalTime.toEpochMilli()}..${endTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand All @@ -586,7 +586,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between initialTime..middleTime
val getFirstResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?created_time_ms=${initialTime.toEpochMilli()}..${middleTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?created_time_ms=${initialTime.toEpochMilli()}..${middleTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand All @@ -596,7 +596,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between middleTime..finalTime
val getSecondResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?created_time_ms=${middleTime.toEpochMilli()}..${finalTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?created_time_ms=${middleTime.toEpochMilli()}..${finalTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand All @@ -606,7 +606,7 @@ class QueryNotificationConfigIT : PluginRestTestCase() {
// Get notification configs between finalTime..endTime
val getThirdResponse = executeRequest(
RestRequest.Method.GET.name,
"$PLUGIN_BASE_URI/configs?created_time_ms=${finalTime.toEpochMilli()}..${endTime.toEpochMilli()}",
"$PLUGIN_BASE_URI/configs?created_time_ms=${finalTime.toEpochMilli()}..${endTime.toEpochMilli() - 1}",
"",
RestStatus.OK.status
)
Expand Down