Retrieve policy to verify basePolicy defaults

Hello newbie here, I’m required to validate retry default values, I do not know if there is a way to access them, I would like to compare that maxRetries is in fact 2 as the docs state along with socketTimeout and totalTimeout, or if there is a way to validate the retries other than success (returns record) or error(timeout error) paths. Thanks in advanced.

It depends on the type of policy:

git grep -C 10 "max_retries =" src
...
src/include/aerospike/as_policy.h-992-/**
src/include/aerospike/as_policy.h-993- * Initialize base defaults for reads.
src/include/aerospike/as_policy.h-994- */
src/include/aerospike/as_policy.h-995-static inline void
src/include/aerospike/as_policy.h-996-as_policy_base_read_init(as_policy_base* p)
src/include/aerospike/as_policy.h-997-{
src/include/aerospike/as_policy.h-998-  p->socket_timeout = AS_POLICY_SOCKET_TIMEOUT_DEFAULT;
src/include/aerospike/as_policy.h-999-  p->total_timeout = AS_POLICY_TOTAL_TIMEOUT_DEFAULT;
src/include/aerospike/as_policy.h:1000: p->max_retries = 2;
src/include/aerospike/as_policy.h-1001- p->sleep_between_retries = 0;
src/include/aerospike/as_policy.h-1002- p->predexp = NULL;
src/include/aerospike/as_policy.h-1003-}
src/include/aerospike/as_policy.h-1004-
src/include/aerospike/as_policy.h-1005-/**
src/include/aerospike/as_policy.h-1006- * Initialize base defaults for writes.
src/include/aerospike/as_policy.h-1007- */
src/include/aerospike/as_policy.h-1008-static inline void
src/include/aerospike/as_policy.h-1009-as_policy_base_write_init(as_policy_base* p)
src/include/aerospike/as_policy.h-1010-{
src/include/aerospike/as_policy.h-1011- p->socket_timeout = AS_POLICY_SOCKET_TIMEOUT_DEFAULT;
src/include/aerospike/as_policy.h-1012- p->total_timeout = AS_POLICY_TOTAL_TIMEOUT_DEFAULT;
src/include/aerospike/as_policy.h:1013: p->max_retries = 0;
src/include/aerospike/as_policy.h-1014- p->sleep_between_retries = 0;
src/include/aerospike/as_policy.h-1015- p->predexp = NULL;
src/include/aerospike/as_policy.h-1016-}
src/include/aerospike/as_policy.h-1017-
src/include/aerospike/as_policy.h-1018-/**
src/include/aerospike/as_policy.h-1019- * Initialize base defaults for scan/query.
src/include/aerospike/as_policy.h-1020- */
src/include/aerospike/as_policy.h-1021-static inline void
src/include/aerospike/as_policy.h-1022-as_policy_base_query_init(as_policy_base* p)
src/include/aerospike/as_policy.h-1023-{
src/include/aerospike/as_policy.h-1024- p->socket_timeout = AS_POLICY_SOCKET_TIMEOUT_DEFAULT;
src/include/aerospike/as_policy.h-1025- p->total_timeout = 0;
src/include/aerospike/as_policy.h:1026: p->max_retries = 0;
src/include/aerospike/as_policy.h-1027- p->sleep_between_retries = 0;
src/include/aerospike/as_policy.h-1028- p->predexp = NULL;
src/include/aerospike/as_policy.h-1029-}
...
git grep -C 10 "#define AS_POLICY_SOCKET_TIMEOUT_DEFAULT" src
src/include/aerospike/as_policy.h-61-
src/include/aerospike/as_policy.h-62-/******************************************************************************
src/include/aerospike/as_policy.h-63- * MACROS
src/include/aerospike/as_policy.h-64- *****************************************************************************/
src/include/aerospike/as_policy.h-65-
src/include/aerospike/as_policy.h-66-/**
src/include/aerospike/as_policy.h-67- * Default socket idle timeout value
src/include/aerospike/as_policy.h-68- *
src/include/aerospike/as_policy.h-69- * @ingroup client_policies
src/include/aerospike/as_policy.h-70- */
src/include/aerospike/as_policy.h:71:#define AS_POLICY_SOCKET_TIMEOUT_DEFAULT 30000
src/include/aerospike/as_policy.h-72-
src/include/aerospike/as_policy.h-73-/**
src/include/aerospike/as_policy.h-74- * Default total timeout value
src/include/aerospike/as_policy.h-75- *
src/include/aerospike/as_policy.h-76- * @ingroup client_policies
src/include/aerospike/as_policy.h-77- */
src/include/aerospike/as_policy.h-78-#define AS_POLICY_TOTAL_TIMEOUT_DEFAULT 1000
src/include/aerospike/as_policy.h-79-
src/include/aerospike/as_policy.h-80-/**
src/include/aerospike/as_policy.h-81- * Default value for compression threshold
© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.