Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Don't fail proxies creation if any of permissions is missing in CreateProxiesMessageTask [HZ-3464] [5.3.3] #25711

Conversation

kwart
Copy link
Member

@kwart kwart commented Oct 13, 2023

Backport of #25703

Fixes https://hazelcast.atlassian.net/browse/HZ-3464

Follow-up to #25509

This PR aligns check permission behavior in the message task with the message description in the protocol definition:

Any proxy creation failure is logged on the server side.
Exceptions related to a proxy creation failure is not send to the client.
A proxy creation failure does not cancel this operation, all proxies will be attempted to be created.

…eProxiesMessageTask [HZ-3464] (hazelcast#25703)

Fixes https://hazelcast.atlassian.net/browse/HZ-3464

Follow-up to hazelcast#25509

This PR aligns check permission behavior in the message task with the
message description in the [protocol
definition](https://github.com/hazelcast/hazelcast-client-protocol/blob/master/protocol-definitions/Client.yaml#L721):

```
Any proxy creation failure is logged on the server side.
Exceptions related to a proxy creation failure is not send to the client.
A proxy creation failure does not cancel this operation, all proxies will be attempted to be created.
```
@kwart kwart added this to the 5.3.3 milestone Oct 13, 2023
@kwart kwart requested a review from a team as a code owner October 13, 2023 15:16
@kwart kwart self-assigned this Oct 13, 2023
@hz-devops-test
Copy link

The job Hazelcast-pr-builder of your PR failed. (Hazelcast internal details: build log, artifacts).
Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log file
---------ERRORS-----------
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] Tests run: 40, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.31 s <<< FAILURE! - in com.hazelcast.jet.sql.impl.type.BasicNestedFieldsTest
--------------------------
[ERROR] com.hazelcast.jet.sql.impl.type.BasicNestedFieldsTest.test_circularlyRecurrentTypes[useClient:false]  Time elapsed: 0.826 s  <<< ERROR!
--------------------------
[ERROR] Errors: 
--------------------------
[ERROR]   BasicNestedFieldsTest.test_circularlyRecurrentTypes:211->createJavaMapping:522->createJavaMapping:538->execute:546 ? HazelcastSql Mapping or view already exists: test
--------------------------
[ERROR] Tests run: 5617, Failures: 0, Errors: 1, Skipped: 9
--------------------------
[ERROR] 
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------
[ERROR] 'dependencies.dependency.groupId' for $com.google.protobuf:protobuf-java:jar with value '$com.google.protobuf' does not match a valid id pattern. @ line 17, column 16
--------------------------
[ERROR] 'dependencies.dependency.version' for $com.google.protobuf:protobuf-java:jar is missing. @ line 16, column 17
--------------------------

@kwart
Copy link
Member Author

kwart commented Oct 13, 2023

run-lab-run

@kwart kwart merged commit 6a90c3b into hazelcast:5.3.3 Oct 13, 2023
8 checks passed
@kwart kwart deleted the fix/5.3.3/HZ-3464-createproxiesmessagetask-handling branch October 13, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants