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

Unfriendly formatting for setParameter help

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 4.0.19, 4.2.8, 4.4.0
    • Component/s: Shell
    • None
    • Server Security
    • Security 2020-09-21

      Reproduces in 4.4.0:

      replset:PRIMARY> db.runCommand({setParameter:1, help:true})
      {
              "help" : "help for: setParameter set administrative option(s)\n{ setParameter:1, <param>:<value> }\nsupported:\n  AlwaysRecordTraffic\n  KeysRotationIntervalSec\n  ShardingTaskExecutorPoolHostTimeoutMS\n  ShardingTaskExecutorPoolMaxConnecting\n  ShardingTaskExecutorPoolMaxSize\n  ShardingTaskExecutorPoolMinSize\n  ShardingTaskExecutorPoolRefreshRequirementMS\n  ShardingTaskExecutorPoolRefreshTimeoutMS\n  ShardingTaskExecutorPoolReplicaSetMatching\n  TransactionRecordMinimumLifetimeMinutes\n  adaptiveServiceExecutorIdlePctThreshold\n  adaptiveServiceExecutorMaxQueueLatencyMicros\n  adaptiveServiceExecutorRecursionLimit\n  adaptiveServiceExecutorReservedThreads\n  adaptiveServiceExecutorRunTimeJitterMillis\n  adaptiveServiceExecutorRunTimeMillis\n  adaptiveServiceExecutorStuckThreadTimeoutMillis\n  allowRolesFromX509Certificates\n  allowSecondaryReadsDuringBatchApplication\n  assertStableTimestampEqualsAppliedThroughOnRecovery\n  authSchemaVersion\n  authenticationMechanisms\n  authorizationManagerCacheSize\n  authorizationManagerPinnedUsers\n  authorizationManagerPinnedUsersRefreshIntervalMillis\n  automationServiceDescriptor\n  awsEC2InstanceMetadataUrl\n  awsECSInstanceMetadataUrl\n  bgSyncOplogFetcherBatchSize\n  cachePressureThreshold\n  checkCachePressurePeriodSeconds\n  clientCursorMonitorFrequencySecs\n  cloudFreeMonitoringEndpointURL\n  clusterAuthMode\n  collectionBulkLoaderBatchSizeInBytes\n  collectionClonerBatchSize\n  collectionClonerUsesExhaust\n  connPoolMaxConnsPerHost\n  connPoolMaxInUseConnsPerHost\n  connPoolMaxShardedConnsPerHost\n  connPoolMaxShardedInUseConnsPerHost\n  connectTimeoutMs\n  createRollbackDataFiles\n  cursorTimeoutMillis\n  diagnosticDataCollectionDirectoryPath\n  diagnosticDataCollectionDirectorySizeMB\n  diagnosticDataCollectionEnableLatencyHistograms\n  diagnosticDataCollectionEnabled\n  diagnosticDataCollectionFileSizeMB\n  diagnosticDataCollectionPeriodMillis\n  diagnosticDataCollectionSamplesPerChunk\n  diagnosticDataCollectionSamplesPerInterimUpdate\n  disableJavaScriptJIT\n  disableLogicalSessionCacheRefresh\n  disableNonSSLConnectionLogging\n  disableNonTLSConnectionLogging\n  disableResumableRangeDeleter\n  disabledSecureAllocatorDomains\n  enableElectionHandoff\n  enableFinerGrainedCatalogCacheRefresh\n  enableFlowControl\n  enableHybridIndexBuilds\n  enableIndexBuildCommitQuorum\n  enableLocalhostAuthBypass\n  enableSafeReplicaSetReconfig\n  enableShardedIndexConsistencyCheck\n  enableTestCommands\n  enableTwoPhaseIndexBuild\n  featureCompatibilityVersion\n  flowControlDecayConstant\n  flowControlFudgeFactor\n  flowControlMaxSamples\n  flowControlMinTicketsPerSecond\n  flowControlSamplePeriod\n  flowControlTargetLagSeconds\n  flowControlThresholdLagPercentage\n  flowControlTicketAdderConstant\n  flowControlTicketMultiplierConstant\n  flowControlWarnThresholdSeconds\n  forceRollbackViaRefetch\n  globalConnPoolIdleTimeoutMinutes\n  heartBeatFrequencyMs\n  honorSystemUmask\n  initialSyncOplogBuffer\n  initialSyncOplogBufferPeekCacheSize\n  initialSyncOplogFetcherBatchSize\n  initialSyncSourceReadPreference\n  initialSyncTransientErrorRetryPeriodSeconds\n  internalDocumentSourceCursorBatchSizeBytes\n  internalDocumentSourceGroupMaxMemoryBytes\n  internalDocumentSourceLookupCacheSizeBytes\n  internalGeoNearQuery2DMaxCoveringCells\n  internalGeoPredicateQuery2DMaxCoveringCells\n  internalInsertMaxBatchSize\n  internalLookupStageIntermediateDocumentMaxSizeBytes\n  internalProhibitShardOperationRetry\n  internalQueryAllowShardedLookup\n  internalQueryAlwaysMergeOnPrimaryShard\n  internalQueryCacheDisableInactiveEntries\n  internalQueryCacheEvictionRatio\n  internalQueryCacheFeedbacksStored\n  internalQueryCacheSize\n  internalQueryCacheWorksGrowthCoefficient\n  internalQueryDesugarWhereToFunction\n  internalQueryDisableExchange\n  internalQueryEnumerationMaxIntersectPerAnd\n  internalQueryEnumerationMaxOrSolutions\n  internalQueryExecYieldIterations\n  internalQueryExecYieldPeriodMS\n  internalQueryFacetBufferSizeBytes\n  internalQueryForceIntersectionPlans\n  internalQueryIgnoreUnknownJSONSchemaKeywords\n  internalQueryJavaScriptFnTimeoutMillis\n  internalQueryJavaScriptHeapSizeLimitMB\n  internalQueryMaxAddToSetBytes\n  internalQueryMaxBlockingSortMemoryUsageBytes\n  internalQueryMaxJsEmitBytes\n  internalQueryMaxPushBytes\n  internalQueryMaxScansToExplode\n  internalQueryPlanEvaluationCollFraction\n  internalQueryPlanEvaluationMaxResults\n  internalQueryPlanEvaluationWorks\n  internalQueryPlanOrChildrenIndependently\n  internalQueryPlannerEnableHashIntersection\n  internalQueryPlannerEnableIndexIntersection\n  internalQueryPlannerGenerateCoveredWholeIndexScans\n  internalQueryPlannerMaxIndexedSolutions\n  internalQueryProhibitBlockingMergeOnMongoS\n  internalQueryProhibitMergingOnMongoS\n  internalQueryS2GeoCoarsestLevel\n  internalQueryS2GeoFinestLevel\n  internalQueryS2GeoMaxCells\n  internalValidateFeaturesAsMaster\n  javascriptProtection\n  journalCommitInterval\n  jsHeapLimitMB\n  loadRoutingTableOnStartup\n  localLogicalSessionTimeoutMinutes\n  localThresholdMs\n  logComponentVerbosity\n  logLevel\n  logicalSessionRefreshMillis\n  maxAcceptableLogicalClockDriftSecs\n  maxBSONDepth\n  maxIndexBuildDrainBatchSize\n  maxIndexBuildDrainMemoryUsageMegabytes\n  maxIndexBuildMemoryUsageMegabytes\n  maxLogSizeKB\n  maxNumActiveUserIndexBuilds\n  maxNumberOfTransactionOperationsInSingleOplogEntry\n  maxOplogTruncationPointsAfterStartup\n  maxOplogTruncationPointsDuringStartup\n  maxSessions\n  maxSyncSourceLagSecs\n  maxTargetSnapshotHistoryWindowInSeconds\n  maxTimeMSForHedgedReads\n  maxTransactionLockRequestTimeoutMillis\n  maxValidateMBperSec\n  migrateCloneInsertionBatchDelayMS\n  migrateCloneInsertionBatchSize\n  migrationLockAcquisitionMaxWaitMS\n  minMillisBetweenSnapshotWindowDec\n  minMillisBetweenSnapshotWindowInc\n  minNumChunksForSessionsCollection\n  minOplogTruncationPoints\n  mirrorReads\n  notablescan\n  numInitialSyncAttempts\n  numInitialSyncConnectAttempts\n  numInitialSyncOplogFindAttempts\n  ocspCacheSize\n  ocspEnabled\n  ocspValidationRefreshPeriodSecs\n  opensslCipherConfig\n  opensslDiffieHellmanParameters\n  oplogFetcherInitialSyncMaxFetcherRestarts\n  oplogFetcherSteadyStateMaxFetcherRestarts\n  oplogFetcherUsesExhaust\n  oplogInitialFindMaxSeconds\n  oplogNetworkTimeoutBufferSeconds\n  oplogRetriedFindMaxSeconds\n  oplogSamplingLogIntervalSeconds\n  oplogTruncationPointSizeMB\n  orphanCleanupDelaySecs\n  periodicNoopIntervalSecs\n  priorityTakeoverFreshnessWindowSeconds\n  processUmask\n  quiet\n  rangeDeleterBatchDelayMS\n  rangeDeleterBatchSize\n  readHedgingMode\n  recoverFromOplogAsStandalone\n  recoverToOplogTimestamp\n  replBatchLimitBytes\n  replBatchLimitOperations\n  replElectionTimeoutOffsetLimitFraction\n  replWriterThreadCount\n  replicaSetMonitorProtocol\n  reportOpWriteConcernCountersInServerStatus\n  reservedServiceExecutorRecursionLimit\n  roleGraphInvalidationIsFatal\n  rollbackRemoteOplogQueryBatchSize\n  rollbackTimeLimitSecs\n  saslHostName\n  saslServiceName\n  saslauthdPath\n  scramIterationCount\n  scramSHA256IterationCount\n  scriptingEngineInterruptIntervalMS\n  shardedConnPoolIdleTimeoutMinutes\n  shardedIndexConsistencyCheckIntervalMS\n  shouldMultiDocTxnCreateCollectionAndIndexes\n  skipCorruptDocumentsWhenCloning\n  skipShardingConfigurationChecks\n  skipShellCursorFinalize\n  snapshotWindowAdditiveIncreaseSeconds\n  snapshotWindowMultiplicativeDecrease\n  sslMode\n  sslWithholdClientCertificate\n  startupAuthSchemaValidation\n  suppressNoTLSPeerCertificateWarning\n  syncdelay\n  synchronousServiceExecutorRecursionLimit\n  takeUnstableCheckpointOnShutdown\n  taskExecutorPoolSize\n  tcpFastOpenClient\n  tcpFastOpenQueueSize\n  tcpFastOpenServer\n  testingSnapshotBehaviorInIsolation\n  tlsMode\n  tlsOCSPStaplingTimeoutSecs\n  tlsOCSPVerifyTimeoutSecs\n  tlsWithholdClientCertificate\n  tlsX509ClusterAuthDNOverride\n  tlsX509ExpirationWarningThresholdDays\n  traceExceptions\n  traceWriteConflictExceptions\n  trafficRecordingDirectory\n  transactionLifetimeLimitSeconds\n  transactionSizeLimitBytes\n  ttlMonitorEnabled\n  ttlMonitorSleepSecs\n  useReadOnceCursorsForIndexBuilds\n  waitForSecondaryBeforeNoopWriteMS\n  waitForStepDownOnNonCommandShutdown\n  warmMinConnectionsInShardingTaskExecutorPoolOnStartup\n  warmMinConnectionsInShardingTaskExecutorPoolOnStartupWaitMS\n  watchdogPeriodSeconds\n  wiredTigerConcurrentReadTransactions\n  wiredTigerConcurrentWriteTransactions\n  wiredTigerCursorCacheSize\n  wiredTigerEngineRuntimeConfig\n  wiredTigerFileHandleCloseIdleTime\n  wiredTigerFileHandleCloseMinimum\n  wiredTigerFileHandleCloseScanInterval\n  wiredTigerMaxCacheOverflowSizeGB\n  wiredTigerSessionCloseIdleTimeSecs\n  writePeriodicNoops\n",
              "ok" : 1
      }
      

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: