Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-416

GridFS generating OS-dependant cache keys

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.BETA1
    • 4.1.0.ALPHA3
    • None
    • None
    • Low

      GridFS is not dealing well with the fact that File separator character varies from Windows to Unix/Linux. On a Windows machine, the key generated by GridFS uses '\', i.e.:

      JBoss-MC-Demo TRACE [30-04-2010 16:12:04] InvocationContextInterceptor - Invoked with command PutKeyValueCommand

      {key=movies\bond.iso, value=file, len=0b, chunk_size=8000, mod_time=Fri Apr 30 16:12:04 CEST 2010, putIfAbsent=false, lifespanMillis=-1, maxIdleTimeMillis=-1}

      and InvocationContext [NonTxInvocationContext

      {flags=[FORCE_SYNCHRONOUS]}

      ]

      Whereas a Unix/Linux machine generates keys with '/', ie:

      JBoss-MC-Demo TRACE [30-04-2010 16:12:51] InvocationContextInterceptor - Invoked with command GetKeyValueCommand

      {key=movies/bond.iso}

      and InvocationContext [NonTxInvocationContext

      {flags=null}

      ]

        1. mac.log
          128 kB
          Galder Zamarreño
        2. mc-demos-wins.log
          136 kB
          Galder Zamarreño

              rh-ee-galder Galder Zamarreño
              rh-ee-galder Galder Zamarreño
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: