Skip to content

Conversation

@slfan1989
Copy link
Contributor

JIRA: YARN-11349. [Federation] Router Support DelegationToken With SQL.

import org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKeyRequest;
import org.apache.hadoop.yarn.server.federation.store.records.RouterRMTokenRequest;
import org.apache.hadoop.yarn.server.federation.store.records.RouterStoreToken;
import org.apache.hadoop.yarn.server.federation.store.records.RouterMasterKeyRequest;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid these changes in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your suggestion, I will modify the code.

public Integer handle(Object... params) throws SQLException {
Integer result = 0;
for (Object param : params) {
if (param != null && param instanceof FederationSQLOutParameter) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check null as instanceof already does it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix it.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 12m 12s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 32s Maven dependency ordering for branch
+1 💚 mvninstall 25m 30s trunk passed
+1 💚 compile 23m 16s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 31s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 46s trunk passed
+1 💚 mvnsite 8m 9s trunk passed
-1 ❌ javadoc 1m 1s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 9s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 17s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 25s trunk passed
+1 💚 shadedclient 19m 52s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 6m 35s the patch passed
+1 💚 compile 22m 30s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 30s the patch passed
+1 💚 javac 22m 30s the patch passed
+1 💚 compile 20m 23s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 23s the patch passed
+1 💚 javac 20m 23s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 3m 38s /results-checkstyle-root.txt root: The patch generated 15 new + 34 unchanged - 0 fixed = 49 total (was 34)
+1 💚 mvnsite 8m 8s the patch passed
-1 ❌ javadoc 0m 52s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 11s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 0m 39s /results-javadoc-javadoc-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 generated 5 new + 0 unchanged - 0 fixed = 5 total (was 0)
-1 ❌ javadoc 2m 37s /results-javadoc-javadoc-hadoop-yarn-project_hadoop-yarn-jdkPrivateBuild-1.8.0_352-8u352-ga-1~20.04-b08.txt hadoop-yarn-project_hadoop-yarn-jdkPrivateBuild-1.8.0_352-8u352-ga-120.04-b08 with JDK Private Build-1.8.0_352-8u352-ga-120.04-b08 generated 5 new + 930 unchanged - 0 fixed = 935 total (was 930)
-1 ❌ javadoc 0m 35s /results-javadoc-javadoc-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common-jdkPrivateBuild-1.8.0_352-8u352-ga-1~20.04-b08.txt hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common-jdkPrivateBuild-1.8.0_352-8u352-ga-120.04-b08 with JDK Private Build-1.8.0_352-8u352-ga-120.04-b08 generated 5 new + 0 unchanged - 0 fixed = 5 total (was 0)
-1 ❌ spotbugs 12m 11s /new-spotbugs-hadoop-yarn-project_hadoop-yarn.html hadoop-yarn-project/hadoop-yarn generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
-1 ❌ spotbugs 1m 40s /new-spotbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common.html hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 💚 shadedclient 19m 59s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 4s hadoop-common in the patch passed.
+1 💚 unit 234m 4s hadoop-yarn in the patch passed.
+1 💚 unit 3m 34s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 54s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
523m 41s
Reason Tests
SpotBugs module:hadoop-yarn-project/hadoop-yarn
Exception is caught when Exception is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:[line 259]
SpotBugs module:hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common
Exception is caught when Exception is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:[line 259]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/1/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux cbe00e815177 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / cb15416
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/1/testReport/
Max. process+thread count 2702 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/1/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 48s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 buf 0m 0s buf was not available.
+0 🆗 buf 0m 0s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 7s Maven dependency ordering for branch
+1 💚 mvninstall 26m 4s trunk passed
+1 💚 compile 23m 2s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 26s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 48s trunk passed
+1 💚 mvnsite 8m 20s trunk passed
-1 ❌ javadoc 1m 2s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 29s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 32s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 54s trunk passed
+1 💚 shadedclient 20m 2s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for patch
+1 💚 mvninstall 6m 43s the patch passed
+1 💚 compile 22m 29s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 29s the patch passed
+1 💚 javac 22m 29s the patch passed
+1 💚 compile 20m 20s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 20s the patch passed
+1 💚 javac 20m 20s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 3m 41s /results-checkstyle-root.txt root: The patch generated 9 new + 34 unchanged - 0 fixed = 43 total (was 34)
+1 💚 mvnsite 8m 4s the patch passed
-1 ❌ javadoc 0m 52s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 11s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 20s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
-1 ❌ spotbugs 12m 6s /new-spotbugs-hadoop-yarn-project_hadoop-yarn.html hadoop-yarn-project/hadoop-yarn generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
-1 ❌ spotbugs 1m 37s /new-spotbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common.html hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 💚 shadedclient 19m 58s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 0s hadoop-common in the patch passed.
+1 💚 unit 233m 23s hadoop-yarn in the patch passed.
+1 💚 unit 3m 28s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 54s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
513m 32s
Reason Tests
SpotBugs module:hadoop-yarn-project/hadoop-yarn
Exception is caught when Exception is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:[line 266]
SpotBugs module:hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common
Exception is caught when Exception is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:is not thrown in org.apache.hadoop.yarn.server.federation.store.sql.FederationQueryRunner.selectOrUpdateSequenceTable(Connection, String, boolean) At FederationQueryRunner.java:[line 266]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/2/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 0bb1284aef13 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 1faf945
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/2/testReport/
Max. process+thread count 2701 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/2/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 50s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 buf 0m 0s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 29s Maven dependency ordering for branch
+1 💚 mvninstall 25m 48s trunk passed
+1 💚 compile 23m 6s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 18s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 43s trunk passed
+1 💚 mvnsite 8m 8s trunk passed
-1 ❌ javadoc 1m 2s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 19s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 29s trunk passed
+1 💚 shadedclient 19m 58s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 6m 40s the patch passed
+1 💚 compile 22m 24s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 24s the patch passed
+1 💚 javac 22m 24s the patch passed
+1 💚 compile 20m 21s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 21s the patch passed
+1 💚 javac 20m 21s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 3m 36s /results-checkstyle-root.txt root: The patch generated 1 new + 34 unchanged - 0 fixed = 35 total (was 34)
+1 💚 mvnsite 8m 9s the patch passed
-1 ❌ javadoc 0m 52s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 21s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 9s the patch passed
+1 💚 shadedclient 20m 1s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 6s hadoop-common in the patch passed.
+1 💚 unit 233m 31s hadoop-yarn in the patch passed.
+1 💚 unit 3m 32s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 56s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
511m 32s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/3/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 796e0f0488c0 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 0bbf65d
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/3/testReport/
Max. process+thread count 2775 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/3/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor Author

slfan1989 commented Dec 21, 2022

@goiri Thank you very much for helping to review the code this year and learned a lot from you! Merry Christmas to you!

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 4s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 14m 59s Maven dependency ordering for branch
+1 💚 mvninstall 28m 23s trunk passed
+1 💚 compile 25m 13s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 21m 43s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 4m 5s trunk passed
+1 💚 mvnsite 7m 53s trunk passed
-1 ❌ javadoc 0m 59s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 13s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 2s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 18s trunk passed
+1 💚 shadedclient 22m 43s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 6m 42s the patch passed
+1 💚 compile 24m 27s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 24m 27s the patch passed
+1 💚 javac 24m 27s the patch passed
+1 💚 compile 21m 35s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 21m 35s the patch passed
+1 💚 javac 21m 35s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 47s the patch passed
+1 💚 mvnsite 7m 52s the patch passed
-1 ❌ javadoc 0m 50s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 15s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 6s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 52s the patch passed
+1 💚 shadedclient 22m 42s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 4s hadoop-common in the patch passed.
+1 💚 unit 239m 29s hadoop-yarn in the patch passed.
+1 💚 unit 3m 27s hadoop-yarn-server-common in the patch passed.
-1 ❌ unit 0m 45s /patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-router.txt hadoop-yarn-server-router in the patch failed.
+1 💚 asflicense 0m 58s The patch does not generate ASF License warnings.
531m 37s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/4/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 31d1dfee4372 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / c276a46
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/4/testReport/
Max. process+thread count 1750 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/4/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 48s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 buf 0m 0s buf was not available.
+0 🆗 buf 0m 0s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 18s Maven dependency ordering for branch
+1 💚 mvninstall 25m 45s trunk passed
+1 💚 compile 23m 11s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 32s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 48s trunk passed
+1 💚 mvnsite 8m 12s trunk passed
-1 ❌ javadoc 1m 1s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 11s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 17s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 31s trunk passed
+1 💚 shadedclient 20m 10s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 30s Maven dependency ordering for patch
+1 💚 mvninstall 6m 38s the patch passed
+1 💚 compile 22m 16s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 16s the patch passed
+1 💚 javac 22m 16s the patch passed
+1 💚 compile 20m 30s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 30s the patch passed
+1 💚 javac 20m 30s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 40s the patch passed
+1 💚 mvnsite 8m 8s the patch passed
-1 ❌ javadoc 0m 53s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 37s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 19m 3s the patch passed
+1 💚 shadedclient 22m 14s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 19m 59s hadoop-common in the patch passed.
+1 💚 unit 235m 37s hadoop-yarn in the patch passed.
+1 💚 unit 3m 31s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 55s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
520m 17s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/5/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux fee403f46c69 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 27162d1
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/5/testReport/
Max. process+thread count 2701 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/5/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 47s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 4s Maven dependency ordering for branch
+1 💚 mvninstall 25m 43s trunk passed
+1 💚 compile 23m 18s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 38s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 46s trunk passed
+1 💚 mvnsite 8m 6s trunk passed
-1 ❌ javadoc 1m 2s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 19s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 24s trunk passed
+1 💚 shadedclient 20m 8s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 6m 34s the patch passed
+1 💚 compile 22m 24s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 24s the patch passed
+1 💚 javac 22m 24s the patch passed
+1 💚 compile 23m 14s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 23m 14s the patch passed
+1 💚 javac 23m 14s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 49s the patch passed
+1 💚 mvnsite 8m 22s the patch passed
-1 ❌ javadoc 0m 54s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 31s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 58s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 21m 32s the patch passed
+1 💚 shadedclient 20m 10s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 8s hadoop-common in the patch passed.
+1 💚 unit 233m 47s hadoop-yarn in the patch passed.
+1 💚 unit 3m 32s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 55s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
520m 43s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/6/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux c38e7adbcab3 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 4dd0abe
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/6/testReport/
Max. process+thread count 3159 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/6/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor Author

slfan1989 commented Dec 30, 2022

I will execute Federation SQL scripts in MySQL and SQLServer databases to ensure the accuracy of the scripts.

MySQL

MySQL 5.7
MySQL 8.0

SQLServer

SQL Server 2008 R2 Enterprise 
SQL Server 2012 Enterprise
SQL Server 2014 Enterprise 
SQL Server 2016 Enterprise 
SQL Server 2017 Enterprise 
SQL Server 2019 Enterprise

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 40s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 buf 0m 0s buf was not available.
+0 🆗 buf 0m 0s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 38s Maven dependency ordering for branch
+1 💚 mvninstall 25m 41s trunk passed
+1 💚 compile 23m 1s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 33s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 44s trunk passed
+1 💚 mvnsite 8m 13s trunk passed
-1 ❌ javadoc 1m 2s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 19s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 29s trunk passed
+1 💚 shadedclient 19m 49s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 6m 37s the patch passed
+1 💚 compile 22m 23s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 23s the patch passed
+1 💚 javac 22m 23s the patch passed
+1 💚 compile 20m 39s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 39s the patch passed
+1 💚 javac 20m 39s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 34s the patch passed
+1 💚 mvnsite 8m 8s the patch passed
-1 ❌ javadoc 0m 53s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 8s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 19s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 15s the patch passed
+1 💚 shadedclient 19m 58s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 4s hadoop-common in the patch passed.
-1 ❌ unit 235m 13s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 3m 31s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 55s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 9s The patch does not generate ASF License warnings.
513m 7s
Reason Tests
Failed junit tests hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/7/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 46508d2879e1 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 045cac8
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/7/testReport/
Max. process+thread count 2774 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/7/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 37s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 12s Maven dependency ordering for branch
+1 💚 mvninstall 25m 45s trunk passed
+1 💚 compile 23m 7s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 32s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 51s trunk passed
+1 💚 mvnsite 8m 5s trunk passed
-1 ❌ javadoc 1m 0s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 8s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 14s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 20s trunk passed
+1 💚 shadedclient 19m 46s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 6m 33s the patch passed
+1 💚 compile 22m 28s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 28s the patch passed
+1 💚 javac 22m 28s the patch passed
+1 💚 compile 20m 30s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 30s the patch passed
+1 💚 javac 20m 30s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 38s the patch passed
+1 💚 mvnsite 8m 4s the patch passed
-1 ❌ javadoc 0m 53s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 20s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 8s the patch passed
+1 💚 shadedclient 20m 18s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 5s hadoop-common in the patch passed.
-1 ❌ unit 233m 53s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 3m 32s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 54s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
511m 25s
Reason Tests
Failed junit tests hadoop.yarn.server.applicationhistoryservice.webapp.TestAHSWebServices
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/8/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux db2da9dee5bb 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 7bb3343
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/8/testReport/
Max. process+thread count 2480 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/8/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 codespell 0m 2s codespell was not available.
+0 🆗 detsecrets 0m 2s detect-secrets was not available.
+0 🆗 buf 0m 2s buf was not available.
+0 🆗 buf 0m 2s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 15s Maven dependency ordering for branch
+1 💚 mvninstall 34m 4s trunk passed
+1 💚 compile 25m 56s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 22m 12s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 4m 4s trunk passed
+1 💚 mvnsite 8m 5s trunk passed
-1 ❌ javadoc 1m 0s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 19s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 10s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 57s trunk passed
+1 💚 shadedclient 27m 39s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 33s Maven dependency ordering for patch
+1 💚 mvninstall 9m 27s the patch passed
+1 💚 compile 28m 0s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 28m 0s the patch passed
+1 💚 javac 28m 0s the patch passed
+1 💚 compile 23m 5s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 23m 5s the patch passed
+1 💚 javac 23m 5s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 4m 0s the patch passed
+1 💚 mvnsite 9m 19s the patch passed
-1 ❌ javadoc 0m 56s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 34s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 50s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 19m 20s the patch passed
+1 💚 shadedclient 27m 43s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 28s hadoop-common in the patch passed.
+1 💚 unit 246m 24s hadoop-yarn in the patch passed.
+1 💚 unit 3m 25s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 43s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 1s The patch does not generate ASF License warnings.
570m 24s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/9/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 1f3fbe095041 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 21b917f
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/9/testReport/
Max. process+thread count 1751 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/9/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 0s codespell was not available.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+0 🆗 buf 0m 0s buf was not available.
+0 🆗 buf 0m 0s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 58s Maven dependency ordering for branch
+1 💚 mvninstall 30m 47s trunk passed
+1 💚 compile 23m 1s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 26s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 47s trunk passed
+1 💚 mvnsite 8m 55s trunk passed
-1 ❌ javadoc 1m 6s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 30s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 26s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 20s trunk passed
+1 💚 shadedclient 22m 55s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 28s Maven dependency ordering for patch
+1 💚 mvninstall 8m 30s the patch passed
+1 💚 compile 22m 16s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 16s the patch passed
+1 💚 javac 22m 16s the patch passed
+1 💚 compile 20m 28s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 28s the patch passed
+1 💚 javac 20m 28s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 40s the patch passed
+1 💚 mvnsite 8m 6s the patch passed
-1 ❌ javadoc 0m 53s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 11s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 17s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 8s the patch passed
+1 💚 shadedclient 23m 33s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 28s hadoop-common in the patch passed.
+1 💚 unit 236m 36s hadoop-yarn in the patch passed.
+1 💚 unit 3m 38s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 48s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 7s The patch does not generate ASF License warnings.
530m 48s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/10/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 38f9fd62cd20 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 960d3ba
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/10/testReport/
Max. process+thread count 2776 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/10/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 38s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 14s Maven dependency ordering for branch
+1 💚 mvninstall 31m 4s trunk passed
+1 💚 compile 23m 3s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 34s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 4m 13s trunk passed
+1 💚 mvnsite 8m 14s trunk passed
-1 ❌ javadoc 1m 1s /branch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 10s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 22s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 27s trunk passed
+1 💚 shadedclient 23m 6s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for patch
+1 💚 mvninstall 8m 37s the patch passed
+1 💚 compile 22m 24s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 24s the patch passed
+1 💚 javac 22m 24s the patch passed
+1 💚 compile 20m 25s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 25s the patch passed
+1 💚 javac 20m 25s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 37s the patch passed
+1 💚 mvnsite 8m 5s the patch passed
-1 ❌ javadoc 0m 53s /patch-javadoc-hadoop-common-project_hadoop-common-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-common in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
-1 ❌ javadoc 2m 9s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 22s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 11s the patch passed
+1 💚 shadedclient 23m 3s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 1s hadoop-common in the patch passed.
-1 ❌ unit 233m 52s /patch-unit-hadoop-yarn-project_hadoop-yarn.txt hadoop-yarn in the patch passed.
+1 💚 unit 3m 32s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 55s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 10s The patch does not generate ASF License warnings.
525m 45s
Reason Tests
Failed junit tests hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2
Subsystem Report/Notes
Docker ClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/11/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux 394497fc328d 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8ebf049
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/11/testReport/
Max. process+thread count 2554 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/11/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor Author

SQL Server 2008 R2 Enterprise

select @@Version

Microsoft SQL Server 2008 R2 (SP3) - 10.50.6000.34 (X64) 
	Aug 19 2014 12:21:34 
	Copyright (c) Microsoft Corporation
	Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: )

FederationStateStoreDatabase.sql

master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-01-25 17:22:05] completed in 41 ms
master> CREATE database FederationStateStore
[2023-01-25 17:22:05] completed in 106 ms

FederationStateStoreUser.sql

master> USE [FederationStateStore]
[2023-01-25 17:23:20] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-01-25 17:23:20] completed in 41 ms
master> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-01-25 17:23:21] completed in 51 ms
master> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-01-25 17:23:21] completed in 41 ms
master> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-01-25 17:23:21] completed in 41 ms

FederationStateStoreTables.sql

....
Table delegationTokens exists, no operation required...
[2023-01-25 17:24:34] completed in 44 ms
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.
USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

[2023-01-25 17:53:48] completed in 39 ms
FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-01-25 17:53:48] completed in 44 ms
USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='P' ORDER BY Name

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

...
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-01-25 18:05:27] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];
[2023-01-25 18:05:27] completed in 40 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-01-25 18:06:12] 0 rows retrieved in 53 ms (execution: 41 ms, fetching: 12 ms)

dropTables.sql

.....
[2023-01-25 18:08:47] completed in 43 ms
FederationStateStore> IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
                        DROP TABLE [masterKeys];
[2023-01-25 18:08:47] completed in 41 ms
FederationStateStore> IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
                        DROP TABLE [delegationTokens];
[2023-01-25 18:08:47] completed in 136 ms
FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];
[2023-01-25 18:08:47] completed in 41 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-01-25 18:10:04] 0 rows retrieved in 52 ms (execution: 42 ms, fetching: 10 ms)

dropDatabase.sql

FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-01-25 18:14:06] completed in 39 ms

dropUser.sql

FederationStateStore> DROP USER FederationUser
[2023-01-25 18:15:21] completed in 40 ms
FederationStateStore> DROP LOGIN FederationUser
[2023-01-25 18:15:21] completed in 65 ms

SQL Server 2012 Enterprise

select @@Version

Microsoft SQL Server 2012 (SP4) (KB4018073) - 11.0.7001.0 (X64) 
	Aug 15 2017 10:23:29 
	Copyright (c) Microsoft Corporation
	Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

FederationStateStoreDatabase.sql

master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-02-12 22:50:39] completed in 47 ms
master> CREATE database FederationStateStore
[2023-02-12 22:50:40] completed in 262 ms

FederationStateStoreUser.sql

master> USE [FederationStateStore]
[2023-02-12 22:51:21] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-12 22:51:21] completed in 56 ms
master> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-02-12 22:51:21] completed in 49 ms
master> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-02-12 22:51:22] completed in 49 ms
master> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-02-12 22:51:22] completed in 48 ms

FederationStateStoreTables.sql

.....
[2023-02-12 22:52:21] completed in 56 ms
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-12 22:53:09] 7 rows retrieved starting from 1 in 72 ms (execution: 54 ms, fetching: 18 ms)

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-02-12 22:54:12] completed in 48 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='P' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-12 22:54:56] 25 rows retrieved starting from 1 in 70 ms (execution: 52 ms, fetching: 18 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

[2023-02-12 22:56:27] completed in 48 ms
FederationStateStore> IF OBJECT_ID ('[sp_getDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_getDelegationToken];
[2023-02-12 22:56:28] completed in 48 ms
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-02-12 22:56:28] completed in 47 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];
[2023-02-12 22:56:28] completed in 48 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-12 22:57:02] 0 rows retrieved in 63 ms (execution: 51 ms, fetching: 12 ms)

dropTables.sql

[2023-02-12 22:57:34] completed in 56 ms
FederationStateStore> IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
                        DROP TABLE [masterKeys];
[2023-02-12 22:57:35] completed in 48 ms
FederationStateStore> IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
                        DROP TABLE [delegationTokens];
[2023-02-12 22:57:35] completed in 49 ms
FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];
[2023-02-12 22:57:35] completed in 47 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-12 22:58:04] 0 rows retrieved in 147 ms (execution: 80 ms, fetching: 67 ms)

dropDatabase.sql

FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-02-12 22:58:47] completed in 47 ms

dropUser.sql

FederationStateStore> USE [FederationStateStore]
[2023-02-12 22:59:04] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-12 22:59:04] completed in 52 ms
FederationStateStore> DROP USER FederationUser
[2023-02-12 22:59:08] completed in 50 ms
FederationStateStore> DROP LOGIN FederationUser
[2023-02-12 22:59:09] completed in 57 ms

SQL Server 2014 Enterprise

select @@Version

Microsoft SQL Server 2014 (SP2) (KB3171021) - 12.0.5000.0 (X64) 
	Jun 17 2016 19:14:09 
	Copyright (c) Microsoft Corporation
	Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)

FederationStateStoreDatabase.sql

master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-02-12 23:20:36] completed in 45 ms
master> CREATE database FederationStateStore
[2023-02-12 23:20:40] completed in 292 ms

FederationStateStoreUser.sql

FederationStateStore> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-02-12 23:21:12] completed in 46 ms
FederationStateStore> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-02-12 23:21:13] completed in 45 ms
FederationStateStore> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-02-12 23:21:13] completed in 48 ms

FederationStateStoreTables.sql

[2023-02-12 23:21:50] completed in 49 ms
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.
[2023-02-12 23:21:50] completed in 52 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-12 23:22:27] 7 rows retrieved starting from 1 in 77 ms (execution: 57 ms, fetching: 20 ms)

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

[2023-02-12 23:24:03] completed in 44 ms
FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-02-12 23:24:03] completed in 46 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='P' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-12 23:24:53] 25 rows retrieved starting from 1 in 90 ms (execution: 49 ms, fetching: 41 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

[2023-02-12 23:25:55] completed in 44 ms
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-02-12 23:25:55] completed in 45 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-12 23:26:53] 0 rows retrieved in 59 ms (execution: 47 ms, fetching: 12 ms)

dropTables.sql

FederationStateStore> USE [FederationStateStore]
[2023-02-12 23:27:20] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-12 23:27:20] completed in 44 ms
FederationStateStore> IF OBJECT_ID ( '[sp_deregisterSubCluster]', 'U' ) IS NOT NULL
                        DROP TABLE [sp_deregisterSubCluster];
[2023-02-12 23:27:25] completed in 44 ms
FederationStateStore> IF OBJECT_ID ( '[membership]', 'U' ) IS NOT NULL
                        DROP TABLE [membership];
[2023-02-12 23:27:25] completed in 46 ms
FederationStateStore> IF OBJECT_ID ( '[policies]', 'U' ) IS NOT NULL
                        DROP TABLE [policies];
[2023-02-12 23:27:25] completed in 46 ms
FederationStateStore> IF OBJECT_ID ( '[applicationsHomeSubCluster]', 'U' ) IS NOT NULL
                        DROP TABLE [applicationsHomeSubCluster];
[2023-02-12 23:27:25] completed in 45 ms
FederationStateStore> IF OBJECT_ID ( '[reservationsHomeSubCluster]', 'U' ) IS NOT NULL
                        DROP TABLE [reservationsHomeSubCluster];
[2023-02-12 23:27:25] completed in 56 ms
FederationStateStore> IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
                        DROP TABLE [masterKeys];
[2023-02-12 23:27:26] completed in 52 ms
FederationStateStore> IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
                        DROP TABLE [delegationTokens];
[2023-02-12 23:27:26] completed in 46 ms
FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];
[2023-02-12 23:27:26] completed in 46 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-12 23:28:12] 0 rows retrieved in 90 ms (execution: 63 ms, fetching: 27 ms)

dropDatabase.sql

FederationStateStore> use FederationStateStore
[2023-02-12 23:28:44] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-12 23:28:44] completed in 48 ms
FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-02-12 23:28:44] completed in 42 ms

dropUser.sql

FederationStateStore> USE [FederationStateStore]
[2023-02-12 23:29:10] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-12 23:29:10] completed in 43 ms
FederationStateStore> DROP USER FederationUser
[2023-02-12 23:29:14] completed in 46 ms
FederationStateStore> DROP LOGIN FederationUser
[2023-02-12 23:29:14] completed in 55 ms

SQL Server 2016 Enterprise

select @@Version

Microsoft SQL Server 2016 (SP2) (KB4052908) - 13.0.5026.0 (X64) 
	Mar 18 2018 09:11:49 
	Copyright (c) Microsoft Corporation
	Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor)

FederationStateStoreDatabase.sql

[2023-02-12 23:55:21] completed in 55 ms
master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-02-12 23:55:21] completed in 43 ms
master> CREATE database FederationStateStore
[2023-02-12 23:55:22] completed in 474 ms

FederationStateStoreUser.sql

FederationStateStore> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-02-12 23:55:52] completed in 48 ms
FederationStateStore> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-02-12 23:55:52] completed in 47 ms
FederationStateStore> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-02-12 23:55:53] completed in 47 ms

FederationStateStoreTables.sql

.....
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'delegationTokens'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table delegationTokens does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[delegationTokens](
                                  sequenceNum BIGINT NOT NULL,
                                  tokenIdent VARCHAR(1024) NOT NULL,
                                  token VARCHAR(1024) NOT NULL,
                                  renewDate BIGINT NOT NULL,
                                  CONSTRAINT [pk_sequenceNum] PRIMARY KEY
                                  (
                                      [sequenceNum]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table delegationTokens created.'
                          END
                      ELSE
                          PRINT 'Table delegationTokens exists, no operation required...'
Table delegationTokens exists, no operation required...
[2023-02-12 23:56:27] completed in 56 ms
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.
[2023-02-12 23:56:28] completed in 60 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-12 23:57:23] 7 rows retrieved starting from 1 in 75 ms (execution: 61 ms, fetching: 14 ms)

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

.....
[2023-02-12 23:58:20] completed in 43 ms
FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-02-12 23:58:20] completed in 44 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='P' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-12 23:59:19] 25 rows retrieved starting from 1 in 70 ms (execution: 51 ms, fetching: 19 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

.....
[2023-02-13 00:00:02] completed in 44 ms
FederationStateStore> IF OBJECT_ID ('[sp_getDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_getDelegationToken];
[2023-02-13 00:00:03] completed in 45 ms
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-02-13 00:00:03] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];
[2023-02-13 00:00:03] completed in 52 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-13 00:00:55] 0 rows retrieved in 58 ms (execution: 47 ms, fetching: 11 ms)

dropTables.sql

...
[2023-02-13 00:01:46] completed in 45 ms
FederationStateStore> IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
                        DROP TABLE [masterKeys];
[2023-02-13 00:01:47] completed in 46 ms
FederationStateStore> IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
                        DROP TABLE [delegationTokens];
[2023-02-13 00:01:47] completed in 45 ms
FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];
[2023-02-13 00:01:47] completed in 45 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-13 00:02:16] 0 rows retrieved in 60 ms (execution: 49 ms, fetching: 11 ms)

dropDatabase.sql

FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-02-13 00:02:58] completed in 43 ms

dropUser.sql

FederationStateStore> DROP USER FederationUser
[2023-02-13 00:03:17] completed in 44 ms
FederationStateStore> DROP LOGIN FederationUser
[2023-02-13 00:03:18] completed in 57 ms

SQL Server 2017 Enterprise

select @@Version

Microsoft SQL Server 2017 (RTM-CU14) (KB4484710) - 14.0.3076.1 (X64) 
	Mar 12 2019 19:29:19 
	Copyright (C) 2017 Microsoft Corporation
	Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor)

FederationStateStoreDatabase.sql

[2023-02-13 00:17:31] completed in 59 ms
master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-02-13 00:17:31] completed in 45 ms
master> CREATE database FederationStateStore
[2023-02-13 00:17:33] completed in 1 s 905 ms

FederationStateStoreUser.sql

FederationStateStore> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-02-13 00:18:12] completed in 46 ms
FederationStateStore> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-02-13 00:18:12] completed in 46 ms
FederationStateStore> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-02-13 00:18:12] completed in 48 ms

FederationStateStoreTables.sql

FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.
[2023-02-13 00:18:46] completed in 56 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-13 00:19:34] 7 rows retrieved starting from 1 in 80 ms (execution: 56 ms, fetching: 24 ms)

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

[2023-02-13 00:20:33] completed in 46 ms
FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-02-13 00:20:34] completed in 47 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-13 00:21:30] 25 rows retrieved starting from 1 in 124 ms (execution: 66 ms, fetching: 58 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

FederationStateStore> IF OBJECT_ID ('[sp_getDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_getDelegationToken];
[2023-02-13 00:22:24] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-02-13 00:22:24] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];
[2023-02-13 00:22:24] completed in 46 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-13 00:23:03] 0 rows retrieved in 58 ms (execution: 47 ms, fetching: 11 ms)

dropTables.sql

FederationStateStore> USE [FederationStateStore]
[2023-02-13 00:23:38] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-13 00:23:38] completed in 46 ms

FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];
[2023-02-13 00:23:57] completed in 48 ms

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-13 00:24:35] 0 rows retrieved in 58 ms (execution: 47 ms, fetching: 11 ms)

dropDatabase.sql

FederationStateStore> use FederationStateStore
[2023-02-13 00:25:02] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-13 00:25:02] completed in 48 ms
FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-02-13 00:25:03] completed in 45 ms

dropUser.sql

FederationStateStore> USE [FederationStateStore]
[2023-02-13 00:25:28] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-13 00:25:28] completed in 46 ms
FederationStateStore> DROP USER FederationUser
[2023-02-13 00:25:31] completed in 49 ms
FederationStateStore> DROP LOGIN FederationUser
[2023-02-13 00:25:31] completed in 60 ms

SQL Server 2019 Enterprise

select @@Version

Microsoft SQL Server 2019 (RTM-CU10) (KB5001090) - 15.0.4123.1 (X64) 
	Mar 22 2021 18:10:24 
	Copyright (C) 2019 Microsoft Corporation
	Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Datacenter 10.0 <X64> (Build 14393: ) (Hypervisor)

FederationStateStoreDatabase.sql

[2023-02-13 09:32:28] completed in 57 ms
master> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
          DROP DATABASE [FederationStateStore]
[2023-02-13 09:32:28] completed in 45 ms
master> CREATE database FederationStateStore
[2023-02-13 09:32:28] completed in 369 ms

FederationStateStoreUser.sql

master> CREATE LOGIN FederationUser with password = 'Federation@Password', default_database=[FederationStateStore]
[2023-02-13 09:33:19] completed in 49 ms
master> CREATE USER FederationUser FOR LOGIN FederationUser WITH default_schema=dbo
[2023-02-13 09:33:20] completed in 46 ms
master> EXEC sp_addrolemember 'db_owner', 'FederationUser'
[2023-02-13 09:33:20] completed in 47 ms

FederationStateStoreTables.sql

[2023-02-13 09:35:12] completed in 55 ms
FederationStateStore> IF NOT EXISTS ( SELECT * FROM [FederationStateStore].sys.tables
                          WHERE name = 'sequenceTable'
                          AND schema_id = SCHEMA_ID('dbo'))
                          BEGIN
                              PRINT 'Table sequenceTable does not exist, create it...'
                      
                              SET ANSI_NULLS ON
                      
                              SET QUOTED_IDENTIFIER ON
                      
                              SET ANSI_PADDING ON
                      
                              CREATE TABLE [dbo].[sequenceTable](
                                  sequenceName VARCHAR(255) NOT NULL,
                                  nextVal bigint NOT NULL
                                  CONSTRAINT [pk_sequenceName] PRIMARY KEY
                                  (
                                      [sequenceName]
                                  )
                              )
                      
                              SET ANSI_PADDING OFF
                      
                              PRINT 'Table sequenceTable created.'
                          END
                      ELSE
                          PRINT 'Table sequenceTable exists, no operation required...'
Table sequenceTable does not exist, create it...
Table sequenceTable created.
[2023-02-13 09:35:12] completed in 58 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='U' ORDER BY Name

master> USE [FederationStateStore]
[2023-02-13 09:36:36] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-13 09:36:36] completed in 45 ms
FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-13 09:36:37] 7 rows retrieved starting from 1 in 73 ms (execution: 60 ms, fetching: 13 ms)

applicationsHomeSubCluster
delegationTokens
masterKeys
membership
policies
reservationsHomeSubCluster
sequenceTable

FederationStateStoreStoredProcs.sql

[2023-02-13 09:38:05] completed in 44 ms
FederationStateStore> CREATE PROCEDURE [dbo].[sp_deleteDelegationToken]
                          @sequenceNum_IN bigint,
                          @rowCount_OUT int OUTPUT
                      AS BEGIN
                          DECLARE @errorMessage nvarchar(4000)
                      
                          BEGIN TRY
                              BEGIN TRAN
                      
                                  DELETE FROM [dbo].[delegationTokens]
                                  WHERE [sequenceNum] = @sequenceNum_IN;
                                  SELECT @rowCount_OUT = @@ROWCOUNT;
                      
                              COMMIT TRAN
                          END TRY
                      
                          BEGIN CATCH
                              ROLLBACK TRAN
                      
                              SET @errorMessage = dbo.func_FormatErrorMessage(ERROR_MESSAGE(), ERROR_LINE())
                      
                              /*  raise error and terminate the execution */
                              RAISERROR(@errorMessage, --- Error Message
                                  1, -- Severity
                                  -1 -- State
                              ) WITH log
                          END CATCH
                      END;
[2023-02-13 09:38:05] completed in 48 ms

USE [FederationStateStore]
GO
SELECT Name FROM SysObjects Where XType='P' ORDER BY Name

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-13 09:48:07] 25 rows retrieved starting from 1 in 105 ms (execution: 51 ms, fetching: 54 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

[2023-02-13 09:53:06] completed in 49 ms
FederationStateStore> IF OBJECT_ID ('[sp_getDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_getDelegationToken];
[2023-02-13 09:53:06] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_updateDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_updateDelegationToken];
[2023-02-13 09:53:07] completed in 46 ms
FederationStateStore> IF OBJECT_ID ('[sp_deleteDelegationToken]', 'P') IS NOT NULL
                        DROP PROCEDURE [sp_deleteDelegationToken];

FederationStateStore> SELECT Name FROM SysObjects Where XType='P' ORDER BY Name
[2023-02-13 09:53:25] 0 rows retrieved in 60 ms (execution: 49 ms, fetching: 11 ms)    

dropTables.sql

...
[2023-02-13 09:54:17] completed in 47 ms
FederationStateStore> IF OBJECT_ID ( '[masterKeys]', 'U' ) IS NOT NULL
                        DROP TABLE [masterKeys];
[2023-02-13 09:54:17] completed in 46 ms
FederationStateStore> IF OBJECT_ID ( '[delegationTokens]', 'U' ) IS NOT NULL
                        DROP TABLE [delegationTokens];
[2023-02-13 09:54:18] completed in 47 ms
FederationStateStore> IF OBJECT_ID ( '[sequenceTable]', 'U' ) IS NOT NULL
                        DROP TABLE [sequenceTable];

FederationStateStore> SELECT Name FROM SysObjects Where XType='U' ORDER BY Name
[2023-02-13 09:54:41] 0 rows retrieved in 60 ms (execution: 48 ms, fetching: 12 ms)    

dropDatabase.sql

FederationStateStore> use FederationStateStore
[2023-02-13 09:55:41] [S0001][5701] Changed database context to 'FederationStateStore'.
[2023-02-13 09:55:41] completed in 49 ms
FederationStateStore> IF DB_ID ( '[FederationStateStore]') IS NOT NULL
                        DROP DATABASE [FederationStateStore]
[2023-02-13 09:55:41] completed in 44 ms

dropUser.sql

FederationStateStore> DROP LOGIN FederationUser
[2023-02-13 09:59:06] completed in 61 ms

@goiri
Copy link
Member

goiri commented Feb 13, 2023

The failures are unrelated.
Do you want to go ahead and merge?

@slfan1989
Copy link
Contributor Author

The failures are unrelated.
Do you want to go ahead and merge?

Thank you very much for your help in reviewing the code! I will rebase this pr again, and then we can merge this pr to the trunk branch.

@slfan1989
Copy link
Contributor Author

slfan1989 commented Feb 14, 2023

Mysql5.7

select version();

information_schema> select version()
[2023-02-14 13:30:38] 1 row retrieved starting from 1 in 236 ms (execution: 172 ms, fetching: 64 ms)
5.7.18-txsql-log

FederationStateStoreDatabase.sql

> CREATE database FederationStateStore
[2023-02-14 13:27:09] 1 row affected in 170 ms

FederationStateStoreUser.sql

[2023-02-13 11:22:20] completed in 166 ms
> CREATE USER 'FederationUser'@'%' IDENTIFIED BY 'FederationPassword'
[2023-02-14 13:30:57] completed in 168 ms
> GRANT ALL PRIVILEGES ON FederationStateStore.* TO 'FederationUser'@'%'
[2023-02-14 13:30:58] completed in 173 ms
> FLUSH PRIVILEGES

FederationStateStoreTables.sql

.....
federationstatestore> CREATE TABLE delegationTokens
                      (
                         sequenceNum bigint NOT NULL,
                         tokenIdent varchar(1024) NOT NULL,
                         token varchar(1024) NOT NULL,
                         renewDate bigint NOT NULL,
                         CONSTRAINT pk_sequenceNum PRIMARY KEY (sequenceNum)
                      )
[2023-02-14 13:31:30] completed in 174 ms
federationstatestore> CREATE TABLE sequenceTable (
                         sequenceName varchar(255) NOT NULL,
                         nextVal bigint(20) NOT NULL,
                         CONSTRAINT pk_sequenceName PRIMARY KEY (sequenceName)
                      )
[2023-02-14 13:31:31] completed in 171 ms

use federationstatestore;
show tables;

applicationshomesubcluster
delegationtokens
masterkeys
membership
policies
reservationshomesubcluster
sequencetable

FederationStateStoreStoredProcs.sql

[2023-02-14 13:35:02] completed in 180 ms
federationstatestore> CREATE PROCEDURE sp_deleteDelegationToken(
                         IN sequenceNum_IN bigint, OUT rowCount_OUT int)
                      BEGIN
                         DELETE FROM delegationTokens
                         WHERE sequenceNum = sequenceNum_IN;
                         SELECT ROW_COUNT() INTO rowCount_OUT;
                      END
[2023-02-14 13:35:08] completed in 169 ms
federationstatestore> CREATE PROCEDURE sp_getDelegationToken(
                         IN sequenceNum_IN bigint, OUT tokenIdent_OUT varchar(1024),
                         OUT token_OUT varchar(1024), OUT renewDate_OUT bigint)
                      BEGIN
                         SELECT tokenIdent, token,  renewDate INTO tokenIdent_OUT, token_OUT, renewDate_OUT
                           FROM delegationTokens
                          WHERE sequenceNum = sequenceNum_IN;
                      END
[2023-02-14 13:35:53] completed in 171 ms

SELECT * FROM information_schema.Routines where ROUTINE_SCHEMA = 'federationstatestore'
[2023-02-14 13:38:33] 25 rows retrieved starting from 1 in 279 ms (execution: 173 ms, fetching: 106 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

federationstatestore> DROP PROCEDURE sp_getMasterKey
[2023-02-14 15:12:18] completed in 180 ms
federationstatestore> DROP PROCEDURE sp_deleteMasterKey
[2023-02-14 15:12:21] completed in 173 ms
federationstatestore> DROP PROCEDURE sp_addDelegationToken
[2023-02-14 15:12:23] completed in 183 ms
federationstatestore> DROP PROCEDURE sp_getDelegationToken
[2023-02-14 15:12:27] completed in 183 ms
federationstatestore> DROP PROCEDURE sp_updateDelegationToken
[2023-02-14 15:12:29] completed in 181 ms
federationstatestore> DROP PROCEDURE sp_deleteDelegationToken
[2023-02-14 15:12:32] completed in 248 ms

federationstatestore> SELECT * FROM information_schema.Routines where ROUTINE_SCHEMA = 'federationstatestore'
[2023-02-14 15:13:10] 0 rows retrieved in 200 ms (execution: 177 ms, fetching: 23 ms)

dropTables.sql

federationstatestore> DROP TABLE policies
[2023-02-14 15:13:38] completed in 174 ms
federationstatestore> DROP TABLE reservationsHomeSubCluster
[2023-02-14 15:13:40] completed in 170 ms
federationstatestore> DROP TABLE masterKeys
[2023-02-14 15:13:43] completed in 180 ms
federationstatestore> DROP TABLE delegationTokens
[2023-02-14 15:13:46] completed in 173 ms
federationstatestore> DROP TABLE sequenceTable
[2023-02-14 15:13:48] completed in 174 ms

federationstatestore> use federationstatestore
[2023-02-14 15:14:12] completed in 218 ms
federationstatestore> show tables
[2023-02-14 15:14:12] 0 rows retrieved in 140 ms (execution: 130 ms, fetching: 10 ms)

dropDatabase.sql

federationstatestore> DROP DATABASE FederationStateStore
[2023-02-14 15:14:34] completed in 182 ms

dropUser.sql

> DROP USER 'FederationUser'@'%'
[2023-02-14 15:14:43] completed in 169 ms

Mysql8.0

select version();

> select version()
[2023-02-14 17:51:36] 1 row retrieved starting from 1 in 211 ms (execution: 191 ms, fetching: 20 ms)
8.0.22-txsql

FederationStateStoreDatabase.sql

> CREATE database FederationStateStore
[2023-02-14 17:52:11] 1 row affected in 201 ms

FederationStateStoreUser.sql

> CREATE USER 'FederationUser'@'%' IDENTIFIED BY 'FederationPassword'
[2023-02-14 17:52:32] completed in 202 ms
> GRANT ALL PRIVILEGES ON FederationStateStore.* TO 'FederationUser'@'%'
[2023-02-14 17:52:32] completed in 193 ms
> FLUSH PRIVILEGES
[2023-02-14 17:52:33] completed in 193 ms

FederationStateStoreTables.sql

.....
federationstatestore> CREATE TABLE delegationTokens
                      (
                         sequenceNum bigint NOT NULL,
                         tokenIdent varchar(1024) NOT NULL,
                         token varchar(1024) NOT NULL,
                         renewDate bigint NOT NULL,
                         CONSTRAINT pk_sequenceNum PRIMARY KEY (sequenceNum)
                      )
[2023-02-14 17:53:11] completed in 211 ms
federationstatestore> CREATE TABLE sequenceTable (
                         sequenceName varchar(255) NOT NULL,
                         nextVal bigint(20) NOT NULL,
                         CONSTRAINT pk_sequenceName PRIMARY KEY (sequenceName)
                      )
[2023-02-14 17:53:12] [HY000][1681] Integer display width is deprecated and will be removed in a future release.
[2023-02-14 17:53:12] completed in 226 ms


__cdb_recycle_bin__> use federationstatestore
[2023-02-14 17:54:12] completed in 182 ms
__cdb_recycle_bin__> show tables
[2023-02-14 17:54:13] 7 rows retrieved starting from 1 in 174 ms (execution: 138 ms, fetching: 36 ms)

applicationshomesubcluster
delegationtokens
masterkeys
membership
policies
reservationshomesubcluster
sequencetable

FederationStateStoreStoredProcs.sql

[2023-02-14 20:10:28] completed in 182 ms
federationstatestore> CREATE PROCEDURE sp_updateDelegationToken(
                         IN sequenceNum_IN bigint, IN tokenIdent_IN varchar(1024),
                         IN token_IN varchar(1024), IN renewDate_IN bigint, OUT rowCount_OUT int)
                      BEGIN
                         UPDATE delegationTokens
                            SET tokenIdent = tokenIdent_IN,
                                token = token_IN,
                                renewDate = renewDate_IN
                          WHERE sequenceNum = sequenceNum_IN;
                          SELECT ROW_COUNT() INTO rowCount_OUT;
                      END
[2023-02-14 20:10:32] completed in 184 ms
federationstatestore> CREATE PROCEDURE sp_deleteDelegationToken(
                         IN sequenceNum_IN bigint, OUT rowCount_OUT int)
                      BEGIN
                         DELETE FROM delegationTokens
                         WHERE sequenceNum = sequenceNum_IN;
                         SELECT ROW_COUNT() INTO rowCount_OUT;
                      END
[2023-02-14 20:10:36] completed in 176 ms

[2023-02-14 20:11:10] completed in 128 ms
__cdb_recycle_bin__> SELECT * FROM information_schema.Routines where ROUTINE_SCHEMA = 'federationstatestore'
[2023-02-14 20:11:11] 25 rows retrieved starting from 1 in 339 ms (execution: 219 ms, fetching: 120 ms)

sp_addApplicationHomeSubCluster
sp_addDelegationToken
sp_addMasterKey
sp_addReservationHomeSubCluster
sp_deleteApplicationHomeSubCluster
sp_deleteDelegationToken
sp_deleteMasterKey
sp_deleteReservationHomeSubCluster
sp_deregisterSubCluster
sp_getApplicationHomeSubCluster
sp_getApplicationsHomeSubCluster
sp_getDelegationToken
sp_getMasterKey
sp_getPoliciesConfigurations
sp_getPolicyConfiguration
sp_getReservationHomeSubCluster
sp_getReservationsHomeSubCluster
sp_getSubCluster
sp_getSubClusters
sp_registerSubCluster
sp_setPolicyConfiguration
sp_subClusterHeartbeat
sp_updateApplicationHomeSubCluster
sp_updateDelegationToken
sp_updateReservationHomeSubCluster

dropStoreProcedures.sql

federationstatestore> DROP PROCEDURE sp_updateReservationHomeSubCluster
[2023-02-14 20:12:24] completed in 185 ms
federationstatestore> DROP PROCEDURE sp_addMasterKey
[2023-02-14 20:12:24] completed in 183 ms
federationstatestore> DROP PROCEDURE sp_getMasterKey
[2023-02-14 20:12:25] completed in 179 ms
federationstatestore> DROP PROCEDURE sp_deleteMasterKey
[2023-02-14 20:12:26] completed in 183 ms
federationstatestore> DROP PROCEDURE sp_addDelegationToken
[2023-02-14 20:12:26] completed in 236 ms
federationstatestore> DROP PROCEDURE sp_getDelegationToken
[2023-02-14 20:12:27] completed in 179 ms
federationstatestore> DROP PROCEDURE sp_updateDelegationToken
[2023-02-14 20:12:27] completed in 187 ms
federationstatestore> DROP PROCEDURE sp_deleteDelegationToken
[2023-02-14 20:12:28] completed in 186 ms

__cdb_recycle_bin__> SELECT * FROM information_schema.Routines where ROUTINE_SCHEMA = 'federationstatestore'
[2023-02-14 20:14:18] 0 rows retrieved in 210 ms (execution: 171 ms, fetching: 39 ms)

dropTables.sql

federationstatestore> USE FederationStateStore
[2023-02-14 20:14:41] completed in 175 ms
federationstatestore> DROP TABLE applicationsHomeSubCluster
[2023-02-14 20:14:44] completed in 201 ms
federationstatestore> DROP TABLE membership
[2023-02-14 20:14:44] completed in 192 ms
federationstatestore> DROP TABLE policies
[2023-02-14 20:14:45] completed in 187 ms
federationstatestore> DROP TABLE reservationsHomeSubCluster
[2023-02-14 20:14:45] completed in 191 ms
federationstatestore> DROP TABLE masterKeys
[2023-02-14 20:14:46] completed in 185 ms
federationstatestore> DROP TABLE delegationTokens
[2023-02-14 20:14:47] completed in 182 ms
federationstatestore> DROP TABLE sequenceTable
[2023-02-14 20:14:47] completed in 183 ms

federationstatestore> use federationstatestore
[2023-02-14 20:15:38] completed in 168 ms
federationstatestore> show tables
[2023-02-14 20:15:39] 0 rows retrieved in 151 ms (execution: 133 ms, fetching: 18 ms)

dropDatabase.sql

federationstatestore> DROP DATABASE FederationStateStore
[2023-02-14 20:16:01] completed in 194 ms

dropUser.sql

> DROP USER 'FederationUser'@'%'
[2023-02-14 20:16:16] completed in 183 ms

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 44s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+0 🆗 codespell 0m 1s codespell was not available.
+0 🆗 detsecrets 0m 1s detect-secrets was not available.
+0 🆗 buf 0m 1s buf was not available.
+0 🆗 buf 0m 1s buf was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 15m 31s Maven dependency ordering for branch
+1 💚 mvninstall 31m 1s trunk passed
+1 💚 compile 23m 6s trunk passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 compile 20m 22s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 checkstyle 3m 48s trunk passed
+1 💚 mvnsite 8m 15s trunk passed
-1 ❌ javadoc 2m 11s /branch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in trunk failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 26s trunk passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 16m 37s trunk passed
+1 💚 shadedclient 23m 12s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 29s Maven dependency ordering for patch
+1 💚 mvninstall 8m 38s the patch passed
+1 💚 compile 22m 30s the patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04
+1 💚 cc 22m 30s the patch passed
+1 💚 javac 22m 30s the patch passed
+1 💚 compile 20m 33s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 cc 20m 33s the patch passed
+1 💚 javac 20m 33s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
+1 💚 checkstyle 3m 37s the patch passed
+1 💚 mvnsite 8m 14s the patch passed
-1 ❌ javadoc 2m 12s /patch-javadoc-hadoop-yarn-project_hadoop-yarn-jdkUbuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.txt hadoop-yarn in the patch failed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04.
+1 💚 javadoc 4m 26s the patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~20.04-b08
+1 💚 spotbugs 17m 7s the patch passed
+1 💚 shadedclient 23m 21s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 unit 18m 2s hadoop-common in the patch passed.
+1 💚 unit 232m 17s hadoop-yarn in the patch passed.
+1 💚 unit 3m 30s hadoop-yarn-server-common in the patch passed.
+1 💚 unit 0m 54s hadoop-yarn-server-router in the patch passed.
+1 💚 asflicense 1m 11s The patch does not generate ASF License warnings.
525m 2s
Subsystem Report/Notes
Docker ClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/12/artifact/out/Dockerfile
GITHUB PR #5244
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets cc buflint bufcompat
uname Linux ef864c6cd065 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / b7f9887
Default Java Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu220.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~20.04-b08
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/12/testReport/
Max. process+thread count 2627 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-yarn-project/hadoop-yarn hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5244/12/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor Author

@goiri Can you help to merge this pr into the trunk branch? Thank you very much!

The SQL scripts involved in this pr have been verified in the environment of Mysql and SqlServer.

MySQL

MySQL 5.7
MySQL 8.0

SQLServer

SQL Server 2008 R2 Enterprise 
SQL Server 2012 Enterprise
SQL Server 2014 Enterprise 
SQL Server 2016 Enterprise 
SQL Server 2017 Enterprise 
SQL Server 2019 Enterprise

@goiri goiri merged commit c370659 into apache:trunk Feb 15, 2023
@slfan1989
Copy link
Contributor Author

@goiri Thank you very much for your help in reviewing the code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants