[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-buglist
Subject:    [Buglist] [Bug 1851] StorageStrategy for hrStorageTable could be corrupted
From:       bugzilla () opennms ! org (bugzilla at opennms ! org)
Date:       2009-11-17 14:59:25
Message-ID: 20091117145925.758C15E016B () nen ! opennms ! org
[Download RAW message or body]

http://bugzilla.opennms.org/show_bug.cgi?id=1851


agalue at sync.com.ve changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeffg at opennms.org




------- Comment #6 from agalue at sync.com.ve  2009-11-17 09:59 -------
(In reply to comment #4)

> I'm reopening this bug because we still need a set of specific unit tests for
> each of the new storage strategies. We also need to consider whether to back
> out (in 1.6) the changes to datacollection-config.xml and snmp-graph.properties
> files, or simply to put a prominent item in the release notes so that people
> can prepare for the change.
> 

I added tests for FrameRelayStorageStrategy and HostFileSystemStorageStrategy:

1.6-testing rev. 15256.
merged into trunk on rev. 15257.

I'm agree about the changes on datacollection-config.xml. What if we let
hrStorageIndex to use IndexStorageStrategy by default and write a comment about
the new HostFileSystemStorageStrategy ?

Something like this:

<resourceType name="hrStorageIndex" label="Storage (MIB-2 Host Resources)"
       resourceLabel="${hrStorageDescr} (index ${index})">
   <persistenceSelectorStrategy
class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
   <storageStrategy
class="org.opennms.netmgt.dao.support.IndexStorageStrategy"/>
   <!--
   There is a new strategy called HostFileSystemStorageStrategy, that use file
system names as
   a resource index. The rules include to convert root filesystem (i.e. "/"
without quotes) to _root_fs,
   and for other file systems replace character "/" with "-".

   If you want to use this, replace strategy tag with this:
   <storageStrategy
class="org.opennms.netmgt.dao.support.HostFileSystemStorageStrategy"/>

   Remember that if you already have RRDs/JRBs... you will lost data.
  -->
</resourceType>


-- 
Configure bugmail: http://bugzilla.opennms.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic