Project

General

Profile

Feature #4547

config-dump.properties for DSL format

Added by Wojciech Kapcia TigaseTeam over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
2016-09-13
Due date:
2016-09-30
% Done:

100%

Estimated time:
Database:
n/a
Source Code Disclaimer:

Description

Currently, after complete startup we are saving all available settings/properties in @etc/config-dump.properties@, which is highly useful when one wants to:

  • investigate final configuration (with defaults applied);

  • change properties and want to know what is the list of possible options (without going through the documentation).


Related issues

Related to Tigase XMPP Server - Task #4481: Prepare description of new DSL formatClosed2016-08-212016-09-23

Associated revisions

Revision 08970685 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 2 years ago

Issue #4547 - added support for generation of config-dump.properties for DSL format

Revision e2a85785 (diff)
Added by Andrzej Wójcik IoT 1 CloudTigaseTeam over 2 years ago

Feature #4547 - added warning with location of configuration dump file
Bug #4565 - fixed issue with hardcoded init.properties file name and issue with already existing backup file
Bug #4586 - fixed issue with addition of --property-file to converted configuration file

History

#1 Updated by Wojciech Kapcia TigaseTeam over 2 years ago

  • Related to Task #4481: Prepare description of new DSL format added

#2 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam over 2 years ago

  • Status changed from New to In QA
  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

I created support for generation of config dump file. This file will contain current configuration for any defined bean (active and inactive) including every possible setting and default values.

However it is possible that it will not contain settings of bean which are subbeans of disabled bean as they may not be registered due to fact that parent bean is disabled or inactive.

#3 Updated by Wojciech Kapcia TigaseTeam over 2 years ago

  • Due date changed from 2016-09-14 to 2016-09-23
  • Assignee changed from Wojciech Kapcia to Andrzej Wójcik

I've checked:

componentInfo{Title=Tigase XMPP Server, Version=7.2.0-SNAPSHOT-b4451/ce6dcd8f (2016-09-19/12:32:47), Class=tigase.server.XMPPServer}

But:

  • I couldn't locate the file (I've checked etc/ and also searched fro ~ dump or properties without much luck);

  • there wasn't any information in the logs (logs/tigase-config.log@) about the file.

Andrzej Wójcik wrote:

I created support for generation of config dump file. This file will contain current configuration for any defined bean (active and inactive) including every possible setting and default values.

Just to make sure - it will contain the final configuration (i.e. defaults and then settings applied from init.properties, which may have overridden the defaults)?

However it is possible that it will not contain settings of bean which are subbeans of disabled bean as they may not be registered due to fact that parent bean is disabled or inactive.

If I understand correctly this is exactly how it works currently - only enabled components are included in this file.

#4 Updated by Wojciech Kapcia TigaseTeam over 2 years ago

Addendum - I've check wrong version and the file is generated.

However remaining questions/suggestions (log information about dump) remains.

#5 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam over 2 years ago

  • Assignee changed from Andrzej Wójcik to Wojciech Kapcia

Added log entry when configuration dump file is created with path to created dump file.

#6 Updated by Andrzej Wójcik IoT 1 CloudTigaseTeam over 2 years ago

  • Due date changed from 2016-09-23 to 2016-09-30

#7 Updated by Wojciech Kapcia TigaseTeam over 2 years ago

  • Status changed from In QA to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF