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

asadmin delete-log-levels command fails if the --target option is specified #25288

Closed
tnagao7 opened this issue Dec 17, 2024 · 0 comments · Fixed by #25289
Closed

asadmin delete-log-levels command fails if the --target option is specified #25288

tnagao7 opened this issue Dec 17, 2024 · 0 comments · Fixed by #25289

Comments

@tnagao7
Copy link
Member

tnagao7 commented Dec 17, 2024

Environment Details

  • GlassFish Version (and build number): Eclipse GlassFish 7.0.20
  • JDK version: OpenJDK 21.0.3
  • OS: Red Hat Enterprise Linux 8.6
  • Database: none

Problem Description

If the --target option is specified, the asadmin delete-log-levels command fails to delete log levels of the specified target.

$ asadmin list-log-levels cluster1 | grep my.logger
 my.logger       <FINE>
    
$ asadmin delete-log-levels --target cluster1 my.logger
remote failure: An error occurred during replication
Failure: Command delete-log-levels failed on server instance instance1: remote failure: Could not delete logger levels for cluster1.
Command delete-log-levels failed.

Steps to reproduce

Execute the following command lines:

asadmin create-cluster cluster1
asadmin create-local-instance --cluster cluster1 instance1
asadmin set-log-levels --target cluster1 my.logger=FINE
asadmin start-cluster cluster1
asadmin delete-log-levels --target cluster1 my.logger

Impact of Issue

Cannot delete log levels of the specified target.

dmatej added a commit that referenced this issue Dec 19, 2024
Fix #25288 asadmin delete-log-levels command fails if the --target option is specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant