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

GridFS generating OS-dependant cache keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.0.ALPHA3
    • Fix Version/s: 4.1.0.BETA1
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      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}

      ]

        Attachments

        1. mac.log
          128 kB
        2. mc-demos-wins.log
          136 kB

          Activity

            People

            Assignee:
            galder.zamarreno Galder Zamarreño
            Reporter:
            galder.zamarreno Galder Zamarreño
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: