Closed vinicius-seedcx closed 2 months ago
nsc version 2.8.6
darwin-arm64
Run the following:
nsc add account APP nsc edit account APP --sk generate nsc add mapping --account APP --cluster east --from "foo" --to "foo.east" --weight 100 nsc add mapping --account APP --cluster west --from "foo" --to "foo.west" --weight 100
That the mapping command would add another element to the mapping slice instead of not allowing it. Trying to do the following with nsc: https://github.com/synadia-labs/eventually-consistent-virtual-global-stream/blob/main/mappings.cfg But so far no luck
When the commands run I get the following:
$ nsc add mapping --account APP --cluster east --from "foo" --to "foo.east" --weight 100 [ OK ] added mapping foo -> foo.east, weight 100% $ nsc add mapping --account APP --cluster west --from "foo" --to "foo.west" --weight 100 Error: mapping validation failed: [Mapping "foo" exceeds 100% among all of it's weighted to mappings]
Note that even though the jwt library and nsc have fixes, the server will also need to update to use the new JWT library, or the server will reject the configuration
What version were you using?
nsc version 2.8.6
What environment was the server running in?
darwin-arm64
Is this defect reproducible?
Run the following:
Given the capability you are leveraging, describe your expectation?
That the mapping command would add another element to the mapping slice instead of not allowing it. Trying to do the following with nsc: https://github.com/synadia-labs/eventually-consistent-virtual-global-stream/blob/main/mappings.cfg But so far no luck
Given the expectation, what is the defect you are observing?
When the commands run I get the following: