Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17453

warn that db.eval() / eval command is deprecated

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.3, 3.1.1
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Backport Completed:
    • Sprint:
      Platform 1 04/03/15

      Description

      Issue Status as of Apr 29, 2015

      ISSUE SUMMARY
      The eval operation that permits clients to execute is deprecated in 3.0 and is currently planned for removal in an upcoming release. This change adds additional warning messages regarding the deprecation to the mongo shell and the eval command.

      USER IMPACT
      This change just adds additional logging, but users depending on eval should start planning for its eventual removal.

      FIX VERSION
      The change is included in the 3.0.3 production release.

      Original description

      Add a warning msg to server and mongo repl log when invoking the eval command, aka $eval or db.eval().

        Issue Links

          Activity

          Hide
          ramon.fernandez Ramon Fernandez added a comment -

          Hugo Lassiege, looks like the latest update to Mongeez predates MongoDB 3.0, so there will be other changes that Mongeez may need to undertake to 3.0 before having any issues with eval. Note that eval will continue to work with MongoDB 2.6.

          Regards,
          Ramón.

          Show
          ramon.fernandez Ramon Fernandez added a comment - Hugo Lassiege , looks like the latest update to Mongeez predates MongoDB 3.0, so there will be other changes that Mongeez may need to undertake to 3.0 before having any issues with eval . Note that eval will continue to work with MongoDB 2.6. Regards, Ramón.
          Hide
          rsercano Sercan Özdemir added a comment - - edited

          Hello,

          Are you planning to serve a similar functionality ?
          I'm developing a mongodb client which works with meteor-js (internally node-js mongodb driver) and eval was a perfect helper for me.

          Regards,
          Sercan

          Show
          rsercano Sercan Özdemir added a comment - - edited Hello, Are you planning to serve a similar functionality ? I'm developing a mongodb client which works with meteor-js (internally node-js mongodb driver) and eval was a perfect helper for me. Regards, Sercan
          Hide
          ramon.fernandez Ramon Fernandez added a comment -

          Sercan Özdemir, we're discussing replacements that can improve on the limitations of eval, but there are no further details I can provide. Note that eval is part of our latest stable release, MongoDB 3.2.

          Regards,
          Ramón.

          Show
          ramon.fernandez Ramon Fernandez added a comment - Sercan Özdemir , we're discussing replacements that can improve on the limitations of eval , but there are no further details I can provide. Note that eval is part of our latest stable release, MongoDB 3.2. Regards, Ramón.
          Hide
          ibeaver Ian Beaver added a comment -

          Sercan Özdemir, see SERVER-20510 for the discussion on an eval replacement.

          Show
          ibeaver Ian Beaver added a comment - Sercan Özdemir , see SERVER-20510 for the discussion on an eval replacement.
          Hide
          rsercano Sercan Özdemir added a comment -

          @Ramon Fernandez I know you still have the eval functionality but it's madness to use it since you are about to remove this command, thank you for clarifying.

          @Ian Beaver thank you I'm going to watch it.

          Show
          rsercano Sercan Özdemir added a comment - @Ramon Fernandez I know you still have the eval functionality but it's madness to use it since you are about to remove this command, thank you for clarifying. @Ian Beaver thank you I'm going to watch it.

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                  Agile